mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 10:15:22 +00:00
fix(cmd-edit-add-label): dubplicate key error
This commit is contained in:
@@ -183,7 +183,7 @@ func (o *addMetadataOptions) writeToLabels(m *types.Kustomization, kind kindOfAd
|
||||
}
|
||||
continue
|
||||
}
|
||||
if err := o.writeToMap(lbl.Pairs, kind); err != nil {
|
||||
if err := o.writeToMapEntry(lbl.Pairs, k, v, kind); err != nil {
|
||||
return err
|
||||
}
|
||||
m.Labels = append(m.Labels, lbl)
|
||||
|
||||
Reference in New Issue
Block a user