Skip to content

Commit 95cf31d

Browse files
authored
delete bedrock related catalogsource and increase waiting time for delete operandrequest (#2658)
* delete bedrock related catalogsource and increase waiting time for delete opreq Signed-off-by: Allen Li <liyuchen223@gmail.com> * update catalogsource name Signed-off-by: Allen Li <liyuchen223@gmail.com> --------- Signed-off-by: Allen Li <liyuchen223@gmail.com>
1 parent bef7675 commit 95cf31d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cp3pt0-deployment/uninstall_tenant.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function uninstall_odlm() {
194194
for ns in ${TENANT_NAMESPACES//,/ }; do
195195
local opreq=$(${OC} get -n "$ns" operandrequests --no-headers | cut -d ' ' -f1)
196196
if [ "$opreq" != "" ]; then
197-
${OC} delete -n "$ns" operandrequests ${opreq//$'\n'/ } --timeout=30s
197+
${OC} delete -n "$ns" operandrequests ${opreq//$'\n'/ } --timeout=60s
198198
fi
199199
grep_args="${grep_args}-e $ns "
200200
done
@@ -411,9 +411,10 @@ function cleanup_extra_resources() {
411411
${OC} delete certificate cs-ca-certificate -n $ns --ignore-not-found
412412
${OC} delete configmap cloud-native-postgresql-image-list ibm-cpp-config -n $ns --ignore-not-found
413413
${OC} delete secret common-service-db-im-tls-secret postgresql-operator-controller-manager-config cs-ca-certificate-secret common-service-db-tls-secret common-service-db-replica-tls-secret common-service-db-zen-tls-secret -n $ns --ignore-not-found
414-
${OC} delete commonservice common-service -n $ns --ignore-not-found
414+
${OC} delete commonservice common-service im-common-service -n $ns --ignore-not-found
415415
${OC} delete operandconfig common-service -n $ns --ignore-not-found
416416
${OC} delete operandregistry common-service -n $ns --ignore-not-found
417+
${OC} delete catalogsource opencloud-operators ibm-cs-install-catalog ibm-cs-iam-catalog -n $ns --ignore-not-found
417418
info "Remaining resources (minus package manifests and events) in namespace $ns:"
418419
${OC} get "$(${OC} api-resources --namespaced=true --verbs=list -o name | awk '{printf "%s%s",sep,$0;sep=","}')" --ignore-not-found -n $ns -o=custom-columns=KIND:.kind,NAME:.metadata.name --sort-by='kind' | grep -v PackageManifest | grep -v Event
419420
done

0 commit comments

Comments
 (0)