diff --git a/controllers/propagate_test.go b/controllers/propagate_test.go index 80e6d7d..11991b2 100644 --- a/controllers/propagate_test.go +++ b/controllers/propagate_test.go @@ -364,6 +364,7 @@ var _ = Describe("SubNamespace controller", func() { cm1 := &corev1.ConfigMap{} cm1.Namespace = rootNS cm1.Name = "cm-generate" + //lint:ignore SA1019 subject for removal cm1.Annotations = map[string]string{constants.AnnPropagateGenerated: constants.PropagateUpdate} cm1.Data = map[string]string{"foo": "bar"} err := k8sClient.Create(ctx, cm1) diff --git a/pkg/constants/meta.go b/pkg/constants/meta.go index 34a9a1e..e3ae765 100644 --- a/pkg/constants/meta.go +++ b/pkg/constants/meta.go @@ -16,8 +16,10 @@ const ( // Annotations const ( - AnnFrom = MetaPrefix + "from" - AnnPropagate = MetaPrefix + "propagate" + AnnFrom = MetaPrefix + "from" + AnnPropagate = MetaPrefix + "propagate" + // Deprecated: Part of the deprecated propagate-generated feature subject for + // removal soon. AnnPropagateGenerated = MetaPrefix + "propagate-generated" // Deprecated: Part of the deprecated propagate-generated feature subject for // removal soon.