From 5cafed260c39fb7a39983df8bdc71853b24483a2 Mon Sep 17 00:00:00 2001 From: "Rostislav M. Georgiev" Date: Tue, 3 Jul 2018 15:54:25 +0300 Subject: [PATCH] kubeadm: Fix CoreDNS image generation bug With #64976 GetGenericArchImage was used for generating the CoreDNS image path. This generated incorrect image in the form `prefix/coredns-goarch:tag` instead of just `prefix/coredns:tag`. Signed-off-by: Rostislav M. Georgiev --- cmd/kubeadm/app/images/images.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kubeadm/app/images/images.go b/cmd/kubeadm/app/images/images.go index a84469c31c6..3fa53b613e8 100644 --- a/cmd/kubeadm/app/images/images.go +++ b/cmd/kubeadm/app/images/images.go @@ -77,7 +77,7 @@ func GetAllImages(cfg *kubeadmapi.MasterConfiguration) []string { dnsImage := GetGenericArchImage(cfg.ImageRepository, "k8s-dns-kube-dns", constants.KubeDNSVersion) if features.Enabled(cfg.FeatureGates, features.CoreDNS) { - dnsImage = GetGenericArchImage(cfg.ImageRepository, "coredns", constants.CoreDNSVersion) + dnsImage = fmt.Sprintf("%s/%s:%s", cfg.ImageRepository, constants.CoreDNS, constants.CoreDNSVersion) } imgs = append(imgs, dnsImage) return imgs