Skip to content

Commit

Permalink
(argo) add makefile targets (#1689)
Browse files Browse the repository at this point in the history
  • Loading branch information
deer-wmde authored Sep 3, 2024
1 parent 6f3cacc commit d08d2a1
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,31 @@ skaffold-%:
skaffold-run: # @HELP Run all local modules using skaffold
skaffold-run:
cd ./skaffold && skaffold run --kube-context minikube-wbaas

.PHONY: argo-reset-password
argo-reset-password: # @HELP Reset the admin password for the ArgoCD of the current context
argo-reset-password:
./bin/reset-argocd-password

argo-sync-app-of-apps:
argo-sync-ui: # @HELP Sync ui in ArgoCD
.PHONY: argo-sync-%
argo-sync-%: # @HELP Sync any Application defined in ArgoCD
argo-sync-%: APP=$*
argo-sync-%:
./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: # @HELP List current applications and their state in ArgoCD
argo-list:
./bin/argocli app list

.PHONY: argo-port-forward
argo-port-forward: # @HELP Port forwards the ArgoCD UI to localhost:8080
argo-port-forward:
kubectl -n argocd port-forward deployments/argo-cd-base-argocd-server 8080

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 $*

2 changes: 1 addition & 1 deletion doc/deployments/argocd.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ This GitHub workflow runs the script to check if the checked-in values files are
- Forward port `8080` of the deployment `argo-cd-base-argocd-server`

```
kubectl -n argocd port-forward deployments/argo-cd-base-argocd-server 8080`
make argo-port-forward
```

0 comments on commit d08d2a1

Please sign in to comment.