Skip to content

Commit 77354d7

Browse files
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).
1 parent e244b83 commit 77354d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/types/kustomization.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ type Kustomization struct {
5555
// Namespace to add to all objects.
5656
Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
5757

58+
// Deprecated: Use the Labels field instead, which provides a superset of the functionality of CommonLabels.
5859
// CommonLabels to add to all objects and selectors.
5960
CommonLabels map[string]string `json:"commonLabels,omitempty" yaml:"commonLabels,omitempty"`
6061

0 commit comments

Comments
 (0)