Skip to content

Commit 91c2f53

Browse files
authored
Merge pull request #94 from yashsingh74/update-1.13.1
support coredns v1.13.1
2 parents be20f2d + 1af356b commit 91c2f53

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

corefile-tool/cmd/validversions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func TestNewValidVersionsCmd(t *testing.T) {
1515
{
1616
name: "Works without error",
1717
expectedOutput: `The following are valid CoreDNS versions:
18-
1.1.3, 1.1.4, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.3.0, 1.3.1, 1.4.0, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.9, 1.7.0, 1.7.1, 1.8.0, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.10.0, 1.10.1, 1.11.0, 1.11.1, 1.11.3, 1.11.4, 1.12.0, 1.12.1, 1.12.2, 1.12.3, 1.12.4
18+
1.1.3, 1.1.4, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.3.0, 1.3.1, 1.4.0, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.9, 1.7.0, 1.7.1, 1.8.0, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.10.0, 1.10.1, 1.11.0, 1.11.1, 1.11.3, 1.11.4, 1.12.0, 1.12.1, 1.12.2, 1.12.3, 1.12.4. 1.13.0, 1.13.1
1919
`,
2020
expectedError: false,
2121
},

migration/versions.go

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,19 @@ type release struct {
3030

3131
// Versions holds a map of plugin/option migrations per CoreDNS release (since 1.1.4)
3232
var Versions = map[string]release{
33+
"1.13.1": {
34+
priorVersion: "1.13.0",
35+
dockerImageSHA: "9b9128672209474da07c91439bf15ed704ae05ad918dd6454e5b6ae14e35fee6",
36+
plugins: plugins_1_13_0,
37+
},
38+
"1.13.0": {
39+
nextVersion: "1.13.1",
40+
priorVersion: "1.12.4",
41+
dockerImageSHA: "da282c1983a1a330240e6e84eaec9b6120b0de0e7e29e92c44a6acd25f9e0238",
42+
plugins: plugins_1_13_0,
43+
},
3344
"1.12.4": {
45+
nextVersion: "1.13.0",
3446
priorVersion: "1.12.3",
3547
dockerImageSHA: "986f04c2e15e147d00bdd51e8c51bcef3644b13ff806be7d2ff1b261d6dfbae1",
3648
plugins: plugins_1_12_0,
@@ -799,6 +811,25 @@ var Versions = map[string]release{
799811
}`},
800812
}
801813

814+
var plugins_1_13_0 = map[string]plugin{
815+
"errors": plugins["errors"]["v3"],
816+
"log": plugins["log"]["v1"],
817+
"health": plugins["health"]["v1"],
818+
"ready": {},
819+
"autopath": {},
820+
"kubernetes": plugins["kubernetes"]["v8"],
821+
"k8s_external": plugins["k8s_external"]["v2"],
822+
"prometheus": {},
823+
"forward": plugins["forward"]["v5"], // add failfast_all_unhealthy_upstreams option
824+
"cache": plugins["cache"]["v4"],
825+
"loop": {},
826+
"reload": {},
827+
"loadbalance": {},
828+
"hosts": plugins["hosts"]["v1"],
829+
"rewrite": plugins["rewrite"]["v3"],
830+
"transfer": plugins["transfer"]["v1"],
831+
}
832+
802833
var plugins_1_12_0 = map[string]plugin{
803834
"errors": plugins["errors"]["v3"],
804835
"log": plugins["log"]["v1"],

0 commit comments

Comments
 (0)