Documentation ¶
Index ¶
- Variables
- func ConvertKindToResource(config *rest.Config, groupVersionKind schema.GroupVersionKind) (schema.GroupVersionResource, error)
- func EnsureCRDFromFile(ctx context.Context, config *rest.Config, crdFilePath string, ...) error
- func EnsureCRDFromPhysicalCluster(ctx context.Context, pConfig *rest.Config, vConfig *rest.Config, ...) error
- func GetOwnerReference() []metav1.OwnerReference
- func IsManaged(obj runtime.Object) bool
- func IsManagedCluster(physicalNamespace string, obj runtime.Object) bool
- func KindExists(config *rest.Config, groupVersionKind schema.GroupVersionKind) (bool, error)
- func PhysicalName(name, namespace string) string
- func PhysicalNameClusterScoped(name, physicalNamespace string) string
- func SafeConcatGenerateName(name ...string) string
- func SafeConcatName(name ...string) string
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" )
View Source
var Owner client.Object
Functions ¶
func ConvertKindToResource ¶
func ConvertKindToResource(config *rest.Config, groupVersionKind schema.GroupVersionKind) (schema.GroupVersionResource, error)
func EnsureCRDFromFile ¶
func GetOwnerReference ¶
func GetOwnerReference() []metav1.OwnerReference
func KindExists ¶
KindExists checks if given CRDs exist in the given group. Returns foundKinds, notFoundKinds, error
func PhysicalName ¶
PhysicalName returns the physical name of the name / namespace resource
func PhysicalNameClusterScoped ¶
PhysicalNameClusterScoped returns the physical name of a cluster scoped object in the host cluster
func SafeConcatGenerateName ¶
func SafeConcatName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.