From d9ef8ca6576a9e70763cb00007fc44a41e13e5df Mon Sep 17 00:00:00 2001 From: Ivy Gooch Date: Wed, 5 Feb 2025 12:56:24 -0800 Subject: [PATCH] Adds helm schema validation test to the test suite --- build/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/Makefile b/build/Makefile index 2f6e2ac620..c14da4ee3c 100644 --- a/build/Makefile +++ b/build/Makefile @@ -298,7 +298,7 @@ push-release-chart: $(ensure-build-image) CHART_DIR=install/.helm-$(RELEASE_VERSION)/agones $(MAKE) push-chart # Run all tests -test: $(ensure-build-image) test-go test-sdks test-install-yaml site-test +test: $(ensure-build-image) test-go test-sdks test-install-yaml site-test helm-lint # Run go tests test-go: $(ensure-build-image) @@ -875,3 +875,6 @@ install-release: $(ensure-build-image) $(DOCKER_RUN_ARGS) \ $(build_tag) /go/src/agones.dev/agones/build/install-release.sh +# Validates the Helm values.yaml file against the values.schema.json file. +helm-lint: + $(DOCKER_RUN) bash -c 'cd $(mount_path)/install/helm/agones && helm lint .'