Skip to content

Commit 8b31e69

Browse files
committed
delete the secret before creating
1 parent d1a10e0 commit 8b31e69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
218218
TestUtils.ExecAndPrintLog(tag);
219219
TestUtils.ExecAndPrintLog("docker images");
220220

221+
TestUtils.ExecAndPrintLog("docker logout " + System.getenv("REPO_REGISTRY"));
221222
TestUtils.ExecAndPrintLog(
222223
"docker login "
223224
+ System.getenv("REPO_REGISTRY")
@@ -240,6 +241,7 @@ public void testServerPodsRestartByChangingZImage() throws Exception {
240241
241242
// domain.getDomainNS());
242243

244+
TestUtils.ExecAndPrintLog("kubectl delete secret docker-store -n" + domain.getDomainNS());
243245
TestUtils.ExecAndPrintLog(
244246
"kubectl create secret docker-registry docker-store "
245247
+ "--docker-server="

0 commit comments

Comments
 (0)