Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Fix Velero namespace setting and add export statements
Browse files Browse the repository at this point in the history
Fix Velero namespace setting and add export statements
  • Loading branch information
Heavybullets8 committed Jan 1, 2024
1 parent c26351f commit 59d3e6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions functions/menu/velero.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ velero_set_conf() {
echo -e "${red}Failed to set Velero namespace.${reset}"
fi
else
echo -e "${red}Failed to set Velero namespace.${reset}"
echo -e "${red}Are you sure the application is installed?${reset}"
echo -e "${red}Failed to set ${blue}Velero${red} namespace.${reset}"
echo -e "${red}Please ensure that ${blue}Velero${red} is installed from the ${blue}Truecharts${red}, ${blue}enterprise${red} train.${reset}"
echo -e "${red}After installing the application, please run this function again.${reset}"
fi
}

Expand Down
3 changes: 2 additions & 1 deletion functions/update/pre_process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,12 @@ pre_process() {
new_full_ver="${app_vars[3]}"
rollback_version="${app_vars[4]}"

export operator isStopped stopAll cnpg
operator=$(printf '%s\0' "${apps_with_status[@]}" | grep -iFxqz "${app_name},operator" && echo true || echo false)
isStopped=$(printf '%s\0' "${apps_with_status[@]}" | grep -iFxqz "${app_name},isStopped-on" && echo true || echo false)
stopAll=$(printf '%s\0' "${apps_with_status[@]}" | grep -iFxqz "${app_name},stopAll-on" && echo true || echo false)
cnpg=$(printf '%s\0' "${apps_with_status[@]}" | grep -iFxqz "${app_name},cnpg" && echo true || echo false)

export operator isStopped stopAll cnpg

echo_array+=("\n$app_name")

Expand Down

0 comments on commit 59d3e6e

Please sign in to comment.