fix(actions): stop using argocd cli to wait for app sync, use kubectl instead
All checks were successful
/ validate (push) Successful in 3m20s

This commit is contained in:
jad0s 2026-06-12 21:37:28 +02:00
parent 7e545e39c3
commit 14f420a13d

View file

@ -25,8 +25,7 @@ jobs:
./manifests/ ./manifests/
- name: Create test cluster - name: Create test cluster
run: | run: k3d cluster create test --wait
k3d cluster create test --wait
- name: Install ArgoCD - name: Install ArgoCD
run: | run: |
@ -40,18 +39,6 @@ jobs:
-n argocd -n argocd
kubectl wait --for=condition=available --timeout=60s \ kubectl wait --for=condition=available --timeout=60s \
deployment/sealed-secrets-controller -n kube-system deployment/sealed-secrets-controller -n kube-system
kubectl -n argocd patch secret argocd-secret -p \
'{"stringData": {"admin.password": "$2a$10$rRyBsGSHK6.uc8fntPwVIuV8td2RMkiY1oiCQGiFLLsZjaGEPTnXK", "admin.passwordMtime": "2024-01-01T00:00:00Z"}}'
kubectl rollout restart deployment/argocd-server -n argocd
kubectl rollout status deployment/argocd-server -n argocd --timeout=60s
#- name: Login to ArgoCD
# run: |
# argocd login argocd-server.argocd.svc.cluster.local \
# --plaintext \
# --grpc-web \
# --username admin \
# --password argocd-ci
- name: Import SealedSecrets key - name: Import SealedSecrets key
env: env:
@ -62,20 +49,20 @@ jobs:
kubectl rollout status deployment/sealed-secrets-controller -n kube-system --timeout=60s kubectl rollout status deployment/sealed-secrets-controller -n kube-system --timeout=60s
- name: Apply ArgoCD apps - name: Apply ArgoCD apps
run: | run: kubectl apply -f apps/
kubectl apply -f apps/
- name: Wait for ArgoCD sync - name: Wait for ArgoCD sync
run: | run: |
APPS=$(argocd app list -o name) sleep 10
argocd app sync --core --async $APPS kubectl wait applications \
argocd app wait --core --health --timeout 300 $APPS --all \
--namespace argocd \
--for=jsonpath='{.status.health.status}'=Healthy \
--timeout=300s
- name: Wait for all deployments - name: Wait for all deployments
run: | run: kubectl wait --for=condition=available --timeout=300s deployment --all --all-namespaces
kubectl wait --for=condition=available --timeout=300s deployment --all --all-namespaces
- name: Cleanup - name: Cleanup
if: always() if: always()
run: | run: k3d cluster delete test
k3d cluster delete test