Skip to content

Commit

Permalink
Add servfail and disable options missing from cache in CoreDNS 1.9.4
Browse files Browse the repository at this point in the history
Signed-off-by: bzsuni <[email protected]>
  • Loading branch information
bzsuni committed Nov 23, 2024
1 parent 1897e8e commit cb0bcbd
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 5 deletions.
12 changes: 12 additions & 0 deletions migration/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,18 @@ var plugins = map[string]map[string]plugin{
"denial": {},
"prefetch": {},
"serve_stale": {},
"disable": {}, // v1.9.4 new option
"servfail": {}, // v1.9.4 new option
},
},
"v4": plugin{
namedOptions: map[string]option{
"success": {},
"denial": {},
"prefetch": {},
"serve_stale": {},
"disable": {},
"servfail": {},
"keepttl": {}, // new option
},
},
Expand Down
29 changes: 24 additions & 5 deletions migration/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ var Versions = map[string]release{
nextVersion: "1.10.1",
priorVersion: "1.9.4",
dockerImageSHA: "017727efcfeb7d053af68e51436ce8e65edbc6ca573720afb4f79c8594036955",
plugins: plugins_1_9_3,
plugins: plugins_1_9_4,
},
"1.9.4": {
nextVersion: "1.10.0",
priorVersion: "1.9.3",
dockerImageSHA: "b82e294de6be763f73ae71266c8f5466e7e03c69f3a1de96efd570284d35bb18",
plugins: plugins_1_9_3,
plugins: plugins_1_9_4,
},
"1.9.3": {
nextVersion: "1.9.4",
Expand Down Expand Up @@ -785,7 +785,7 @@ var plugins_1_11_4 = map[string]plugin{
"k8s_external": plugins["k8s_external"]["v2"],
"prometheus": {},
"forward": plugins["forward"]["v4"], // add next option
"cache": plugins["cache"]["v2"],
"cache": plugins["cache"]["v4"],
"loop": {},
"reload": {},
"loadbalance": {},
Expand All @@ -804,7 +804,7 @@ var plugins_1_11_0 = map[string]plugin{
"k8s_external": plugins["k8s_external"]["v2"], //add fallthrough option
"prometheus": {},
"forward": plugins["forward"]["v3"],
"cache": plugins["cache"]["v2"],
"cache": plugins["cache"]["v4"],
"loop": {},
"reload": {},
"loadbalance": {},
Expand All @@ -823,7 +823,26 @@ var plugins_1_10_1 = map[string]plugin{
"k8s_external": plugins["k8s_external"]["v1"],
"prometheus": {},
"forward": plugins["forward"]["v3"],
"cache": plugins["cache"]["v2"], // add keepttl option
"cache": plugins["cache"]["v4"], // add keepttl option
"loop": {},
"reload": {},
"loadbalance": {},
"hosts": plugins["hosts"]["v1"],
"rewrite": plugins["rewrite"]["v2"],
"transfer": plugins["transfer"]["v1"],
}

var plugins_1_9_4 = 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"]["v3"], // add disable and servfail options
"loop": {},
"reload": {},
"loadbalance": {},
Expand Down

0 comments on commit cb0bcbd

Please sign in to comment.