fix(ci): Remove stale kustomize before reinstall in validate-k8s workflow

Prevent 'kustomize exists' error when downloading tools in CI runner.
Use -f flag on mv commands to force overwrite.
This commit is contained in:
Story Crater Bot
2026-07-17 11:31:44 -07:00
parent 888c4f5493
commit c000ddb402
+4 -3
View File
@@ -30,11 +30,12 @@ jobs:
# Install kubeval
curl -L https://github.com/instrumenta/kubeval/releases/latest/download/kubeval-linux-amd64.tar.gz | tar xz
mv kubeval /usr/local/bin/
mv -f kubeval /usr/local/bin/
# Install kustomize
# Install kustomize (remove old if exists)
rm -f kustomize
curl -s https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh | bash
mv kustomize /usr/local/bin/
mv -f kustomize /usr/local/bin/
# Install ArgoCD CLI
curl -sSL -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64