Documentation
¶
Index ¶
- Constants
- func AddKCMComponentLabel(ctx context.Context, cl client.Client, o client.Object) (labelsUpdated bool, err error)
- func AddLabel(o client.Object, labelKey, labelValue string) (labelsUpdated bool)
- func AddOwnerReference(dependent, owner client.Object) (changed bool)
- func CurrentNamespace() string
- func DetermineDefaultRepositoryType(templatesRepoURL string) (string, error)
- func EnsureDeleteAllOf(ctx context.Context, cl client.Client, gvk schema.GroupVersionKind, ...) error
- func HasLabel(obj client.Object, labelName string) bool
- func PtrTo[T any](v T) *T
- func ReleaseNameFromVersion(version string) (string, error)
- func TemplatesChartFromReleaseName(releaseName string) string
Constants ¶
View Source
const ( RegistryTypeOCI = "oci" RegistryTypeDefault = "default" )
View Source
const (
DefaultSystemNamespace = "kcm-system"
)
Variables ¶
This section is empty.
Functions ¶
func AddKCMComponentLabel ¶ added in v0.0.7
func AddKCMComponentLabel(ctx context.Context, cl client.Client, o client.Object) (labelsUpdated bool, err error)
AddKCMComponentLabel adds the common KCM component label with the kcm value to the given object and updates it if it is required.
func AddLabel ¶ added in v0.0.7
AddLabel adds the provided label key and value to the object if not presented or if the existing label value does not equal the given one. Returns an indication of whether it updated the labels of the object.
func AddOwnerReference ¶
func CurrentNamespace ¶
func CurrentNamespace() string
func EnsureDeleteAllOf ¶
func EnsureDeleteAllOf(ctx context.Context, cl client.Client, gvk schema.GroupVersionKind, opts *client.ListOptions) error
func HasLabel ¶ added in v0.3.0
HasLabel is a helper function to check for a specific label existence
func ReleaseNameFromVersion ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.