names

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: Apache-2.0 Imports: 2 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 namespace, kind and name

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