From 77354d73b940e56e19b6e44f6c297b26f22d722f Mon Sep 17 00:00:00 2001 From: Mauren Berti Date: Sun, 19 May 2024 21:07:00 -0400 Subject: [PATCH] chore: add deprecation comment to commonLabels `commonLabels` is deprecated, but the field did not have a deprecation comment, like other fields do. Add the deprecation comment, as some IDEs use that as a guideline to show a strikethrough in the field names (and to follow the pattern of other deprecated fields). --- api/types/kustomization.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/types/kustomization.go b/api/types/kustomization.go index f86ec0b9e2..5fe32ebcf7 100644 --- a/api/types/kustomization.go +++ b/api/types/kustomization.go @@ -55,6 +55,7 @@ type Kustomization struct { // Namespace to add to all objects. Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"` + // Deprecated: Use the Labels field instead, which provides a superset of the functionality of CommonLabels. // CommonLabels to add to all objects and selectors. CommonLabels map[string]string `json:"commonLabels,omitempty" yaml:"commonLabels,omitempty"`