fix(azure): external-dns extraArgs must be a list, not a map - #355
Merged
Conversation
The kubernetes-sigs external-dns chart (v1.14.4) expects extraArgs to be
an array of raw flag strings (the chart does `range .Values.extraArgs`
and appends each item to the container args). Passing a map fails the
chart's values.schema.json ("extraArgs: Invalid type. Expected: array,
given: object") and would render the value instead of the flag.
Switch the Azure external-dns values to the list form used elsewhere
(clusters_aws.go), passing the full flag string
`--txt-wildcard-replacement=wildcard`.
amdove
marked this pull request as ready for review
July 17, 2026 16:17
|
Claude finished @amdove's task in 33s —— View job PR Review
The fix is correct and the minimal change is appropriate. A few notes: Correctness The old map form passed No concerns. The change is correct, well-scoped, and follows existing convention. Ready to merge. |
stevenolen
approved these changes
Jul 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The ExternalDNS Helm install fails on the kubernetes-sigs external-dns chart (v1.14.4) with:
In
lib/steps/helm_azure.go(azureHelmExternalDNS),extraArgswas set as a map:The kubernetes-sigs external-dns chart expects
extraArgsto be an array of raw flag strings (the chart doesrange .Values.extraArgsand appends each item to the container args). The map form fails the chart'svalues.schema.jsonand, even without the strict schema, would have rendered the bare value (wildcard) instead of the flag.Code Flow
azureHelmExternalDNSbuilds the external-dns Helm values map that is marshalled to YAML and applied via aHelmChartcustom resource. This change switchesextraArgsto the list form, passing the full flag string--txt-wildcard-replacement=wildcard— matching the convention already used in the AWS path (lib/steps/clusters_aws.go, which passes--aws-zone-match-parentas a list item). This is the only place the Azure external-dns values are built.Category of change
Checklist