diff --git a/scripts/upgradeIDA.sh b/scripts/upgradeIDA.sh index 535bd04..9c2fddb 100644 --- a/scripts/upgradeIDA.sh +++ b/scripts/upgradeIDA.sh @@ -36,7 +36,7 @@ fi # fix issue of field is immutable for field "type" TLS_SECRET=$(oc get secret | grep ida-web-tls | awk '{print$1}') -if [ -z ${TLS_SECRET} ]; then +if [ ! -z ${TLS_SECRET} ]; then SECRET_TYPE=$(oc get secret $TLS_SECRET -o jsonpath='{.type}') if [[ $SECRET_TYPE == "Opaque" ]]; then ${KUBE_CMD} delete secret $TLS_SECRET