Skip to content

Commit 9e0ec32

Browse files
committed
add support to set labels without selector
1 parent 15d76df commit 9e0ec32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kustomize/commands/edit/add/addmetadata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func newCmdAddLabel(fSys filesys.FileSystem, v func(map[string]string) error) *c
7070
o.mapValidator = v
7171
cmd := &cobra.Command{
7272
Use: "label",
73-
Short: "Adds one or more commonLabels to " +
73+
Short: "Adds one or more commonLabels or labels to " +
7474
konfig.DefaultKustomizationFileName(),
7575
Example: `
7676
add label {labelKey1:labelValue1} {labelKey2:labelValue2}`,

kustomize/commands/edit/set/setlabel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func newCmdSetLabel(fSys filesys.FileSystem, v func(map[string]string) error) *c
2727
o.mapValidator = v
2828
cmd := &cobra.Command{
2929
Use: "label",
30-
Short: "Sets one or more commonLabels in " +
30+
Short: "Sets one or more commonLabels or labels in " +
3131
konfig.DefaultKustomizationFileName(),
3232
Example: `
3333
set label {labelKey1:labelValue1} {labelKey2:labelValue2}`,

0 commit comments

Comments
 (0)