Documentation ¶
Index ¶
- Constants
- func FinalizerName(roleName string) string
- func GetAWSAccountID(awsClusterRoleIdentity *capa.AWSClusterRoleIdentity) (string, error)
- func GetAWSClusterByName(ctx context.Context, ctrlClient client.Client, clusterName string, ...) (*capa.AWSCluster, error)
- func GetAWSClusterRoleIdentity(ctx context.Context, ctrlClient client.Client, ...) (*capa.AWSClusterRoleIdentity, error)
- func GetAdditionalIrsaDomain(o v1.Object) string
- func GetAnnotation(o v1.Object, annotation string) string
- func GetBaseDomain(ctx context.Context, ctrlClient client.Client, clusterName, namespace string) (string, error)
- func GetClusterByName(ctx context.Context, ctrlClient client.Client, clusterName string, ...) (*capi.Cluster, error)
- func GetClusterIDFromLabels(t v1.ObjectMeta) (string, error)
- func HasCapiWatchLabel(labels map[string]string) bool
- func IRSADomain(baseDomain string, region string, awsAccount string, clusterName string) string
- func IsBastionAWSMachineTemplate(labels map[string]string) bool
- func IsChinaRegion(region string) bool
- func IsControlPlaneAWSMachineTemplate(labels map[string]string) bool
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 GetAWSAccountID ¶ added in v0.11.0
func GetAWSAccountID(awsClusterRoleIdentity *capa.AWSClusterRoleIdentity) (string, error)
func GetAWSClusterByName ¶
func GetAWSClusterRoleIdentity ¶ added in v0.10.0
func GetAdditionalIrsaDomain ¶ added in v0.15.0
func GetAnnotation ¶ added in v0.15.0
GetAnnotation returns the value of the specified annotation.
func GetBaseDomain ¶ added in v0.10.0
func GetClusterByName ¶ added in v0.10.0
func GetClusterIDFromLabels ¶
func GetClusterIDFromLabels(t v1.ObjectMeta) (string, error)
func HasCapiWatchLabel ¶
func IRSADomain ¶ added in v0.19.0
func IsBastionAWSMachineTemplate ¶ added in v0.4.0
func IsChinaRegion ¶ added in v0.19.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.