Skip to content

Commit 9df8bbd

Browse files
committed
fix(cmd-edit-add-label): dubplicate key error
1 parent 278dd6e commit 9df8bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kustomize/commands/edit/add/addmetadata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func (o *addMetadataOptions) writeToLabels(m *types.Kustomization, kind kindOfAd
183183
}
184184
continue
185185
}
186-
if err := o.writeToMap(lbl.Pairs, kind); err != nil {
186+
if err := o.writeToMapEntry(lbl.Pairs, k, v, kind); err != nil {
187187
return err
188188
}
189189
m.Labels = append(m.Labels, lbl)

0 commit comments

Comments
 (0)