mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
print non-existent key in configmap
This commit is contained in:
parent
4a8c245e6e
commit
6abed5883f
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user