Skip to content

Commit

Permalink
Addressing installation review comments across all drivers (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
shanmydell committed Nov 16, 2021
1 parent c3ec588 commit d62f6aa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions dell-csi-helm-installer/common.sh
Expand Up @@ -42,6 +42,14 @@ function log() {
debuglog_only "Installation cannot continue"
exit 1
;;
uninstall_error)
log separator
printf "${RED}Error: $2\n"
printf "${RED}Uninstallation cannot continue${NC}\n"
debuglog_only "Error: $2"
debuglog_only "Uninstallation cannot continue"
exit 1
;;
step)
printf "|\n|- %-65s" "$2"
debuglog_only "${2}"
Expand Down
2 changes: 2 additions & 0 deletions dell-csi-helm-installer/csi-install.sh
Expand Up @@ -147,6 +147,8 @@ function install_driver() {
HELMOUTPUT="/tmp/csi-install.$$.out"
run_command helm ${1} \
--set openshift=${OPENSHIFT} \
--values "${DRIVERDIR}/${DRIVER}/k8s-${kMajorVersion}.${kMinorVersion}-values.yaml" \
--values "${DRIVERDIR}/${DRIVER}/driver-image.yaml" \
--values "${VALUES}" \
--namespace ${NS} "${RELEASE}" \
"${DRIVERDIR}/${DRIVER}" >"${HELMOUTPUT}" 2>&1
Expand Down
2 changes: 1 addition & 1 deletion dell-csi-helm-installer/csi-uninstall.sh
Expand Up @@ -70,7 +70,7 @@ function validate_params() {
function check_for_driver() {
NUM=$(run_command helm list --namespace "${NAMESPACE}" | grep "^${RELEASE}\b" | wc -l)
if [ "${NUM}" == "0" ]; then
log error "The CSI Driver is not installed."
log uninstall_error "The CSI Driver is not installed."
exit 1
fi
}
Expand Down

0 comments on commit d62f6aa

Please sign in to comment.