translate

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NamespaceLabel  = "vcluster.loft.sh/namespace"
	MarkerLabel     = "vcluster.loft.sh/managed-by"
	ControllerLabel = "vcluster.loft.sh/controlled-by"
	Suffix          = "suffix"
)

Functions

func ConvertKindToResource

func ConvertKindToResource(config *rest.Config, groupVersionKind schema.GroupVersionKind) (schema.GroupVersionResource, error)

func EnsureCRDFromFile

func EnsureCRDFromFile(ctx context.Context, config *rest.Config, crdFilePath string, groupVersionKind schema.GroupVersionKind) error

func EnsureCRDFromPhysicalCluster

func EnsureCRDFromPhysicalCluster(ctx context.Context, pConfig *rest.Config, vConfig *rest.Config, groupVersionKind schema.GroupVersionKind) error

func GetOwnerReference

func GetOwnerReference() []metav1.OwnerReference

func IsManaged

func IsManaged(obj runtime.Object) bool

func IsManagedCluster

func IsManagedCluster(physicalNamespace string, obj runtime.Object) bool

func KindExists

func KindExists(config *rest.Config, groupVersionKind schema.GroupVersionKind) (bool, error)

KindExists checks if given CRDs exist in the given group. Returns foundKinds, notFoundKinds, error

func PhysicalName

func PhysicalName(name, namespace string) string

PhysicalName returns the physical name of the name / namespace resource

func PhysicalNameClusterScoped

func PhysicalNameClusterScoped(name, physicalNamespace string) string

PhysicalNameClusterScoped returns the physical name of a cluster scoped object in the host cluster

func SafeConcatGenerateName

func SafeConcatGenerateName(name ...string) string

func SafeConcatName

func SafeConcatName(name ...string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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