Skip to content

Commit

Permalink
script enahcements (#1582)
Browse files Browse the repository at this point in the history
Signed-off-by: YuChen <[email protected]>
  • Loading branch information
YCShen1010 authored Nov 3, 2023
1 parent 146fb93 commit 361ea8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cp3pt0-deployment/common/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ function validate_operator_catalogsource(){
error "Multiple CatalogSource are available for $pm in $operator_ns namespace, please specify the correct CatalogSource name and namespace"
elif [[ $return_value -eq 2 ]]; then
warning "CatalogSource $source from $source_ns CatalogSourceNamespace is not available for $pm in $operator_ns namespace"
error "No CatalogSource is available for $pm in $operator_ns namespace"
error "No CatalogSource is available for $pm in $operator_ns namespace in the given channel $channel"
elif [[ $return_value -eq 3 ]]; then
warning "CatalogSource $source from $source_ns CatalogSourceNamespace is not available for $pm in $operator_ns namespace"
success "CatalogSource $correct_source from $correct_source_ns CatalogSourceNamespace is available for $pm in $operator_ns namespace"
Expand Down
5 changes: 3 additions & 2 deletions cp3pt0-deployment/setup_singleton.sh
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,9 @@ function verify_cert_manager(){
if [[ $webhook_deployments != "1" ]]; then
error "More than one cert-manager-webhook deployment exists on the cluster."
fi

cm_smoke_test "test-issuer" "test-certificate" "test-certificate-secret" $CERT_MANAGER_NAMESPACE
local webhook_ns=$("$OC" get deployments -A | grep cert-manager-webhook | cut -d ' ' -f1)

cm_smoke_test "test-issuer" "test-certificate" "test-certificate-secret" $webhook_ns
success "Cert manager is ready."
}

Expand Down

0 comments on commit 361ea8f

Please sign in to comment.