mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +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
|
continue
|
||||||
}
|
}
|
||||||
if err := o.writeToMap(lbl.Pairs, kind); err != nil {
|
if err := o.writeToMapEntry(lbl.Pairs, k, v, kind); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
m.Labels = append(m.Labels, lbl)
|
m.Labels = append(m.Labels, lbl)
|
||||||
|
|||||||
Reference in New Issue
Block a user