key

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterNameLabel        = "cluster.x-k8s.io/cluster-name"
	ClusterWatchFilterLabel = "cluster.x-k8s.io/watch-filter"
	ClusterRole             = "cluster.x-k8s.io/role"
)

Variables

This section is empty.

Functions

func FinalizerName

func FinalizerName(roleName string) string

func GetAWSAccountID added in v0.11.0

func GetAWSAccountID(awsClusterRoleIdentity *capa.AWSClusterRoleIdentity) (string, error)

func GetAWSClusterByName

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

func GetAWSClusterRoleIdentity added in v0.10.0

func GetAWSClusterRoleIdentity(ctx context.Context, ctrlClient client.Client, awsClusterRoleIdentityName string) (*capa.AWSClusterRoleIdentity, error)

func GetAdditionalIrsaDomain added in v0.15.0

func GetAdditionalIrsaDomain(o v1.Object) string

func GetAnnotation added in v0.15.0

func GetAnnotation(o v1.Object, annotation string) string

GetAnnotation returns the value of the specified annotation.

func GetBaseDomain added in v0.10.0

func GetBaseDomain(ctx context.Context, ctrlClient client.Client, clusterName, namespace string) (string, error)

func GetClusterByName added in v0.10.0

func GetClusterByName(ctx context.Context, ctrlClient client.Client, clusterName string, namespace string) (*capi.Cluster, error)

func GetClusterIDFromLabels

func GetClusterIDFromLabels(t v1.ObjectMeta) (string, error)

func HasCapiWatchLabel

func HasCapiWatchLabel(labels map[string]string) bool

func IRSADomain added in v0.19.0

func IRSADomain(baseDomain string, region string, awsAccount string, clusterName string) string

func IsBastionAWSMachineTemplate added in v0.4.0

func IsBastionAWSMachineTemplate(labels map[string]string) bool

func IsChinaRegion added in v0.19.0

func IsChinaRegion(region string) bool

func IsControlPlaneAWSMachineTemplate

func IsControlPlaneAWSMachineTemplate(labels map[string]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