Skip to content

Commit fee71ec

Browse files
authored
Merge pull request #2311 from marquiz/devel/helm-schema
helm: add validation schema
2 parents 1e04787 + 3de7a92 commit fee71ec

File tree

5 files changed

+1403
-91
lines changed

5 files changed

+1403
-91
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,16 @@ mdlint:
179179
ruby:slim \
180180
/workdir/scripts/test-infra/mdlint.sh
181181

182+
.PHONY: helm-schema
183+
helm-schema:
184+
@if ! helm schema -h >/dev/null 2>&1; then \
185+
echo "ERROR: helm schema command not found! Please install the plugin with:"; \
186+
echo " helm plugin install https://github.com/losisin/helm-values-schema-json.git"; \
187+
exit 1; \
188+
fi
189+
cd deployment/helm/node-feature-discovery/ && \
190+
helm schema
191+
182192
helm-lint:
183193
helm lint --strict deployment/helm/node-feature-discovery/
184194

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Configuration file for https://github.com/losisin/helm-values-schema-json
2+
values:
3+
- values.yaml
4+
output: values.schema.json
5+
k8sSchemaVersion: "v1.34.1"
6+
useHelmDocs: true

0 commit comments

Comments
 (0)