controller

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ClusterStatusRunning The RUNNING state indicates the cluster has been
	// created and is fully usable
	ClusterStatusRunning = "RUNNING"

	// ClusterStatusError The ERROR state indicates the cluster is unusable
	ClusterStatusError = "ERROR"

	// ClusterStatusReconciling The RECONCILING state indicates that some work is
	// actively being done on the cluster, such as upgrading the master or
	// node software.
	ClusterStatusReconciling = "RECONCILING"
)

Cluster Status

View Source
const (
	// NodePoolStatusProvisioning The PROVISIONING state indicates the node pool is
	// being created.
	NodePoolStatusProvisioning = "PROVISIONING"

	// NodePoolStatusReconciling The RECONCILING state indicates that some work is
	// actively being done on the node pool, such as upgrading node software.
	NodePoolStatusReconciling = "RECONCILING"

	//  NodePoolStatusStopping The STOPPING state indicates the node pool is being
	// deleted.
	NodePoolStatusStopping = "STOPPING"
)

Node Pool Status

Variables

This section is empty.

Functions

func BuildUpstreamClusterState

func BuildUpstreamClusterState(cluster *gkeapi.Cluster) (*gkev1.GKEClusterConfigSpec, error)

func GetCluster

func GetCluster(ctx context.Context, secretsCache wranglerv1.SecretCache, configSpec *gkev1.GKEClusterConfigSpec) (*gkeapi.Cluster, error)

func GetTokenSource

func GetTokenSource(ctx context.Context, secretsCache wranglerv1.SecretCache, configSpec *gkev1.GKEClusterConfigSpec) (oauth2.TokenSource, error)

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func (*Handler) OnGkeConfigChanged

func (h *Handler) OnGkeConfigChanged(_ string, config *gkev1.GKEClusterConfig) (*gkev1.GKEClusterConfig, error)

func (*Handler) OnGkeConfigRemoved

func (h *Handler) OnGkeConfigRemoved(_ string, config *gkev1.GKEClusterConfig) (*gkev1.GKEClusterConfig, error)

Jump to

Keyboard shortcuts

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