chore(cli): Adding debug and skip migration flags
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
6f327e6109
commit
de23c3fccb
1 changed files with 5 additions and 6 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue