mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-30 09:51:23 +00:00
Allow nil label and annotaion
This fix is to allow value of lable or annoation to be nil
This commit is contained in:
@@ -76,7 +76,9 @@ func (o *mapTransformer) Transform(m resmap.ResMap) error {
|
||||
|
||||
func (o *mapTransformer) addMap(in interface{}) (interface{}, error) {
|
||||
m, ok := in.(map[string]interface{})
|
||||
if !ok {
|
||||
if in == nil {
|
||||
m = map[string]interface{}{}
|
||||
} else if !ok {
|
||||
return nil, fmt.Errorf("%#v is expected to be %T", in, m)
|
||||
}
|
||||
for k, v := range o.m {
|
||||
|
||||
Reference in New Issue
Block a user