Skip to content

Commit 7ad3264

Browse files
author
Sankar Periyathambi Neelakandan
committed
fix
1 parent 289b645 commit 7ad3264

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/ITOperatorUpgrade.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,15 @@ public void cleanupOperatorAndDomain() throws Exception {
9595
operator20.destroy();
9696
}
9797
ExecResult result = cleanup();
98-
TestUtils.ExecAndPrintLog("helm del --purge " + OP_DEP_NAME);
9998
TestUtils.ExecAndPrintLog(
100-
"kubectl delete pods,services,deployments,replicasets,configmaps,services --all --grace-period=0 --force --ignore-not-found -n "
99+
"kubectl delete pods,services,deployments,replicasets,configmaps,services --all --ignore-not-found -n "
101100
+ OP_NS);
102101
TestUtils.ExecAndPrintLog(
103-
"kubectl delete pods,services,deployments,replicasets,configmaps,services --all --grace-period=0 --force --ignore-not-found -n "
102+
"kubectl delete pods,services,deployments,replicasets,configmaps,services --all --ignore-not-found -n "
104103
+ DOM_NS);
105-
TestUtils.ExecAndPrintLog(
106-
"kubectl delete crd --all --grace-period=0 --ignore-not-found --force");
107-
TestUtils.ExecAndPrintLog("kubectl delete ns " + OP_NS + " --ignore-not-found --force");
108-
TestUtils.ExecAndPrintLog("kubectl delete ns " + DOM_NS + " --ignore-not-found --force");
104+
TestUtils.ExecAndPrintLog("kubectl delete crd --all --ignore-not-found");
105+
TestUtils.ExecAndPrintLog("kubectl delete ns " + OP_NS + " --ignore-not-found");
106+
TestUtils.ExecAndPrintLog("kubectl delete ns " + DOM_NS + " --ignore-not-found");
109107
TestUtils.ExecAndPrintLog("kubectl get all --all-namespaces");
110108
logger.log(Level.INFO, "+++++++++++++++Done AfterTest cleanup+++++++++++++++++++++");
111109
}

0 commit comments

Comments
 (0)