Unverified Commit ca4e65d0 authored by torgiren's avatar torgiren
Browse files

add argocd app sync cont.

Signed-off-by: torgiren's avatarMarcin Fabrykowski <git@fabrykowski.pl>
parent 7e8aa8bd
No related merge requests found
Showing with 1 addition and 5 deletions
+1 -5
......@@ -44,11 +44,7 @@ upload:
git push
fi
- export pod=$(kubectl -n argocd get pods -l app.kubernetes.io/name=argocd-server -o name|head -n1)
- echo $pod
#- kubectl -n argocd exec $pod -- argocd login cd.argoproj.io --core
- kubectl config view
- sh -c "kubectl -n argocd exec $pod -- argocd get app $refreshapp --refresh"
#- kubectl -n argocd exec $pod -- /bin/sh -c "argocd login cd.argoproj.io --core; argocd app sync $refreshapp --async"
- kubectl -n argocd exec $pod -- sh -c "argocd login cd.argoproj.io --core;argocd exec $pod -- argocd app get $refreshapp --refresh"
- stable=0; for try in $(seq -w 1 120); do
state=$(kubectl -n argocd get applications "$waitapp" -o template='{{.status.health.status}},{{.status.sync.status}},{{.spec.source.targetRevision}}');
[ "$state" == "Healthy,Synced,$VERSION" ] && stable=$((stable+1)) || stable=0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment