Record deployed Argo CD 10.10.5 tooling

This commit is contained in:
2026-10-18 15:23:23 +02:00
parent 89dfc412f2
commit d2f4bb7c95
3 changed files with 10 additions and 3 deletions
+8 -1
View File
@@ -2,8 +2,15 @@
set -eu
chart_version=10.7.2
chart_version=10.10.5
project_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
expected_context=kubernetes-admin@kubernetes
current_context=$(kubectl config current-context)
if [ "$current_context" != "$expected_context" ]; then
echo "Refusing mutation: expected context $expected_context, got $current_context" >&2
exit 1
fi
for command in helm kubectl openssl base64 curl; do
if ! command -v "$command" >/dev/null 2>&1; then
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
project_dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
version=${ARGOCD_CHART_VERSION:-10.7.2}
version=${ARGOCD_CHART_VERSION:-10.10.5}
output=${1:?Usage: render.sh OUTPUT_FILE}
chart=$(mktemp)
trap 'rm -f "${chart}"' EXIT
+1 -1
View File
@@ -9,7 +9,7 @@ if grep -Eq '^kind: Secret$' "${workdir}/argocd.yaml"; then
echo "Rendered Argo CD state must not contain Secrets" >&2; exit 1
fi
image=ghcr.io/yannh/kubeconform:v0.7.0
validate() { if command -v kubeconform >/dev/null; then kubeconform -strict -exit-on-error -summary "$@"; else local file=${!#}; docker run --rm -i "${image}" -strict -exit-on-error -summary "${@:1:$#-1}" < "$file"; fi; }
validate() { if command -v kubeconform >/dev/null; then kubeconform -strict -exit-on-error -summary "$@"; else local file=${!#}; podman run --rm -i "${image}" -strict -exit-on-error -summary "${@:1:$#-1}" < "$file"; fi; }
validate -ignore-missing-schemas "${workdir}/argocd.yaml"
validate "${project_dir}/ci-deployer.yaml"
echo "Argo CD chart and CI resources are valid."