Skip to content

Instantly share code, notes, and snippets.

@jannfis
Last active March 5, 2021 07:46
Show Gist options
  • Save jannfis/62fbd6293efc7362cd9b957151c798c2 to your computer and use it in GitHub Desktop.
Save jannfis/62fbd6293efc7362cd9b957151c798c2 to your computer and use it in GitHub Desktop.
Script to start Argo CD locally for debugging
#!/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