Documentation ¶
Index ¶
- Constants
- func BuildUpstreamClusterState(ctx context.Context, secretsCache wranglerv1.SecretCache, ...) (*aksv1.AKSClusterConfigSpec, error)
- func GetClusterKubeConfig(ctx context.Context, secretsCache wranglerv1.SecretCache, ...) (restConfig *rest.Config, err error)
- func Register(ctx context.Context, secrets wranglerv1.SecretController, ...)
- type Handler
Constants ¶
View Source
const ( // ClusterStatusSucceeded The Succeeeded state indicates the cluster has been // created and is fully usable, return code 0 ClusterStatusSucceeded = "Succeeded" // ClusterStatusFailed The Failed state indicates the cluster is unusable, return code 1 ClusterStatusFailed = "Failed" // ClusterStatusInProgress The InProgress state indicates that some work is // actively being done on the cluster, such as upgrading the master or // node software, return code 3 ClusterStatusInProgress = "InProgress" // ClusterStatusUpdating The Updating state indicates the cluster is updating ClusterStatusUpdating = "Updating" // ClusterStatusCanceled The Canceled state indicates that create or update was canceled, return code 2 ClusterStatusCanceled = "Canceled" // ClusterStatusDeleting The Deleting state indicates that cluster was removed, return code 4 ClusterStatusDeleting = "Deleting" // NodePoolSucceeded The Succeeeded state indicates the node pool has been // created and is fully usable, return code 0 NodePoolSucceeded = "Succeeded" // NodePoolCreating The Creating state indicates that node pool is creating NodePoolCreating = "Creating" // NodePoolScaling The Scaling state indicates that node pool is being scaled NodePoolScaling = "Scaling" // NodePoolDeleting The Deleting state indicates that node pool is being deleted NodePoolDeleting = "Deleting" // NodePoolUpgrading The Upgrading state indicates that node pool is upgrading NodePoolUpgrading = "Upgrading" )
Cluster Status
Variables ¶
This section is empty.
Functions ¶
func BuildUpstreamClusterState ¶
func BuildUpstreamClusterState(ctx context.Context, secretsCache wranglerv1.SecretCache, secretClient wranglerv1.SecretClient, spec *aksv1.AKSClusterConfigSpec) (*aksv1.AKSClusterConfigSpec, error)
BuildUpstreamClusterState creates an AKSClusterConfigSpec (spec for the AKS cluster state) from the existing cluster configuration.
func GetClusterKubeConfig ¶
func GetClusterKubeConfig(ctx context.Context, secretsCache wranglerv1.SecretCache, secretClient wranglerv1.SecretClient, spec *aksv1.AKSClusterConfigSpec) (restConfig *rest.Config, err error)
GetClusterKubeConfig returns a kubeconfig for a given cluster. This function is imported in rancher/rancher and has to stay for compatibility.
func Register ¶
func Register( ctx context.Context, secrets wranglerv1.SecretController, aks akscontrollers.AKSClusterConfigController)
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) OnAksConfigChanged ¶
func (h *Handler) OnAksConfigChanged(_ string, config *aksv1.AKSClusterConfig) (*aksv1.AKSClusterConfig, error)
func (*Handler) OnAksConfigRemoved ¶
func (h *Handler) OnAksConfigRemoved(_ string, config *aksv1.AKSClusterConfig) (*aksv1.AKSClusterConfig, error)
Click to show internal directories.
Click to hide internal directories.