Skip to content

Commit

Permalink
add & use ./bin/argocli
Browse files Browse the repository at this point in the history
  • Loading branch information
deer-wmde committed Jul 31, 2024
1 parent 19e3608 commit e4a8e90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ argo-sync-ui: # @HELP Sync ui in ArgoCD
argo-sync-%: # @HELP Sync any Application defined in ArgoCD
argo-sync-%: APP=$*
argo-sync-%:
kubectl -n argocd exec statefulsets/argo-cd-base-argocd-application-controller -- argocd --core app sync $(APP)
./bin/argocli app sync $(APP)

.PHONY: argo-sync
argo-sync: # @HELP Sync app-of-apps in ArgoCD (which contains all other Applications)
argo-sync: argo-sync-app-of-apps

.PHONY: argo-list
argo-list:
kubectl -n argocd exec statefulsets/argo-cd-base-argocd-application-controller -- argocd --core app list
./bin/argocli app list

4 changes: 4 additions & 0 deletions bin/argocli
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

kubectl -n argocd exec statefulsets/argo-cd-base-argocd-application-controller -- argocd --core $*

0 comments on commit e4a8e90

Please sign in to comment.