validate api version in kubectl --patch and --override.

This commit is contained in:
Mike Danese
2015-02-25 10:06:18 -08:00
parent 93c0052263
commit 25fac68ec4
2 changed files with 13 additions and 4 deletions

View File

@@ -130,6 +130,12 @@ func TestMerge(t *testing.T) {
},
},
},
{
kind: "Service",
obj: &api.Service{},
fragment: `{ "apiVersion": "badVersion" }`,
expectErr: true,
},
{
kind: "Service",
obj: &api.Service{