From 7de6100dae55dcd33f4c2d0f14f455c9bec17ec1 Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Sun, 3 Apr 2022 22:15:45 -0400 Subject: [PATCH] Expand cmd tests of modifying schema-declaring custom resources --- test/cmd/crd.sh | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/test/cmd/crd.sh b/test/cmd/crd.sh index 1a1c990988e..c4c6e193652 100755 --- a/test/cmd/crd.sh +++ b/test/cmd/crd.sh @@ -45,8 +45,22 @@ run_crd_tests() { "storage": true, "schema": { "openAPIV3Schema": { - "x-kubernetes-preserve-unknown-fields": true, - "type": "object" + "type": "object", + "properties": { + "metadata": {"type": "object"}, + "nestedField": { + "type": "object", + "properties": { + "someSubfield": {"type": "string"}, + "otherSubfield": {"type": "string"}, + "newSubfield": {"type": "string"} + } + }, + "otherField": {"type": "string"}, + "someField": {"type": "string"}, + "newField": {"type": "string"}, + "patched": {"type": "string"} + } } } }