Update Vault installation to wait for available condition instead of ready for improved deployment accuracy

This commit is contained in:
cedricve
2025-11-26 17:02:15 +01:00
parent bf6eed584e
commit f3ff7c4c67

View File

@@ -86,7 +86,7 @@ jobs:
kubectl apply -f ./base/vault/mongodb-configmap.yaml -n kerberos-vault
kubectl apply -f ./base/vault/kerberos-vault-deployment.yaml -n kerberos-vault
kubectl apply -f ./base/vault/kerberos-vault-service.yaml -n kerberos-vault
kubectl wait --for=condition=ready deployment/vault -n kerberos-vault --timeout=300s
kubectl wait --for=condition=available deployment/vault -n kerberos-vault --timeout=300s
kubectl get pods -A -o wide
kubectl get pods -A -o wide | grep kerberos-vault | awk '{print $3}' | grep -q '1/1' && echo "kerberos-vault pod is running with status 1/1" || (echo "kerberos-vault pod is not running with status 1/1" && exit 1)
- name: Install Agent