mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
kubeadm: bump coredns to 1.11.3
This commit is contained in:
parent
1f42675075
commit
3301161c36
@ -41,7 +41,7 @@ dependencies:
|
|||||||
match: registry.k8s.io/coredns
|
match: registry.k8s.io/coredns
|
||||||
|
|
||||||
- name: "coredns-kubeadm"
|
- name: "coredns-kubeadm"
|
||||||
version: 1.11.1
|
version: 1.11.3
|
||||||
refPaths:
|
refPaths:
|
||||||
- path: cmd/kubeadm/app/constants/constants.go
|
- path: cmd/kubeadm/app/constants/constants.go
|
||||||
match: CoreDNSVersion =
|
match: CoreDNSVersion =
|
||||||
|
@ -360,7 +360,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.11.1"
|
CoreDNSVersion = "v1.11.3"
|
||||||
|
|
||||||
// ClusterConfigurationKind is the string kind value for the ClusterConfiguration struct
|
// ClusterConfigurationKind is the string kind value for the ClusterConfiguration struct
|
||||||
ClusterConfigurationKind = "ClusterConfiguration"
|
ClusterConfigurationKind = "ClusterConfiguration"
|
||||||
|
@ -315,21 +315,21 @@ func TestGetDNSImage(t *testing.T) {
|
|||||||
cfg *kubeadmapi.ClusterConfiguration
|
cfg *kubeadmapi.ClusterConfiguration
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
expected: "foo.io/coredns:v1.11.1",
|
expected: "foo.io/coredns:v1.11.3",
|
||||||
cfg: &kubeadmapi.ClusterConfiguration{
|
cfg: &kubeadmapi.ClusterConfiguration{
|
||||||
ImageRepository: "foo.io",
|
ImageRepository: "foo.io",
|
||||||
DNS: kubeadmapi.DNS{},
|
DNS: kubeadmapi.DNS{},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
expected: kubeadmapiv1.DefaultImageRepository + "/coredns/coredns:v1.11.1",
|
expected: kubeadmapiv1.DefaultImageRepository + "/coredns/coredns:v1.11.3",
|
||||||
cfg: &kubeadmapi.ClusterConfiguration{
|
cfg: &kubeadmapi.ClusterConfiguration{
|
||||||
ImageRepository: kubeadmapiv1.DefaultImageRepository,
|
ImageRepository: kubeadmapiv1.DefaultImageRepository,
|
||||||
DNS: kubeadmapi.DNS{},
|
DNS: kubeadmapi.DNS{},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
expected: "foo.io/coredns/coredns:v1.11.1",
|
expected: "foo.io/coredns/coredns:v1.11.3",
|
||||||
cfg: &kubeadmapi.ClusterConfiguration{
|
cfg: &kubeadmapi.ClusterConfiguration{
|
||||||
ImageRepository: "foo.io",
|
ImageRepository: "foo.io",
|
||||||
DNS: kubeadmapi.DNS{
|
DNS: kubeadmapi.DNS{
|
||||||
@ -340,12 +340,12 @@ func TestGetDNSImage(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
expected: "foo.io/coredns/coredns:v1.11.1",
|
expected: "foo.io/coredns/coredns:v1.11.3",
|
||||||
cfg: &kubeadmapi.ClusterConfiguration{
|
cfg: &kubeadmapi.ClusterConfiguration{
|
||||||
ImageRepository: "foo.io/coredns",
|
ImageRepository: "foo.io/coredns",
|
||||||
DNS: kubeadmapi.DNS{
|
DNS: kubeadmapi.DNS{
|
||||||
ImageMeta: kubeadmapi.ImageMeta{
|
ImageMeta: kubeadmapi.ImageMeta{
|
||||||
ImageTag: "v1.11.1",
|
ImageTag: "v1.11.3",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -701,7 +701,7 @@ spec:
|
|||||||
kubernetes.io/os: linux
|
kubernetes.io/os: linux
|
||||||
containers:
|
containers:
|
||||||
- name: coredns
|
- name: coredns
|
||||||
image: foo.bar.io/coredns:v1.11.1
|
image: foo.bar.io/coredns:v1.11.3
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
@ -985,7 +985,7 @@ spec:
|
|||||||
kubernetes.io/os: linux
|
kubernetes.io/os: linux
|
||||||
containers:
|
containers:
|
||||||
- name: coredns
|
- name: coredns
|
||||||
image: foo.bar.io/coredns:v1.11.1
|
image: foo.bar.io/coredns:v1.11.3
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
@ -1414,28 +1414,28 @@ func TestDeployedDNSAddon(t *testing.T) {
|
|||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
name: "default",
|
name: "default",
|
||||||
image: "registry.k8s.io/coredns/coredns:v1.11.1",
|
image: "registry.k8s.io/coredns/coredns:v1.11.3",
|
||||||
deploymentSize: 1,
|
deploymentSize: 1,
|
||||||
wantVersion: "v1.11.1",
|
wantVersion: "v1.11.3",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "no dns addon deployment",
|
name: "no dns addon deployment",
|
||||||
image: "registry.k8s.io/coredns/coredns:v1.11.1",
|
image: "registry.k8s.io/coredns/coredns:v1.11.3",
|
||||||
deploymentSize: 0,
|
deploymentSize: 0,
|
||||||
wantVersion: "",
|
wantVersion: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "multiple dns addon deployment",
|
name: "multiple dns addon deployment",
|
||||||
image: "registry.k8s.io/coredns/coredns:v1.11.1",
|
image: "registry.k8s.io/coredns/coredns:v1.11.3",
|
||||||
deploymentSize: 2,
|
deploymentSize: 2,
|
||||||
wantVersion: "",
|
wantVersion: "",
|
||||||
wantErr: true,
|
wantErr: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "with digest",
|
name: "with digest",
|
||||||
image: "registry.k8s.io/coredns/coredns:v1.11.1@sha256:a0ead06651cf580044aeb0a0feba63591858fb2e43ade8c9dea45a6a89ae7e5e",
|
image: "registry.k8s.io/coredns/coredns:v1.11.3@sha256:a0ead06651cf580044aeb0a0feba63591858fb2e43ade8c9dea45a6a89ae7e5e",
|
||||||
deploymentSize: 1,
|
deploymentSize: 1,
|
||||||
wantVersion: "v1.11.1",
|
wantVersion: "v1.11.3",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "without registry",
|
name: "without registry",
|
||||||
@ -1655,7 +1655,7 @@ func TestIsCoreDNSConfigMapMigrationRequired(t *testing.T) {
|
|||||||
// deploymentSize is the number of deployments with `k8s-app=kube-dns` label.
|
// deploymentSize is the number of deployments with `k8s-app=kube-dns` label.
|
||||||
func newMockClientForTest(t *testing.T, replicas int32, deploymentSize int, image string, configMap string, configData string) *clientsetfake.Clientset {
|
func newMockClientForTest(t *testing.T, replicas int32, deploymentSize int, image string, configMap string, configData string) *clientsetfake.Clientset {
|
||||||
if image == "" {
|
if image == "" {
|
||||||
image = "registry.k8s.io/coredns/coredns:v1.11.1"
|
image = "registry.k8s.io/coredns/coredns:v1.11.3"
|
||||||
}
|
}
|
||||||
client := clientsetfake.NewSimpleClientset()
|
client := clientsetfake.NewSimpleClientset()
|
||||||
for i := 0; i < deploymentSize; i++ {
|
for i := 0; i < deploymentSize; i++ {
|
||||||
|
Loading…
Reference in New Issue
Block a user