Versions in this module Expand all Collapse all v0 v0.12.1 Dec 11, 2024 v0.12.0 Oct 31, 2024 Changes in this version + const ApplicationNameKey + const ApplicationVersionKey + const ClusterComponentsNamespace + const ComponentNameKey + const InfraredSystemNamespace + const ManagedByKey + const SuspendKey + var ApplicationName = "" + var ApplicationVersion = "" + var ComponentName = "" + func AddFinalizer(ctx context.Context, c client.Client, obj client.Object, finalizerKey string) error + func HasSuspendLabel(o client.Object) bool + func InitRedditLabels(applicationName, applicationVersion, componentName string) + func MustGVKForObject(obj client.Object, scheme *runtime.Scheme) schema.GroupVersionKind + func MustTypedObjectRefFromObject(obj client.Object, scheme *runtime.Scheme) *api.TypedObjectRef + func NewObjectForGVK(scheme *runtime.Scheme, gvk schema.GroupVersionKind) (client.Object, error) + func RedditLabels(controllerName string) map[string]string + func RemoveFinalizer(ctx context.Context, c client.Client, obj client.Object, finalizerKey string) error + func ResourceScope(o client.Object, scheme *runtime.Scheme, mapper meta.RESTMapper) (meta.RESTScopeName, error) + func SetControllerRef(o client.Object, owner client.Object, scheme *runtime.Scheme) error + func SetOwnerRef(o client.Object, owner client.Object, scheme *runtime.Scheme) error + func SetRedditLabels(obj client.Object, controllerName string) + func TypedObjectRefFromObject(obj client.Object, scheme *runtime.Scheme) (*api.TypedObjectRef, error) + func WasCreated(o metav1.Object) bool + func WasDeleted(o metav1.Object) bool