Skip to content

Commit 4b097ee

Browse files
committed
feat: introduce minimal chart values schema to catch structural changes
This introduces a minimal values.schema.json file to catch the breaking structural changes made to the values.yaml file in the related commits to this PR. This will cause the 'helm template' or 'helm lint' commands to throw errors and require consumers of the chart to fix their values.yaml before deploying.
1 parent 78eeb06 commit 4b097ee

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"properties": {
5+
"core": {
6+
"oneOf": [
7+
{ "type": "object" },
8+
{ "type": "null" }
9+
]
10+
},
11+
"bootstrap": {
12+
"type": "object",
13+
"oneOf": [
14+
{ "type": "object" },
15+
{ "type": "null" }
16+
]
17+
},
18+
"controlPlane": {
19+
"type": "object",
20+
"oneOf": [
21+
{ "type": "object" },
22+
{ "type": "null" }
23+
]
24+
},
25+
"infrastructure": {
26+
"type": "object",
27+
"oneOf": [
28+
{ "type": "object" },
29+
{ "type": "null" }
30+
]
31+
},
32+
"addon": {
33+
"type": "object",
34+
"oneOf": [
35+
{ "type": "object" },
36+
{ "type": "null" }
37+
]
38+
},
39+
"ipam": {
40+
"type": "object",
41+
"oneOf": [
42+
{ "type": "object" },
43+
{ "type": "null" }
44+
]
45+
}
46+
}
47+
}

0 commit comments

Comments
 (0)