Commit 5cafed26 authored by Rostislav M. Georgiev's avatar Rostislav M. Georgiev

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: 's avatarRostislav M. Georgiev <rostislavg@vmware.com>
parent 09784ccf
...@@ -77,7 +77,7 @@ func GetAllImages(cfg *kubeadmapi.MasterConfiguration) []string { ...@@ -77,7 +77,7 @@ func GetAllImages(cfg *kubeadmapi.MasterConfiguration) []string {
dnsImage := GetGenericArchImage(cfg.ImageRepository, "k8s-dns-kube-dns", constants.KubeDNSVersion) dnsImage := GetGenericArchImage(cfg.ImageRepository, "k8s-dns-kube-dns", constants.KubeDNSVersion)
if features.Enabled(cfg.FeatureGates, features.CoreDNS) { 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) imgs = append(imgs, dnsImage)
return imgs return imgs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment