names

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateBindingName

func GenerateBindingName(namespace, 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 GenerateOwnerLabelValue

func GenerateOwnerLabelValue(namespace, name string) string

GenerateOwnerLabelValue will get owner label value.

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 GetClusterName added in v0.3.0

func GetClusterName(executionSpaceName string) (string, error)

GetClusterName returns member cluster name for the given execution space

func GetNamespaceAndName

func GetNamespaceAndName(value string) (string, string, error)

GetNamespaceAndName will get namespace and name from ownerLabel. For example: "karmada-es-member-1.default-deployment-nginx"

Types

This section is empty.

Jump to

Keyboard shortcuts

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