Documentation ¶
Index ¶
- Constants
- func GenerateBindingName(kind, name string) string
- func GenerateBindingReferenceKey(namespace, name string) string
- func GenerateDerivedServiceName(serviceName string) string
- func GenerateEndpointSliceName(endpointSliceName string, cluster string) string
- func GenerateEstimatorServiceName(clusterName string) string
- func GenerateExecutionSpaceName(clusterName string) (string, error)
- func GenerateImpersonationSecretName(clusterName string) string
- func GeneratePolicyName(namespace, name, gvk string) string
- func GenerateRoleName(serviceAccountName string) string
- func GenerateServiceAccountName(clusterName string) string
- func GenerateWorkName(kind, name, namespace string) string
- func GetClusterName(executionSpaceName string) (string, error)
- func IsReservedNamespace(namespace string) bool
Constants ¶
const ( // KubernetesReservedNSPrefix is the prefix of namespace which reserved by Kubernetes system, such as: // - kube-system // - kube-public // - kube-node-lease KubernetesReservedNSPrefix = "kube-" // NamespaceKarmadaSystem is reserved namespace NamespaceKarmadaSystem = "karmada-system" // NamespaceKarmadaCluster is reserved namespace NamespaceKarmadaCluster = "karmada-cluster" // NamespaceDefault is reserved namespace NamespaceDefault = "default" )
const ExecutionSpacePrefix = "karmada-es-"
ExecutionSpacePrefix is the prefix of execution space
Variables ¶
This section is empty.
Functions ¶
func GenerateBindingName ¶
GenerateBindingName will generate binding name by kind and name
func GenerateBindingReferenceKey ¶ added in v0.10.0
GenerateBindingReferenceKey will generate the key of binding object with the hash of its namespace 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 GenerateEstimatorServiceName ¶ added in v0.9.0
GenerateEstimatorServiceName generates the gRPC scheduler estimator service name which belongs to a cluster.
func GenerateExecutionSpaceName ¶
GenerateExecutionSpaceName generates execution space name for the given member cluster
func GenerateImpersonationSecretName ¶ added in v1.0.0
GenerateImpersonationSecretName generates the secret name of impersonation secret.
func GeneratePolicyName ¶ added in v1.2.1
GeneratePolicyName generates the propagationPolicy name
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 its name and the hash of its namespace, kind and name.
func GetClusterName ¶ added in v0.3.0
GetClusterName returns member cluster name for the given execution space
func IsReservedNamespace ¶ added in v1.0.0
IsReservedNamespace return whether it is a reserved namespace
Types ¶
This section is empty.