mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 14:45:28 +00:00
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 <rostislavg@vmware.com>
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user