Skip to content

Commit

Permalink
Upgrading second CRD in internal script
Browse files Browse the repository at this point in the history
  • Loading branch information
wilmer05 committed Jul 6, 2023
1 parent fe92595 commit 44086c3
Showing 1 changed file with 19 additions and 24 deletions.
43 changes: 19 additions & 24 deletions paasta_tools/setup_kubernetes_internal_crd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"},
},
}
},
},
),
]
Expand Down

0 comments on commit 44086c3

Please sign in to comment.