You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# helm-validate-all - Run comprehensive Helm chart validation
10
+
# helm-update-schema - Update values.schema.json from values.yaml
11
+
2
12
.PHONY: test
3
13
test:
4
14
@echo "Running tests..."
5
15
@go test -v ./...
6
-
@govulncheck -show verbose ./...
16
+
@govulncheck -show verbose ./...
17
+
18
+
.PHONY: helm-validate-template
19
+
helm-validate-template:
20
+
@echo "Validating Helm chart templates..."
21
+
@command -v helm >/dev/null 2>&1|| { echo"helm is required but not installed. Please install Helm.";exit 1; }
22
+
@command -v kubeconform >/dev/null 2>&1|| { echo"kubeconform is required but not installed. Install it with: go install github.com/yannh/kubeconform/cmd/kubeconform@latest";exit 1; }
@echo "Comprehensive validation of custom values file..."
36
+
@if [ -z"$(VALUES_FILE)" ];thenecho"Usage: make helm-validate-custom-values VALUES_FILE=path/to/values.yaml";exit 1;fi
37
+
@command -v helm >/dev/null 2>&1|| { echo"helm is required but not installed. Please install Helm.";exit 1; }
38
+
@command -v kubeconform >/dev/null 2>&1|| { echo"kubeconform is required but not installed. Install it with: go install github.com/yannh/kubeconform/cmd/kubeconform@latest";exit 1; }
39
+
@command -v yq >/dev/null 2>&1|| { echo"yq is required but not installed. Install it with: go install github.com/mikefarah/yq/v4@latest";exit 1; }
40
+
@command -v ajv >/dev/null 2>&1|| { echo"ajv-cli is required but not installed. Install it with: npm install -g ajv-cli";exit 1; }
@echo "Note: To validate custom values, run: make helm-validate-custom-values VALUES_FILE=your-values.yaml"
51
+
52
+
.PHONY: helm-update-schema
53
+
helm-update-schema:
54
+
@echo "Updating Helm chart values schema..."
55
+
@command -v helm-schema >/dev/null 2>&1|| { echo"helm-schema is required but not installed. Install it with: go install github.com/dadav/helm-schema/cmd/helm-schema@latest";exit 1; }
0 commit comments