File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ dump_cluster_information() {
48
48
49
49
cleanup_operator () {
50
50
local context=" ${1} "
51
- if ! timeout 5s helm uninstall --wait --kube-context=" ${context} " mongodb-kubernetes-operator; then
51
+ local namespace=" ${2} "
52
+ if ! timeout 5s helm uninstall --wait --kube-context=" ${context} " -n ${namespace} mongodb-kubernetes-operator; then
52
53
echo " Warning: Helm uninstall failed or timed out. Continuing anyway."
53
54
fi
54
55
}
@@ -161,10 +162,10 @@ if [[ "${CLUSTER_TYPE}" == "openshift" ]]; then
161
162
else
162
163
if [[ " ${KUBE_ENVIRONMENT_NAME} " == " multi" ]]; then
163
164
echo " Tearing down operator on ${CENTRAL_CLUSTER} "
164
- cleanup_operator " ${CENTRAL_CLUSTER} "
165
+ cleanup_operator " ${CENTRAL_CLUSTER} " " ${NAMESPACE} "
165
166
else
166
167
# If the test passed, then the namespace is removed
167
- cleanup_operator " $( kubectl config current-context) "
168
+ cleanup_operator " $( kubectl config current-context) " " ${NAMESPACE} "
168
169
fi
169
170
fi
170
171
You can’t perform that action at this time.
0 commit comments