names

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

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-"
	// NamespaceKarmadaSystem is reserved namespace
	NamespaceKarmadaSystem = "karmada-system"
	// NamespaceKarmadaCluster is reserved namespace
	NamespaceKarmadaCluster = "karmada-cluster"
	// NamespaceDefault is reserved namespace
	NamespaceDefault = "default"
)
View Source
const ExecutionSpacePrefix = "karmada-es-"

ExecutionSpacePrefix is the prefix of execution space

Variables

This section is empty.

Functions

func GenerateBindingName

func GenerateBindingName(kind, name string) string

GenerateBindingName will generate binding name by kind and name

func GenerateBindingReferenceKey added in v0.10.0

func GenerateBindingReferenceKey(namespace, name string) string

GenerateBindingReferenceKey will generate the key of binding object with the hash of its namespace and name.

func GenerateDerivedServiceName added in v0.7.0

func GenerateDerivedServiceName(serviceName string) string

GenerateDerivedServiceName generates the service name derived from ServiceImport.

func GenerateEndpointSliceName added in v0.7.0

func GenerateEndpointSliceName(endpointSliceName string, cluster string) string

GenerateEndpointSliceName generates the name of collected EndpointSlice.

func GenerateEstimatorDeploymentName added in v1.3.0

func GenerateEstimatorDeploymentName(clusterName string) string

GenerateEstimatorDeploymentName generates the gRPC scheduler estimator deployment name which belongs to a cluster.

func GenerateEstimatorServiceName added in v0.9.0

func GenerateEstimatorServiceName(estimatorServicePrefix, clusterName string) string

GenerateEstimatorServiceName generates the gRPC scheduler estimator service name which belongs to a cluster.

func GenerateExecutionSpaceName

func GenerateExecutionSpaceName(clusterName string) string

GenerateExecutionSpaceName generates execution space name for the given member cluster

func GenerateImpersonationSecretName added in v1.0.0

func GenerateImpersonationSecretName(clusterName string) string

GenerateImpersonationSecretName generates the secret name of impersonation secret.

func GeneratePolicyName added in v1.2.1

func GeneratePolicyName(namespace, name, gvk string) string

GeneratePolicyName generates the propagationPolicy name

func GenerateRoleName

func GenerateRoleName(serviceAccountName string) string

GenerateRoleName generates the name of a Role or ClusterRole.

func GenerateServiceAccountName

func GenerateServiceAccountName(clusterName string) string

GenerateServiceAccountName generates the name of a ServiceAccount.

func GenerateWorkName added in v0.6.0

func GenerateWorkName(kind, name, namespace string) string

GenerateWorkName will generate work name by its name and the hash of its namespace, kind and name.

func GetClusterName added in v0.3.0

func GetClusterName(executionSpaceName string) (string, error)

GetClusterName returns member cluster name for the given execution space

func IsReservedNamespace added in v1.0.0

func IsReservedNamespace(namespace string) bool

IsReservedNamespace return whether it is a reserved namespace

Types

This section is empty.

Jump to

Keyboard shortcuts

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