Skip to content

Commit

Permalink
Merge pull request #113 from erikgb/deprecate-propagate-generated-ann…
Browse files Browse the repository at this point in the history
…otation

chore: deprecate user-facing propagate-generated annotation
  • Loading branch information
yamatcha authored Dec 11, 2023
2 parents 38ea8a4 + f09b131 commit e24f4fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions controllers/propagate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 4 additions & 2 deletions pkg/constants/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e24f4fc

Please sign in to comment.