From f09b131f4a1c0526851b45f11a99ea1fd71611ad Mon Sep 17 00:00:00 2001 From: Erik Godding Boye Date: Fri, 8 Dec 2023 19:57:39 +0100 Subject: [PATCH] chore: deprecate user-facing propagate-generated annotation --- controllers/propagate_test.go | 1 + pkg/constants/meta.go | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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.