chore(cli): Adding debug and skip migration flags

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
rjshrjndrn 2023-01-05 00:38:17 +01:00
parent 6f327e6109
commit de23c3fccb

View file

@ -47,7 +47,7 @@ cat <<"EOF"
EOF
echo -e "${green}Usage: openreplay-cli [ -h | --help ]
echo -e "${green}Usage: [DEBUG=1|SKIP_MIGRAION=1] openreplay-cli [ -h | --help ]
[ -d | --status ]
[ -v | --verbose ]
[ -l | --logs SERVICE ]
@ -96,11 +96,10 @@ restart() {
helmInstall() {
[[ FORCE_UPGRADE_FRONTENT -eq 1 ]] && {
helm upgrade --install openreplay -n app openreplay -f vars.yaml --set forceUpgradeFrontend=true
} || {
helm upgrade --install openreplay -n app openreplay -f vars.yaml
}
# Adding variables
[[ $SKIP_MIGRATION -eq 1 ]] && ARGS="--set skipMigration=true"
[[ $DEBUG -eq 1 ]] && ARGS="$ARGS --debug"
helm upgrade --install openreplay -n app openreplay -f vars.yaml $ARGS
}
upgrade() {