Allows Secret & ConfigMap Keys to look like Environment Variables

This makes environment variable style keys (uppercase with underscores) valid
in Secrets and ConfigMap.
This commit is contained in:
Ed Robinson
2016-05-11 06:59:59 +01:00
parent 897d277095
commit d4969ff032
4 changed files with 22 additions and 10 deletions

View File

@@ -93,7 +93,7 @@ func TestUpdate(t *testing.T) {
// invalid updateFunc
func(obj runtime.Object) runtime.Object {
cfg := obj.(*api.ConfigMap)
cfg.Data["badKey"] = "value"
cfg.Data["bad*Key"] = "value"
return cfg
},
)