Skip to content

Commit

Permalink
ci: Enable kubeval strict mode (#206)
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Brunet <maxime.brunet@paytm.com>
  • Loading branch information
maxbrunet authored Mar 7, 2021
1 parent 151aa68 commit 32a21ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ generate: vendor ${MANIFESTS} **.md
$(EMBEDMD) -w `find . -name "*.md" | grep -v vendor`

.PHONY: ${MANIFESTS}
${MANIFESTS}: $(JSONNET) $(GOJSONTOYAML) vendor example.jsonnet build.sh
${MANIFESTS}: $(JSONNET) $(GOJSONTOYAML) vendor example.jsonnet all.jsonnet build.sh
@rm -rf ${MANIFESTS}
@mkdir -p ${MANIFESTS}
JSONNET=$(JSONNET) GOJSONTOYAML=$(GOJSONTOYAML) ./build.sh
Expand All @@ -39,5 +39,5 @@ clean:
rm -rf manifests/

.PHONY: validate
validate: $(KUBEVAL) $(MANIFESTS)
$(KUBEVAL) --ignore-missing-schemas $(MANIFESTS)/*.yaml
validate: $(KUBEVAL) $(MANIFESTS) $(EXAMPLES)/all/manifests
$(KUBEVAL) --strict --ignore-missing-schemas $(MANIFESTS)/*.yaml $(EXAMPLES)/all/manifests/*.yaml

0 comments on commit 32a21ed

Please sign in to comment.