kubeadm: use coredns v1.10.0

This commit is contained in:
Paco Xu 2022-12-05 11:42:43 +08:00
parent 9b633b3dde
commit 34d845502f
3 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@ dependencies:
match: registry.k8s.io/coredns match: registry.k8s.io/coredns
- name: "coredns-kubeadm" - name: "coredns-kubeadm"
version: 1.9.3 version: 1.10.0
refPaths: refPaths:
- path: cmd/kubeadm/app/constants/constants.go - path: cmd/kubeadm/app/constants/constants.go
match: CoreDNSVersion = match: CoreDNSVersion =

View File

@ -345,7 +345,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.9.3" CoreDNSVersion = "v1.10.0"
// 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.9.3", expected: "foo.io/coredns:v1.10.0",
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.9.3", expected: kubeadmapiv1beta2.DefaultImageRepository + "/coredns/coredns:v1.10.0",
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.9.3", expected: "foo.io/coredns/coredns:v1.10.0",
cfg: &kubeadmapi.ClusterConfiguration{ cfg: &kubeadmapi.ClusterConfiguration{
ImageRepository: "foo.io", ImageRepository: "foo.io",
DNS: kubeadmapi.DNS{ DNS: kubeadmapi.DNS{