Fix workflow Kubernetes manifest validation

This commit is contained in:
juvdiaz 2026-05-25 14:04:11 -06:00
parent 6f121ec945
commit 6cb1b0cdec
1 changed files with 2 additions and 3 deletions

View File

@ -36,11 +36,10 @@ jobs:
bash -n lab.sh
mapfile -t manifests < <(find apps -type f \( -name '*.yaml' -o -name '*.yml' \) | sort)
kubectl --kubeconfig "${KUBECONFIG:-/home/jv/.kube/config}" apply --dry-run=server -f "${manifests[@]}"
kubectl --kubeconfig "${KUBECONFIG:-/home/jv/.kube/config}" apply --dry-run=server --recursive -f apps
set +e
kubectl --kubeconfig "${KUBECONFIG:-/home/jv/.kube/config}" diff -f "${manifests[@]}"
kubectl --kubeconfig "${KUBECONFIG:-/home/jv/.kube/config}" diff --recursive -f apps
diff_status="$?"
set -e
if (( diff_status > 1 )); then