Last active
March 5, 2021 07:46
-
-
Save jannfis/62fbd6293efc7362cd9b957151c798c2 to your computer and use it in GitHub Desktop.
Script to start Argo CD locally for debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Usage: $0 <component to debug> | |
# Will start all other components, and leaves starting the component to debug | |
# to the user (most likely, using delve via vscode). | |
MANDATORY_COMPONENTS="dex redis ui git-server dev-mounter" | |
case "$1" in | |
"server") | |
ADDITIONAL_COMPONENTS="repo-server controller" | |
;; | |
"repo-server") | |
ADDITIONAL_COMPONENTS="api-server controller" | |
;; | |
"controller") | |
ADDITIONAL_COMPONENTS="api-server repo-server" | |
;; | |
*) | |
echo "USAGE: $0 <server|repo-server|controller>" >&2 | |
exit 1 | |
;; | |
esac | |
export ARGOCD_START="${ADDITIONAL_COMPONENTS} ${MANDATORY_COMPONENTS}" | |
make start-local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment