Pin helm capabilities version to the validation target
ci/woodpecker/pr/vector-test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful

Render charts with --helm-kube-version from ci/kube-version so kustomize
no longer inherits the local helm binary's default Kubernetes version.
This commit is contained in:
2026-09-19 12:28:16 +10:00
parent 6cc752336e
commit a34ff4be91
4 changed files with 10 additions and 5 deletions
+3 -1
View File
@@ -1,10 +1,12 @@
.PHONY: build clean schemas
KUBE_VERSION := $(shell cat ci/kube-version)
# Build a kustomization path to manifests directory
# Usage: make build clusters/au-syd1/bootstrap
build:
@mkdir -p manifests/$(filter-out $@,$(MAKECMDGOALS))
@kustomize build --enable-helm $(filter-out $@,$(MAKECMDGOALS)) --output manifests/$(filter-out $@,$(MAKECMDGOALS))
@kustomize build --enable-helm --helm-kube-version $(KUBE_VERSION) $(filter-out $@,$(MAKECMDGOALS)) --output manifests/$(filter-out $@,$(MAKECMDGOALS))
# Generate JSON schemas from CRDs and Kubernetes swagger spec (run manually, results committed)
schemas:
+1
View File
@@ -0,0 +1 @@
1.33.7
+3 -2
View File
@@ -1,7 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
KUBE_VERSION="1.33.7"
REPO_ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
KUBE_VERSION="$(cat "$REPO_ROOT/ci/kube-version")"
SCHEMA_DIR="${SCHEMA_DIR:-schemas}"
@@ -15,7 +16,7 @@ while IFS= read -r -d "" k; do
dir="$(dirname "$k")"
echo "==> kubeconform: $dir" >&2
kustomize build --enable-helm "$dir" \
kustomize build --enable-helm --helm-kube-version "$KUBE_VERSION" "$dir" \
| kubeconform \
-kubernetes-version "$KUBE_VERSION" \
-summary \
+3 -2
View File
@@ -1,7 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
KUBE_VERSION="1.33.7"
REPO_ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
KUBE_VERSION="$(cat "$REPO_ROOT/ci/kube-version")"
SCHEMA_DIR="${SCHEMA_DIR:-schemas}"
@@ -15,7 +16,7 @@ while IFS= read -r -d "" k; do
dir="$(dirname "$k")"
echo "==> kubeconform: $dir" >&2
kustomize build --enable-helm "$dir" \
kustomize build --enable-helm --helm-kube-version "$KUBE_VERSION" "$dir" \
| kubeconform \
-kubernetes-version "$KUBE_VERSION" \
-summary \