clusterobject

package
v0.0.0-...-5ee5d88 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterNameAnnotationKey = common.DefaultPrefix + "cluster"
	RawNameAnnotationKey     = common.DefaultPrefix + "raw-name"
)
View Source
const MaxHashLength = 10

MaxHashLength is maxLength of uint32

Variables

This section is empty.

Functions

func GenUniqueName

func GenUniqueName(cluster, rawName string) string

func GetPossibleClusters

func GetPossibleClusters(clusters []*fedcorev1a1.FederatedCluster, targetName string) []string

GetPossibleClusters returns the most matchable clusters from the target name

func MakeObjectUnique

func MakeObjectUnique(obj client.Object, clusterName string)

func MakePodUnique

func MakePodUnique(pod *corev1.Pod, clusterName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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