print non-existent key in configmap

This commit is contained in:
xilabao 2017-06-13 17:27:05 +08:00
parent 4a8c245e6e
commit 6abed5883f

View File

@ -266,9 +266,7 @@ func MakePayload(mappings []v1.KeyToPath, configMap *v1.ConfigMap, defaultMode *
if optional { if optional {
continue continue
} }
err_msg := "references non-existent config key" return nil, fmt.Errorf("configmap references non-existent config key: %s", ktp.Key)
glog.Errorf(err_msg)
return nil, fmt.Errorf(err_msg)
} }
fileProjection.Data = []byte(content) fileProjection.Data = []byte(content)