Documentation ¶
Index ¶
- Constants
- func AddContentLibraryRefToAnnotation(to client.Object, ref *imgregv1a1.NameAndKindRef) error
- func DummyClusterContentLibraryItem(name string) *imgregv1a1.ClusterContentLibraryItem
- func DummyContentLibraryItem(name, namespace string) *imgregv1a1.ContentLibraryItem
- func FilterServicesTypeLabels(labels map[string]string) map[string]string
- func GetImageFieldNameFromItem(itemName string) (string, error)
- func IsItemReady(itemConditions imgregv1a1.Conditions) bool
Constants ¶
View Source
const ( ItemFieldNamePrefix = "clitem" ImageFieldNamePrefix = "vmi" ClusterContentLibraryKind = "ClusterContentLibrary" ClusterContentLibraryItemKind = "ClusterContentLibraryItem" ContentLibraryKind = "ContentLibrary" ContentLibraryItemKind = "ContentLibraryItem" ContentLibraryItemVmopFinalizer = "contentlibraryitem.vmoperator.vmware.com" ClusterContentLibraryItemVmopFinalizer = "clustercontentlibraryitem.vmoperator.vmware.com" // TKGServiceTypeLabelKeyPrefix is a label prefix used to identify // labels that contain information about the type of service provided // by a ClusterContentLibrary. // This label prefix is replaced by MultipleCLServiceTypeLabelKeyPrefix // when Features.TKGMultipleCL is enabled. TKGServiceTypeLabelKeyPrefix = "type.services.vmware.com/" // MultipleCLServiceTypeLabelKeyPrefix is a label prefix used to identify // labels that contain information about the type of service provided // by a ClusterContentLibrary. // This label prefix is used only when Features.TKGMultipleCL is enabled, // otherwise TKGServiceTypeLabelKeyPrefix is used. MultipleCLServiceTypeLabelKeyPrefix = "services.supervisor.vmware.com/" )
View Source
const ContentLibraryServiceTypeLabelKey = "type.services.vmware.com/tkg"
ContentLibraryServiceTypeLabelKey is used to differentiate a TKG resource from a VM service resource.
Variables ¶
This section is empty.
Functions ¶
func AddContentLibraryRefToAnnotation ¶ added in v1.8.6
func AddContentLibraryRefToAnnotation(to client.Object, ref *imgregv1a1.NameAndKindRef) error
AddContentLibraryRefToAnnotation adds the conversion annotation with the content library ref value populated.
func DummyClusterContentLibraryItem ¶
func DummyClusterContentLibraryItem(name string) *imgregv1a1.ClusterContentLibraryItem
func DummyContentLibraryItem ¶
func DummyContentLibraryItem(name, namespace string) *imgregv1a1.ContentLibraryItem
func GetImageFieldNameFromItem ¶
GetImageFieldNameFromItem returns the Image field name in format of "vmi-<uuid>" by using the same identifier from the given Item name in "clitem-<uuid>".
func IsItemReady ¶
func IsItemReady(itemConditions imgregv1a1.Conditions) bool
IsItemReady returns if the given item conditions contain a Ready condition with status True.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.