mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Use kubernetes image repo for coredns
Fixes #927 Signed-off-by: Chuck Ha <ha.chuck@gmail.com>
This commit is contained in:
parent
410941b40c
commit
91bfed2802
@ -64,7 +64,7 @@ func GetAllImages(cfg *kubeadmapi.MasterConfiguration) []string {
|
|||||||
|
|
||||||
dnsImage := fmt.Sprintf("%v/k8s-dns-kube-dns-%v:%v", cfg.ImageRepository, runtime.GOARCH, constants.KubeDNSVersion)
|
dnsImage := fmt.Sprintf("%v/k8s-dns-kube-dns-%v:%v", cfg.ImageRepository, runtime.GOARCH, constants.KubeDNSVersion)
|
||||||
if features.Enabled(cfg.FeatureGates, features.CoreDNS) {
|
if features.Enabled(cfg.FeatureGates, features.CoreDNS) {
|
||||||
dnsImage = fmt.Sprintf("coredns/coredns:%v", constants.CoreDNSVersion)
|
dnsImage = fmt.Sprintf("%v/coredns:%v", cfg.ImageRepository, constants.CoreDNSVersion)
|
||||||
}
|
}
|
||||||
imgs = append(imgs, dnsImage)
|
imgs = append(imgs, dnsImage)
|
||||||
return imgs
|
return imgs
|
||||||
|
Loading…
Reference in New Issue
Block a user