controllercontext

package
v2.1.5+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(ctx context.Context, c Context) context.Context

Types

type App added in v0.23.7

type App struct {
	App              string
	ComponentVersion string
	Version          string
}

type Context

type Context struct {
	Client ContextClient
	Status ContextStatus
}

func FromContext

func FromContext(ctx context.Context) (*Context, error)

type ContextClient

type ContextClient struct {
	TenantCluster ContextClientTenantCluster
}

type ContextClientTenantCluster

type ContextClientTenantCluster struct {
	G8s versioned.Interface
	K8s kubernetes.Interface
}

type ContextStatus

type ContextStatus struct {
	// Apps is a slice of the apps and versions that should be created for a specific release.
	// It is fetched from cluster-service by the releaseversions resource.
	//
	//     - coredns: 1.15.0
	//
	Apps     []App
	Endpoint ContextStatusEndpoint
	// Versions is a map of key value pairs where the map key is a version label
	// of a given operator. The map value is the version of the corresponding
	// operator. See also the releaseversions resource.
	//
	//     aws-operator.giantswarm.io/version: 6.5.0
	//
	Versions map[string]string
	// Worker is a map of key value pairs where the key is the machine deployment
	// ID. The map value is a structure holding node information for the
	// corresponding machine deployment.
	Worker map[string]ContextStatusWorker
}

type ContextStatusEndpoint added in v0.23.7

type ContextStatusEndpoint struct {
	Base string
}

type ContextStatusWorker

type ContextStatusWorker struct {
	Nodes int32
	Ready int32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL