Skip to content

Commit

Permalink
Merge pull request #28 from sdc-china/2408
Browse files Browse the repository at this point in the history
24.0.8 sync
  • Loading branch information
ludidl authored Sep 29, 2024
2 parents 2a587dd + 2703c31 commit d9e8695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/upgradeIDA.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9e8695

Please sign in to comment.