Skip to content

Commit 18a9903

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 d22f12b commit 18a9903

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"definitions": {
5+
"nameNamespaceVersion": {
6+
"type": "object",
7+
"properties": {
8+
"name": {
9+
"type": "string"
10+
},
11+
"namespace": {
12+
"type": "string"
13+
},
14+
"version": {
15+
"type": "string"
16+
}
17+
},
18+
"required": ["name"],
19+
"additionalProperties": false
20+
}
21+
},
22+
"properties": {
23+
"core": {
24+
"$ref": "#/definitions/nameNamespaceVersion"
25+
},
26+
"bootstrap": {
27+
"type": "array",
28+
"items": {
29+
"$ref": "#/definitions/nameNamespaceVersion"
30+
}
31+
},
32+
"controlPlane": {
33+
"type": "array",
34+
"items": {
35+
"$ref": "#/definitions/nameNamespaceVersion"
36+
}
37+
},
38+
"infrastructure": {
39+
"type": "array",
40+
"items": {
41+
"$ref": "#/definitions/nameNamespaceVersion"
42+
}
43+
},
44+
"addon": {
45+
"type": "array",
46+
"items": {
47+
"$ref": "#/definitions/nameNamespaceVersion"
48+
}
49+
},
50+
"ipam": {
51+
"type": "array",
52+
"items": {
53+
"$ref": "#/definitions/nameNamespaceVersion"
54+
}
55+
}
56+
}
57+
}

0 commit comments

Comments
 (0)