Skip to content

Commit

Permalink
chart: fix rendering of managedRecordTypes (txqueuelen#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
roobre authored Mar 27, 2023
1 parent 6f22082 commit 8a56bda
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion charts/stateless-dns/ci/test-all-possible-values-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ externalDNS:
txtPrefix: "prefix-" # txt-prefix and txt-suffix are mutual exclusive
# txtSuffix: "-suffix"
txtWildcardReplacement: "wildcard-"
managedRecordTypes: A,CNAME,NS
managedRecordTypes:
- A
- CNAME
- NS

pdns:
nameOverride: ""
Expand Down
5 changes: 4 additions & 1 deletion charts/stateless-dns/ci/test-all-possible-values-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ externalDNS:
# txtPrefix: "prefix-"
txtSuffix: "-suffix" # txt-prefix and txt-suffix are mutual exclusive
txtWildcardReplacement: "wildcard-"
managedRecordTypes: A,CNAME,NS
managedRecordTypes:
- A
- CNAME
- NS

pdns:
nameOverride: ""
Expand Down
4 changes: 3 additions & 1 deletion charts/stateless-dns/templates/external-dns-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ spec:
{{- range $zonename, $zonefile := .Values.zones }}
- --domain-filter={{ $zonename }}
{{- end }}
- --managed-record-types={{ .Values.externalDNS.managedRecordTypes }}
{{- range .Values.externalDNS.managedRecordTypes }}
- --managed-record-types={{ . }}
{{- end }}

- --registry=txt
{{- with .Values.externalDNS.txtOwnerId }}
Expand Down
6 changes: 5 additions & 1 deletion charts/stateless-dns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ externalDNS:
txtPrefix: "" # Each of the entris added by external-dns will create a TXT entry in the DNS too to mark external-dns as it owner. The TXT entry name will be the entry that is being created plus this prefix.
txtSuffix: "" # Same as above but TXT entries are decorated with a suffix instead of a prefix.
txtWildcardReplacement: "" # For more information on how TXT entries are created refer to the doc of `txtPrefix`. This is the prefix added to wildcard entries as they cannot be calculated.
managedRecordTypes: A,CNAME,NS # Entry type that external-dns will be able to create in the provider.
# Entry types that external-dns will be able to create in the provider.
managedRecordTypes:
- A
- CNAME
- NS

pdns:
nameOverride: "" # String to override the name of the objects created (will maintain the release name).
Expand Down

0 comments on commit 8a56bda

Please sign in to comment.