key

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func CleanWCK8sKubeconfig(clusterName string) error

CleanWCK8sKubeconfig will clean old kubeconfig file to avoid issue when cluster is recreated with same ID

func GetAWSClusterByName

func GetAWSClusterByName(ctx context.Context, ctrlClient client.Client, clusterName string) (*capa.AWSCluster, error)

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 HasCapiWatchLabel(labels map[string]string) bool

func HasFinalizer

func HasFinalizer(finalizers []string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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