Documentation ¶
Index ¶
- Constants
- func CleanWCK8sKubeconfig(clusterName string) error
- func GetAWSClusterByName(ctx context.Context, ctrlClient client.Client, clusterName string) (*capa.AWSCluster, error)
- func GetClusterIDFromLabels(t metav1.ObjectMeta) string
- func GetWCK8sClient(ctx context.Context, ctrlClient client.Client, clusterName string, ...) (client.Client, error)
- func HasCapiWatchLabel(labels map[string]string) bool
- func HasFinalizer(finalizers []string) bool
Constants ¶
View Source
const ( ClusterNameLabel = "cluster.x-k8s.io/cluster-name" ClusterWatchFilterLabel = "cluster.x-k8s.io/watch-filter" FinalizerName = "capa-aws-cni-operator.finalizers.giantswarm.io" AWSCniOperatorOwnedTag = "capa-aws-cni-operator.giantswarm.io" CNINodeSecurityGroupName = "node" )
Variables ¶
This section is empty.
Functions ¶
func CleanWCK8sKubeconfig ¶ added in v0.1.1
CleanWCK8sKubeconfig will clean old kubeconfig file to avoid issue when cluster is recreated with same ID
func GetAWSClusterByName ¶
func GetClusterIDFromLabels ¶
func GetClusterIDFromLabels(t metav1.ObjectMeta) string
func GetWCK8sClient ¶
func GetWCK8sClient(ctx context.Context, ctrlClient client.Client, clusterName string, clusterNamespace string) (client.Client, error)
GetWCK8sClient will return workload cluster k8s controller-runtime client
func HasCapiWatchLabel ¶
func HasFinalizer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.