Skip to content

Commit 2d3e1a9

Browse files
committed
Further hardening of values.schema.json
1 parent 3cdbb59 commit 2d3e1a9

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

charts/sourcebot/values.schema.json

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,23 @@
3838
},
3939
"strategy": {
4040
"type": "object",
41-
"properties": {
42-
"type": {
43-
"type": "string",
44-
"enum": ["RollingUpdate", "Recreate"]
41+
"oneOf": [
42+
{
43+
"additionalProperties": false,
44+
"properties": {
45+
"type": { "type": "string", "const": "RollingUpdate" },
46+
"rollingUpdate": { "type": "object" }
47+
},
48+
"required": ["type"]
4549
},
46-
"rollingUpdate": {
47-
"type": "object"
50+
{
51+
"additionalProperties": false,
52+
"properties": {
53+
"type": { "type": "string", "const": "Recreate" }
54+
},
55+
"required": ["type"]
4856
}
49-
}
57+
]
5058
},
5159
"image": {
5260
"type": "object",

0 commit comments

Comments
 (0)