Merge "adjust oidc-auth-apps upgrade logic"

This commit is contained in:
Zuul 2023-02-21 18:08:07 +00:00 committed by Gerrit Code Review
commit d313a2880b
1 changed files with 3 additions and 1 deletions

View File

@ -92,7 +92,9 @@ if [ "$ACTION" == "activate" ]; then
# fluxcd application upgrade is supported
if [[ "${UPGRADE_APP_NAME}" =~ ^(platform-integ-apps|nginx-ingress-controller|snmp|metrics-server|auditd|ptp-notification|istio)$ ]]; then
log "$NAME: ${UPGRADE_APP_NAME} is a supported platform application."
elif [[ "${UPGRADE_APP_NAME}" =~ ^(cert-manager|oidc-auth-apps)$ && ( "$FROM_RELEASE" == "22.06" || "$FROM_RELEASE" == "21.12" ) ]]; then
elif [[ "${UPGRADE_APP_NAME}" =~ ^(cert-manager)$ && ( "$FROM_RELEASE" == "22.06" || "$FROM_RELEASE" == "21.12" ) ]]; then
log "$NAME: ${UPGRADE_APP_NAME} is a supported platform application from $FROM_RELEASE."
elif [[ "${UPGRADE_APP_NAME}" =~ ^(oidc-auth-apps)$ && ( "$FROM_RELEASE" == "22.06" ) ]]; then
log "$NAME: ${UPGRADE_APP_NAME} is a supported platform application from $FROM_RELEASE."
elif [[ "${UPGRADE_APP_NAME}" =~ ^(cert-manager|oidc-auth-apps)$ ]]; then
log "$NAME: ${UPGRADE_APP_NAME} is handled by another script."