mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #114279 from pacoxu/coredns-v1.10.0
update coredns to v1.10.0
This commit is contained in:
commit
d2ed6d355e
@ -29,7 +29,7 @@ dependencies:
|
|||||||
|
|
||||||
# CoreDNS
|
# CoreDNS
|
||||||
- name: "coredns-kube-up"
|
- name: "coredns-kube-up"
|
||||||
version: 1.9.3
|
version: 1.10.0
|
||||||
refPaths:
|
refPaths:
|
||||||
- path: cluster/addons/dns/coredns/coredns.yaml.base
|
- path: cluster/addons/dns/coredns/coredns.yaml.base
|
||||||
match: registry.k8s.io/coredns
|
match: registry.k8s.io/coredns
|
||||||
@ -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 =
|
||||||
|
@ -139,7 +139,7 @@ spec:
|
|||||||
kubernetes.io/os: linux
|
kubernetes.io/os: linux
|
||||||
containers:
|
containers:
|
||||||
- name: coredns
|
- name: coredns
|
||||||
image: registry.k8s.io/coredns/coredns:v1.9.3
|
image: registry.k8s.io/coredns/coredns:v1.10.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
@ -139,7 +139,7 @@ spec:
|
|||||||
kubernetes.io/os: linux
|
kubernetes.io/os: linux
|
||||||
containers:
|
containers:
|
||||||
- name: coredns
|
- name: coredns
|
||||||
image: registry.k8s.io/coredns/coredns:v1.9.3
|
image: registry.k8s.io/coredns/coredns:v1.10.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
@ -139,7 +139,7 @@ spec:
|
|||||||
kubernetes.io/os: linux
|
kubernetes.io/os: linux
|
||||||
containers:
|
containers:
|
||||||
- name: coredns
|
- name: coredns
|
||||||
image: registry.k8s.io/coredns/coredns:v1.9.3
|
image: registry.k8s.io/coredns/coredns:v1.10.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
@ -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"
|
||||||
|
@ -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{
|
||||||
|
2
go.mod
2
go.mod
@ -22,7 +22,7 @@ require (
|
|||||||
github.com/aws/aws-sdk-go v1.44.136
|
github.com/aws/aws-sdk-go v1.44.136
|
||||||
github.com/blang/semver/v4 v4.0.0
|
github.com/blang/semver/v4 v4.0.0
|
||||||
github.com/container-storage-interface/spec v1.7.0
|
github.com/container-storage-interface/spec v1.7.0
|
||||||
github.com/coredns/corefile-migration v1.0.17
|
github.com/coredns/corefile-migration v1.0.18
|
||||||
github.com/coreos/go-oidc v2.1.0+incompatible
|
github.com/coreos/go-oidc v2.1.0+incompatible
|
||||||
github.com/coreos/go-systemd/v22 v22.3.2
|
github.com/coreos/go-systemd/v22 v22.3.2
|
||||||
github.com/cpuguy83/go-md2man/v2 v2.0.2
|
github.com/cpuguy83/go-md2man/v2 v2.0.2
|
||||||
|
4
go.sum
4
go.sum
@ -177,8 +177,8 @@ github.com/containerd/typeurl v1.0.2 h1:Chlt8zIieDbzQFzXzAeBEF92KhExuE4p9p92/QmY
|
|||||||
github.com/containerd/typeurl v1.0.2/go.mod h1:9trJWW2sRlGub4wZJRTW83VtbOLS6hwcDZXTn6oPz9s=
|
github.com/containerd/typeurl v1.0.2/go.mod h1:9trJWW2sRlGub4wZJRTW83VtbOLS6hwcDZXTn6oPz9s=
|
||||||
github.com/coredns/caddy v1.1.0 h1:ezvsPrT/tA/7pYDBZxu0cT0VmWk75AfIaf6GSYCNMf0=
|
github.com/coredns/caddy v1.1.0 h1:ezvsPrT/tA/7pYDBZxu0cT0VmWk75AfIaf6GSYCNMf0=
|
||||||
github.com/coredns/caddy v1.1.0/go.mod h1:A6ntJQlAWuQfFlsd9hvigKbo2WS0VUs2l1e2F+BawD4=
|
github.com/coredns/caddy v1.1.0/go.mod h1:A6ntJQlAWuQfFlsd9hvigKbo2WS0VUs2l1e2F+BawD4=
|
||||||
github.com/coredns/corefile-migration v1.0.17 h1:tNwh8+4WOANV6NjSljwgW7qViJfhvPUt1kosj4rR8yg=
|
github.com/coredns/corefile-migration v1.0.18 h1:zs5PJm/VGZVje1ESRj6ZqyUuVsVfagExkbLU2QKV5mI=
|
||||||
github.com/coredns/corefile-migration v1.0.17/go.mod h1:XnhgULOEouimnzgn0t4WPuFDN2/PJQcTxdWKC5eXNGE=
|
github.com/coredns/corefile-migration v1.0.18/go.mod h1:XnhgULOEouimnzgn0t4WPuFDN2/PJQcTxdWKC5eXNGE=
|
||||||
github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
|
github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
|
||||||
github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
|
github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
|
||||||
github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
|
github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
|
||||||
|
23
vendor/github.com/coredns/corefile-migration/migration/migrate.go
generated
vendored
23
vendor/github.com/coredns/corefile-migration/migration/migrate.go
generated
vendored
@ -10,6 +10,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"regexp"
|
"regexp"
|
||||||
"sort"
|
"sort"
|
||||||
|
"strconv"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/coredns/corefile-migration/migration/corefile"
|
"github.com/coredns/corefile-migration/migration/corefile"
|
||||||
)
|
)
|
||||||
@ -420,7 +422,26 @@ func ValidVersions() []string {
|
|||||||
for vStr := range Versions {
|
for vStr := range Versions {
|
||||||
vStrs = append(vStrs, vStr)
|
vStrs = append(vStrs, vStr)
|
||||||
}
|
}
|
||||||
sort.Strings(vStrs)
|
sort.Slice(vStrs, func(i, j int) bool {
|
||||||
|
iSegs := strings.Split(vStrs[i], ".")
|
||||||
|
jSegs := strings.Split(vStrs[j], ".")
|
||||||
|
for k, iSeg := range iSegs {
|
||||||
|
if iSeg == jSegs[k] {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
iInt, err := strconv.Atoi(iSeg)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
jInt, err := strconv.Atoi(jSegs[k])
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
return iInt < jInt
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
})
|
||||||
|
|
||||||
return vStrs
|
return vStrs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
50
vendor/github.com/coredns/corefile-migration/migration/versions.go
generated
vendored
50
vendor/github.com/coredns/corefile-migration/migration/versions.go
generated
vendored
@ -30,27 +30,22 @@ type release struct {
|
|||||||
|
|
||||||
// Versions holds a map of plugin/option migrations per CoreDNS release (since 1.1.4)
|
// Versions holds a map of plugin/option migrations per CoreDNS release (since 1.1.4)
|
||||||
var Versions = map[string]release{
|
var Versions = map[string]release{
|
||||||
|
"1.10.0": {
|
||||||
|
priorVersion: "1.9.4",
|
||||||
|
dockerImageSHA: "017727efcfeb7d053af68e51436ce8e65edbc6ca573720afb4f79c8594036955",
|
||||||
|
plugins: plugins_1_9_3,
|
||||||
|
},
|
||||||
|
"1.9.4": {
|
||||||
|
nextVersion: "1.10.0",
|
||||||
|
priorVersion: "1.9.3",
|
||||||
|
dockerImageSHA: "b82e294de6be763f73ae71266c8f5466e7e03c69f3a1de96efd570284d35bb18",
|
||||||
|
plugins: plugins_1_9_3,
|
||||||
|
},
|
||||||
"1.9.3": {
|
"1.9.3": {
|
||||||
|
nextVersion: "1.9.4",
|
||||||
priorVersion: "1.9.2",
|
priorVersion: "1.9.2",
|
||||||
dockerImageSHA: "8e352a029d304ca7431c6507b56800636c321cb52289686a581ab70aaa8a2e2a",
|
dockerImageSHA: "8e352a029d304ca7431c6507b56800636c321cb52289686a581ab70aaa8a2e2a",
|
||||||
plugins: map[string]plugin{
|
plugins: plugins_1_9_3,
|
||||||
"errors": plugins["errors"]["v3"], // stacktrace option added
|
|
||||||
"log": plugins["log"]["v1"],
|
|
||||||
"health": plugins["health"]["v1"],
|
|
||||||
"ready": {},
|
|
||||||
"autopath": {},
|
|
||||||
"kubernetes": plugins["kubernetes"]["v8"],
|
|
||||||
"k8s_external": plugins["k8s_external"]["v1"],
|
|
||||||
"prometheus": {},
|
|
||||||
"forward": plugins["forward"]["v3"],
|
|
||||||
"cache": plugins["cache"]["v1"],
|
|
||||||
"loop": {},
|
|
||||||
"reload": {},
|
|
||||||
"loadbalance": {},
|
|
||||||
"hosts": plugins["hosts"]["v1"],
|
|
||||||
"rewrite": plugins["rewrite"]["v2"],
|
|
||||||
"transfer": plugins["transfer"]["v1"],
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
"1.9.2": {
|
"1.9.2": {
|
||||||
nextVersion: "1.9.3",
|
nextVersion: "1.9.3",
|
||||||
@ -744,6 +739,25 @@ var Versions = map[string]release{
|
|||||||
}`},
|
}`},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var plugins_1_9_3 = map[string]plugin{
|
||||||
|
"errors": plugins["errors"]["v3"], // stacktrace option added
|
||||||
|
"log": plugins["log"]["v1"],
|
||||||
|
"health": plugins["health"]["v1"],
|
||||||
|
"ready": {},
|
||||||
|
"autopath": {},
|
||||||
|
"kubernetes": plugins["kubernetes"]["v8"],
|
||||||
|
"k8s_external": plugins["k8s_external"]["v1"],
|
||||||
|
"prometheus": {},
|
||||||
|
"forward": plugins["forward"]["v3"],
|
||||||
|
"cache": plugins["cache"]["v1"],
|
||||||
|
"loop": {},
|
||||||
|
"reload": {},
|
||||||
|
"loadbalance": {},
|
||||||
|
"hosts": plugins["hosts"]["v1"],
|
||||||
|
"rewrite": plugins["rewrite"]["v2"],
|
||||||
|
"transfer": plugins["transfer"]["v1"],
|
||||||
|
}
|
||||||
|
|
||||||
var plugins_1_8_3 = map[string]plugin{
|
var plugins_1_8_3 = map[string]plugin{
|
||||||
"errors": plugins["errors"]["v2"],
|
"errors": plugins["errors"]["v2"],
|
||||||
"log": plugins["log"]["v1"],
|
"log": plugins["log"]["v1"],
|
||||||
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@ -199,7 +199,7 @@ github.com/containerd/ttrpc
|
|||||||
# github.com/coredns/caddy v1.1.0
|
# github.com/coredns/caddy v1.1.0
|
||||||
## explicit; go 1.13
|
## explicit; go 1.13
|
||||||
github.com/coredns/caddy/caddyfile
|
github.com/coredns/caddy/caddyfile
|
||||||
# github.com/coredns/corefile-migration v1.0.17
|
# github.com/coredns/corefile-migration v1.0.18
|
||||||
## explicit; go 1.14
|
## explicit; go 1.14
|
||||||
github.com/coredns/corefile-migration/migration
|
github.com/coredns/corefile-migration/migration
|
||||||
github.com/coredns/corefile-migration/migration/corefile
|
github.com/coredns/corefile-migration/migration/corefile
|
||||||
|
Loading…
Reference in New Issue
Block a user