translate

package
v0.1.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 7 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MarkerLabel = "vcluster.loft.sh/managed-by"
	Suffix      = "suffix"
)
View Source
var OwningStatefulSet *appsv1.StatefulSet

Functions

func EqualExcept

func EqualExcept(a map[string]string, b map[string]string, except ...string) bool

func IsManaged

func IsManaged(obj runtime.Object) bool

func ObjectPhysicalName

func ObjectPhysicalName(obj runtime.Object) string

Returns the translated physical name of this object

func PhysicalName

func PhysicalName(name, namespace string) string

Returns the physical name of the name / namespace resource

func ResetObjectMetadata

func ResetObjectMetadata(obj metav1.Object)

ResetObjectMetadata resets the objects metadata except name, namespace and annotations

func SafeConcatName

func SafeConcatName(name ...string) string

func SetExcept

func SetExcept(from map[string]string, to map[string]string, except ...string) map[string]string

func SetupMetadata

func SetupMetadata(targetNamespace string, obj runtime.Object) (runtime.Object, error)

func Split

func Split(s, sep string) (string, string)

func UniqueSlice

func UniqueSlice(stringSlice []string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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