From a536cb908428eeb3af07a2b00036eb37c0de6a8b Mon Sep 17 00:00:00 2001 From: Jose Date: Thu, 4 May 2023 07:09:11 +0200 Subject: [PATCH] Change default image for init container waiters To groundnuty/k8s-wait-for:no-root-v1.7. Related to https://github.com/quarkusio/quarkus/issues/33097#issuecomment-1532989601 --- .../io/quarkus/kubernetes/deployment/InitTaskProcessor.java | 2 +- .../io/quarkus/it/kubernetes/KubernetesWithFlywayInitTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/InitTaskProcessor.java b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/InitTaskProcessor.java index 72572c429ff87..2105feb7c9a86 100644 --- a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/InitTaskProcessor.java +++ b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/InitTaskProcessor.java @@ -21,7 +21,7 @@ public class InitTaskProcessor { private static final String INIT_CONTAINER_WAITER_NAME = "init"; - private static final String INIT_CONTAINER_WAITER_DEFAULT_IMAGE = "groundnuty/k8s-wait-for:1.3"; + private static final String INIT_CONTAINER_WAITER_DEFAULT_IMAGE = "groundnuty/k8s-wait-for:no-root-v1.7"; static void process( String target, // kubernetes, openshift, etc. diff --git a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithFlywayInitTest.java b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithFlywayInitTest.java index 604bea2485ce6..6819fcfbc8505 100644 --- a/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithFlywayInitTest.java +++ b/integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithFlywayInitTest.java @@ -68,7 +68,7 @@ public void assertGeneratedResources() throws IOException { assertThat(t.getSpec()).satisfies(podSpec -> { assertThat(podSpec.getInitContainers()).singleElement().satisfies(container -> { assertThat(container.getName()).isEqualTo("init"); - assertThat(container.getImage()).isEqualTo("groundnuty/k8s-wait-for:1.3"); + assertThat(container.getImage()).isEqualTo("groundnuty/k8s-wait-for:no-root-v1.7"); }); });