generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
1 changed file
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"definitions": { | ||
"nameNamespaceVersion": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"namespace": { | ||
"type": "string" | ||
}, | ||
"version": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"properties": { | ||
"core": { | ||
"oneOf": [ | ||
{ "$ref": "#/definitions/commonObject" }, | ||
{ "type": "null" } | ||
] | ||
}, | ||
"bootstrap": { | ||
"type": "array", | ||
"items": { | ||
"oneOf": [ | ||
{ "$ref": "#/definitions/commonObject" }, | ||
{ "type": "null" } | ||
] | ||
} | ||
}, | ||
"controlPlane": { | ||
"type": "array", | ||
"items": { | ||
"oneOf": [ | ||
{ "$ref": "#/definitions/commonObject" }, | ||
{ "type": "null" } | ||
] | ||
} | ||
}, | ||
"infrastructure": { | ||
"type": "array", | ||
"items": { | ||
"oneOf": [ | ||
{ "$ref": "#/definitions/commonObject" }, | ||
{ "type": "null" } | ||
] | ||
} | ||
}, | ||
"addon": { | ||
"type": "array", | ||
"items": { | ||
"oneOf": [ | ||
{ "$ref": "#/definitions/commonObject" }, | ||
{ "type": "null" } | ||
] | ||
} | ||
}, | ||
"ipam": { | ||
"type": "array", | ||
"items": { | ||
"oneOf": [ | ||
{ "$ref": "#/definitions/commonObject" }, | ||
{ "type": "null" } | ||
] | ||
} | ||
} | ||
} | ||
} |