chore(cli): Don't reload toolings (#1056)
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
cfbe105f46
commit
ae7d2d8f7a
1 changed files with 3 additions and 1 deletions
|
|
@ -153,10 +153,12 @@ function status() {
|
|||
function or_helm_upgrade() {
|
||||
set -o pipefail
|
||||
log_file="${tmp_dir}/helm.log"
|
||||
state=$1
|
||||
chart_names=(
|
||||
toolings
|
||||
openreplay
|
||||
)
|
||||
[[ $state == "reload" ]] && chart_names=( openreplay )
|
||||
for chart in "${chart_names[@]}"; do
|
||||
[[ -z $OR_VERSION ]] || HELM_OPTIONS="--set dbMigrationUpstreamBranch=${OR_VERSION}"
|
||||
if ! helm upgrade --install "$chart" ./"$chart" -n "$APP_NS" --wait -f ./vars.yaml --atomic --debug $HELM_OPTIONS 2>&1 | tee -a "${log_file}"; then
|
||||
|
|
@ -223,7 +225,7 @@ function upgrade() {
|
|||
function reload() {
|
||||
err_cd $OR_DIR/openreplay/scripts/helmcharts
|
||||
sudo cp -f $OR_DIR/vars.yaml .
|
||||
or_helm_upgrade
|
||||
or_helm_upgrade reload
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue