Skip to content

Commit

Permalink
K8s moved its registry
Browse files Browse the repository at this point in the history
old registry k8s.grc.io will be phased out use registry.k8s.io instead

fixes quarkusio#32041
  • Loading branch information
bulldog98 authored and gsmet committed Mar 25, 2023
1 parent 895d9fe commit 07d2639
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ public Map<String, String> 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()));
}

Expand Down

0 comments on commit 07d2639

Please sign in to comment.