Skip to content

Commit 58b4d17

Browse files
committed
Added dedicated extraArgs parameter for namespaces
1 parent 8ed9e8a commit 58b4d17

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

charts/external-dns/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,5 @@ The following table lists the configurable parameters of the _ExternalDNS_ chart
6767
| `txtPrefix` | Prefix to create a TXT record with a name following the pattern `prefix.<CNAME record>`. | `""` |
6868
| `domainFilters` | Limit possible target zones by domain suffixes. | `[]` |
6969
| `provider` | DNS provider where the DNS records will be created, for the available providers and how to configure them see the [README](https://github.com/kubernetes-sigs/external-dns#deploying-to-a-cluster). | `aws` |
70+
| `watchNamespaces` | List of namespaces to be observed for new DNS entries. | `[]` |
7071
| `extraArgs` | Extra arguments to pass to the _external-dns_ container, these are needed for provider specific arguments. | `[]` |

charts/external-dns/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ spec:
5959
{{- if .Values.triggerLoopOnEvent }}
6060
- --events
6161
{{- end }}
62+
{{- if .Values.watchNamespaces }}
63+
- --namespace={{ .Values.watchNamespaces | join "," }}
64+
{{- end }}
6265
{{- range .Values.sources }}
6366
- --source={{ . }}
6467
{{- end }}

charts/external-dns/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,6 @@ domainFilters: []
115115

116116
provider: aws
117117

118+
watchNamespaces: []
119+
118120
extraArgs: []

0 commit comments

Comments
 (0)