From 2703c31df1002d7d3106fa532435becdcbcc9355 Mon Sep 17 00:00:00 2001 From: cereus725 Date: Sun, 29 Sep 2024 16:13:16 +0800 Subject: [PATCH] 24.0.8 --- scripts/upgradeIDA.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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