Documentation ¶
Index ¶
- Constants
- func GenerateBindingName(kind, name string) string
- func GenerateDerivedServiceName(serviceName string) string
- func GenerateEndpointSliceName(endpointSliceName string, cluster string) string
- func GenerateExecutionSpaceName(clusterName string) (string, error)
- func GenerateRoleName(serviceAccountName string) string
- func GenerateServiceAccountName(clusterName string) string
- func GenerateWorkName(kind, name, namespace string) string
- func GetClusterName(executionSpaceName string) (string, error)
Constants ¶
View Source
const ( // KubernetesReservedNSPrefix is the prefix of namespace which reserved by Kubernetes system, such as: // - kube-system // - kube-public // - kube-node-lease KubernetesReservedNSPrefix = "kube-" // KarmadaReservedNSPrefix is the prefix of namespace which reserved by Karmada system, such as: // - karmada-system // - karmada-cluster // - karmada-es-* KarmadaReservedNSPrefix = "karmada-" )
Variables ¶
This section is empty.
Functions ¶
func GenerateBindingName ¶
GenerateBindingName will generate binding name by namespace, kind and name
func GenerateDerivedServiceName ¶ added in v0.7.0
GenerateDerivedServiceName generates the service name derived from ServiceImport.
func GenerateEndpointSliceName ¶ added in v0.7.0
GenerateEndpointSliceName generates the name of collected EndpointSlice.
func GenerateExecutionSpaceName ¶
GenerateExecutionSpaceName generates execution space name for the given member cluster
func GenerateRoleName ¶
GenerateRoleName generates the name of a Role or ClusterRole.
func GenerateServiceAccountName ¶
GenerateServiceAccountName generates the name of a ServiceAccount.
func GenerateWorkName ¶ added in v0.6.0
GenerateWorkName will generate work name by namespace, kind and name
func GetClusterName ¶ added in v0.3.0
GetClusterName returns member cluster name for the given execution space
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.