fix(cmd-edit-add-label): dubplicate key error

This commit is contained in:
isarns
2025-10-05 19:33:51 +03:00
parent 278dd6e55d
commit 9df8bbdc44

View File

@@ -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)