From d73d5577b96bfc3213fcffc351f84fa17d583452 Mon Sep 17 00:00:00 2001 From: Chris O'Haver Date: Wed, 6 Apr 2022 15:14:26 -0400 Subject: [PATCH] Add 1.9.1 (#66) Signed-off-by: Chris O'Haver --- corefile-tool/cmd/validversions_test.go | 2 +- migration/versions.go | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/corefile-tool/cmd/validversions_test.go b/corefile-tool/cmd/validversions_test.go index b90d8e0..c6d329f 100644 --- a/corefile-tool/cmd/validversions_test.go +++ b/corefile-tool/cmd/validversions_test.go @@ -15,7 +15,7 @@ func TestNewValidVersionsCmd(t *testing.T) { { name: "Works without error", expectedOutput: `The following are valid CoreDNS versions: -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.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 `, expectedError: false, }, diff --git a/migration/versions.go b/migration/versions.go index cb27bf0..d8a8146 100644 --- a/migration/versions.go +++ b/migration/versions.go @@ -30,7 +30,30 @@ type release struct { // Versions holds a map of plugin/option migrations per CoreDNS release (since 1.1.4) var Versions = map[string]release{ + "1.9.1": { + priorVersion: "1.9.0", + dockerImageSHA: "d5a7db9ab4cb3efc22a08707385c54c328db3df32841d6c4a8ae78f102f1f49a", + plugins: map[string]plugin{ + "errors": plugins["errors"]["v2"], + "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.0": { + nextVersion: "1.9.1", priorVersion: "1.8.7", dockerImageSHA: "0f101fabf4b63883d4529435f75b1e8816dcc8915e8fa7d28aa6e50a15e9ea6a", plugins: map[string]plugin{