Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
exphost
exphost-helms
Commits
ca4e65d0
Unverified
Commit
ca4e65d0
authored
3 years ago
by
torgiren
Browse files
Options
Download
Email Patches
Plain Diff
add argocd app sync cont.
Signed-off-by:
Marcin Fabrykowski
<
git@fabrykowski.pl
>
parent
7e8aa8bd
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/gitlab-ci.yml
+1
-5
common/gitlab-ci.yml
with
1 addition
and
5 deletions
+1
-5
common/gitlab-ci.yml
+
1
-
5
View file @
ca4e65d0
...
...
@@ -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;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help