names

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 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-"

	// 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

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 GenerateClusterAPISecretName added in v0.8.0

func GenerateClusterAPISecretName(clusterName string) string

GenerateClusterAPISecretName generates the secret name of cluster authentication in cluster-api.

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 GenerateEstimatorServiceName added in v0.9.0

func GenerateEstimatorServiceName(clusterName string) string

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

func GenerateExecutionSpaceName

func GenerateExecutionSpaceName(clusterName string) (string, error)

GenerateExecutionSpaceName generates execution space name for the given member cluster

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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