Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-4.7] Bug 1953609: Enable errors plugin for custom upstream resolvers #268

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/operator/controller/controller_dns_configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var corefileTemplate = template.Must(template.New("Corefile").Parse(`{{range .Se
{{with .ForwardPlugin -}}
forward .{{range .Upstreams}} {{.}}{{end}}
{{- end}}
errors
}
{{end -}}
.:5353 {
Expand Down
2 changes: 2 additions & 0 deletions pkg/operator/controller/controller_dns_configmap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ func TestDesiredDNSConfigmap(t *testing.T) {
expectedCorefile := `# foo
foo.com:5353 {
forward . 1.1.1.1 2.2.2.2:5353
errors
}
# bar
bar.com:5353 example.com:5353 {
forward . 3.3.3.3
errors
}
.:5353 {
errors
Expand Down