kubeadm: upgrade coredns 1.8.4 and corefile-migration to v1.0.12

Signed-off-by: pacoxu <paco.xu@daocloud.io>
This commit is contained in:
pacoxu
2021-06-15 11:54:33 +08:00
parent 4e7fc6df63
commit 188193e1c0
3 changed files with 5 additions and 5 deletions

View File

@@ -55,7 +55,7 @@ dependencies:
match: k8s.gcr.io/coredns match: k8s.gcr.io/coredns
- name: "coredns-kubeadm" - name: "coredns-kubeadm"
version: 1.8.0 version: 1.8.4
refPaths: refPaths:
- path: cmd/kubeadm/app/constants/constants.go - path: cmd/kubeadm/app/constants/constants.go
match: CoreDNSVersion = match: CoreDNSVersion =

View File

@@ -325,7 +325,7 @@ const (
CoreDNSImageName = "coredns" CoreDNSImageName = "coredns"
// CoreDNSVersion is the version of CoreDNS to be deployed if it is used // CoreDNSVersion is the version of CoreDNS to be deployed if it is used
CoreDNSVersion = "v1.8.0" CoreDNSVersion = "v1.8.4"
// ClusterConfigurationKind is the string kind value for the ClusterConfiguration struct // ClusterConfigurationKind is the string kind value for the ClusterConfiguration struct
ClusterConfigurationKind = "ClusterConfiguration" ClusterConfigurationKind = "ClusterConfiguration"

View File

@@ -233,7 +233,7 @@ func TestGetDNSImage(t *testing.T) {
cfg *kubeadmapi.ClusterConfiguration cfg *kubeadmapi.ClusterConfiguration
}{ }{
{ {
expected: "foo.io/coredns:v1.8.0", expected: "foo.io/coredns:v1.8.4",
cfg: &kubeadmapi.ClusterConfiguration{ cfg: &kubeadmapi.ClusterConfiguration{
ImageRepository: "foo.io", ImageRepository: "foo.io",
DNS: kubeadmapi.DNS{ DNS: kubeadmapi.DNS{
@@ -242,7 +242,7 @@ func TestGetDNSImage(t *testing.T) {
}, },
}, },
{ {
expected: kubeadmapiv1beta2.DefaultImageRepository + "/coredns/coredns:v1.8.0", expected: kubeadmapiv1beta2.DefaultImageRepository + "/coredns/coredns:v1.8.4",
cfg: &kubeadmapi.ClusterConfiguration{ cfg: &kubeadmapi.ClusterConfiguration{
ImageRepository: kubeadmapiv1beta2.DefaultImageRepository, ImageRepository: kubeadmapiv1beta2.DefaultImageRepository,
DNS: kubeadmapi.DNS{ DNS: kubeadmapi.DNS{
@@ -251,7 +251,7 @@ func TestGetDNSImage(t *testing.T) {
}, },
}, },
{ {
expected: "foo.io/coredns/coredns:v1.8.0", expected: "foo.io/coredns/coredns:v1.8.4",
cfg: &kubeadmapi.ClusterConfiguration{ cfg: &kubeadmapi.ClusterConfiguration{
ImageRepository: "foo.io", ImageRepository: "foo.io",
DNS: kubeadmapi.DNS{ DNS: kubeadmapi.DNS{