Documentation ¶
Index ¶
- Constants
- func ApplyClusterLabel(log logr.Logger, cluster *clusterv1.Cluster, ...)
- func GetAKODeploymentConfigForCluster(ctx context.Context, kclient client.Client, log logr.Logger, ...) (*akoov1alpha1.AKODeploymentConfig, error)
- func GetControlPlaneEndpoint(cluster *clusterv1.Cluster) (string, error)
- func GetControlPlaneEndpointPort(cluster *clusterv1.Cluster) (int32, error)
- func IsBootStrapCluster() bool
- func IsClusterClassBasedCluster(cluster *clusterv1.Cluster) bool
- func IsClusterClassEnabled() bool
- func IsControlPlaneVIPProvider(cluster *clusterv1.Cluster) (bool, error)
- func IsLegacyBootStrapCluster() bool
- func IsLoadBalancerProvider(cluster *clusterv1.Cluster) (bool, error)
- func ListAkoDeploymentConfigSelectClusters(ctx context.Context, kclient client.Client, log logr.Logger, ...) (*clusterv1.ClusterList, error)
- func RemoveClusterLabel(log logr.Logger, cluster *clusterv1.Cluster)
- func SetControlPlaneEndpoint(cluster *clusterv1.Cluster, endpoint string)
- func SkipCluster(cluster *clusterv1.Cluster) bool
Constants ¶
const ( // DeployInBootstrapCluster - defines if ako operator is deployed in bootstrap cluster DeployInBootstrapCluster = "bootstrap_cluster" // IsControlPlaneHAProvider - defines if ako operator is going to provide control plane HA IsControlPlaneHAProvider = "avi_control_plane_ha_provider" // ClusterControlPlaneAnnotations - defines cluster control plane endpoint ClusterControlPlaneAnnotations = "tkg.tanzu.vmware.com/cluster-controlplane-endpoint" // ControlPlaneEndpointPort - defines the control plane endpoint port ControlPlaneEndpointPort = "control_plane_endpoint_port" )
Legacy cluster environment variables
const ( // ClusterClassEnabled - helps check if cluster is classy based cluster when no cluster object create yet. ClusterClassEnabled = "cluster_class_enabled" // KubeVipLoadBalancerProvider - defines if cluster using kube-vip to implement load balancer // type of service KubeVipLoadBalancerProvider = "kubeVipLoadBalancerProvider" // AviAPIServerHAProvider - defines if ako operator is going to provide control plane HA AviAPIServerHAProvider = "aviAPIServerHAProvider" // ApiServerPort - defines the control plane endpoint ApiServerEndpoint = "apiServerEndpoint" // ApiServerPort - defines the control plane endpoint port ApiServerPort = "apiServerPort" )
ClusterClass Env variables
Variables ¶
This section is empty.
Functions ¶
func ApplyClusterLabel ¶
func ApplyClusterLabel(log logr.Logger, cluster *clusterv1.Cluster, obj *akoov1alpha1.AKODeploymentConfig)
applyClusterLabel applies the networking.tkg.tanzu.vmware.com/avi label to a Cluster
func GetAKODeploymentConfigForCluster ¶
func GetAKODeploymentConfigForCluster( ctx context.Context, kclient client.Client, log logr.Logger, cluster *clusterv1.Cluster) (*akoov1alpha1.AKODeploymentConfig, error)
GetAKODeploymentConfigForCluster return the akodeloymentconfig object which selects current cluster
func GetControlPlaneEndpoint ¶ added in v1.7.0
GetControlPlaneEndpoint returns cluster's API server address
func GetControlPlaneEndpointPort ¶
GetControlPlaneEndpointPort returns cluster's API server port default value is 6443
func IsBootStrapCluster ¶
func IsBootStrapCluster() bool
func IsClusterClassBasedCluster ¶ added in v1.7.0
IsClusterClassBasedCluster checks if a cluster is cluster class based cluster
func IsClusterClassEnabled ¶ added in v1.7.0
func IsClusterClassEnabled() bool
func IsControlPlaneVIPProvider ¶ added in v1.7.0
IsControlPlaneVIPProvider checks if NSX Advanced Load Balancer is cluster's endpoint VIP provider
func IsLegacyBootStrapCluster ¶ added in v1.7.0
func IsLegacyBootStrapCluster() bool
func IsLoadBalancerProvider ¶ added in v1.7.0
IsLoadBalancerProvider checks if NSX Advanced Load Balancer is cluster's load balancer implementation default value is true
func ListAkoDeploymentConfigSelectClusters ¶
func ListAkoDeploymentConfigSelectClusters( ctx context.Context, kclient client.Client, log logr.Logger, obj *akoov1alpha1.AKODeploymentConfig) (*clusterv1.ClusterList, error)
ListAkoDeploymentConfigSelectClusters list all clusters enabled current akodeploymentconfig
func RemoveClusterLabel ¶
removeClusterLabel removes the networking.tkg.tanzu.vmware.com/avi label from a Cluster
func SetControlPlaneEndpoint ¶ added in v1.7.0
SetControlPlaneEndpoint sets cluster.spec.topology.variables.apiServerEndpoint
func SkipCluster ¶
SkipCluster checks if akodeploymentconfig controller should skip reconciling this cluster or not
Types ¶
This section is empty.