Skip to content

Commit d4ca792

Browse files
committed
Makefile: add helm-schema target
For auto-generating the Helm validation schema.
1 parent acad4ae commit d4ca792

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
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

0 commit comments

Comments
 (0)