From 07d26397ca352dc4c57c6e739b4b032508b57f55 Mon Sep 17 00:00:00 2001 From: Jonathan Kolberg Date: Thu, 23 Mar 2023 21:26:27 +0100 Subject: [PATCH] K8s moved its registry old registry k8s.grc.io will be phased out use registry.k8s.io instead fixes #32041 --- .../client/deployment/DevServicesKubernetesProcessor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/kubernetes-client/deployment/src/main/java/io/quarkus/kubernetes/client/deployment/DevServicesKubernetesProcessor.java b/extensions/kubernetes-client/deployment/src/main/java/io/quarkus/kubernetes/client/deployment/DevServicesKubernetesProcessor.java index d4a6ee195991e..8deaab773cc08 100644 --- a/extensions/kubernetes-client/deployment/src/main/java/io/quarkus/kubernetes/client/deployment/DevServicesKubernetesProcessor.java +++ b/extensions/kubernetes-client/deployment/src/main/java/io/quarkus/kubernetes/client/deployment/DevServicesKubernetesProcessor.java @@ -343,7 +343,8 @@ public Map getKubeconfig() { return getKubernetesClientConfigFromKubeConfig( KubeConfigUtils.parseKubeConfig(KubeConfigUtils.replaceServerInKubeconfig(containerAddress.getUrl(), getFileContentFromContainer(KIND_KUBECONFIG)))); - } else if (image.contains("k8s.gcr.io/kube-apiserver")) { + } else if (image.contains("k8s.gcr.io/kube-apiserver") || + image.contains("registry.k8s.io/kube-apiserver")) { return getKubernetesClientConfigFromKubeConfig(getKubeconfigFromApiContainer(containerAddress.getUrl())); }