diff --git a/paasta_tools/setup_kubernetes_internal_crd.py b/paasta_tools/setup_kubernetes_internal_crd.py index c7653e8719..0d1d3e2778 100755 --- a/paasta_tools/setup_kubernetes_internal_crd.py +++ b/paasta_tools/setup_kubernetes_internal_crd.py @@ -69,21 +69,10 @@ "kind": "DeployGroup", "shortNames": ["dg"], }, - "validation": { - "openAPIV3Schema": { - "type": "object", - "properties": { - "service": {"type": "string"}, - "deploy_group": {"type": "string"}, - "git_sha": {"type": "string"}, - "image_version": {"type": "string"}, - }, - } - }, }, ), V1CustomResourceDefinition( - api_version="apiextensions.k8s.io/v1beta1", + api_version="apiextensions.k8s.io/v1", kind="CustomResourceDefinition", metadata={ "name": "startstopcontrols.paasta.yelp.com", @@ -93,24 +82,30 @@ }, spec={ "group": "paasta.yelp.com", - "versions": [{"name": "v1beta1", "served": True, "storage": True}], + "versions": [ + { + "name": "v1beta1", + "served": True, + "storage": True, + "schema": { + "openAPIV3Schema": { + "type": "object", + "properties": { + "service": {"type": "string"}, + "instance": {"type": "string"}, + "desired_state": {"type": "string"}, + "force_bounce": {"type": "string"}, + }, + } + }, + } + ], "scope": "Namespaced", "names": { "plural": "startstopcontrols", "singular": "startstopcontrol", "kind": "StartStopControl", }, - "validation": { - "openAPIV3Schema": { - "type": "object", - "properties": { - "service": {"type": "string"}, - "instance": {"type": "string"}, - "desired_state": {"type": "string"}, - "force_bounce": {"type": "string"}, - }, - } - }, }, ), ]