Skip to content

Commit

Permalink
skip CatalogSource validating when there is no ibm cert manager insta…
Browse files Browse the repository at this point in the history
…lled (#2022)

Signed-off-by: YuChen <[email protected]>
  • Loading branch information
YCShen1010 authored Jun 3, 2024
1 parent 87f07f6 commit 35aad8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cp3pt0-deployment/setup_singleton.sh
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,6 @@ function cert_manager_deployment_check(){

function install_cert_manager() {

validate_operator_catalogsource ibm-cert-manager-operator $CERT_MANAGER_NAMESPACE $CERT_MANAGER_SOURCE $CM_SOURCE_NS $CHANNEL CERT_MANAGER_SOURCE CM_SOURCE_NS

title "Installing cert-manager\n"
is_sub_exist "cert-manager" # this will catch the packagenames of all cert-manager-operators
if [ $? -eq 0 ]; then
Expand Down Expand Up @@ -335,6 +333,9 @@ function install_cert_manager() {
info "There is no cert-manager-webhook pod running\n"
fi

# Validate the CatalogSource of IBM Cert Manager before proceeding with the installation or upgrade
validate_operator_catalogsource ibm-cert-manager-operator $CERT_MANAGER_NAMESPACE $CERT_MANAGER_SOURCE $CM_SOURCE_NS $CHANNEL CERT_MANAGER_SOURCE CM_SOURCE_NS

create_namespace "${CERT_MANAGER_NAMESPACE}"
create_operator_group "ibm-cert-manager-operator" "${CERT_MANAGER_NAMESPACE}" "{}"
is_sub_exist "ibm-cert-manager-operator" "${CERT_MANAGER_NAMESPACE}" # this will catch the packagenames of all cert-manager-operators
Expand Down

0 comments on commit 35aad8e

Please sign in to comment.