Skip to content

Commit

Permalink
chore: add deprecation comment to commonLabels
Browse files Browse the repository at this point in the history
`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).
  • Loading branch information
stormqueen1990 committed May 20, 2024
1 parent e244b83 commit 77354d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/types/kustomization.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`

Expand Down

0 comments on commit 77354d7

Please sign in to comment.