Open jmtx1020 opened 3 months ago
Update, I reviewed the code for the helm chart here:
{{- if and (eq .Values.txtPrefix "") (ne .Values.txtSuffix "") }}
- --txt-suffix={{ .Values.txtSuffix }}
{{- end }}
It will work if I set txtPrefix: ""
but not if its not set. If this is intended we can close this issue but this seems strange to me since both values default to nil
@jmtx1020 it mentioned in its description that txtSuffix and txtSuffix are mutually exclusive. so it seems correct
Hey @kundan2707 ,
We can close this issue if it's meant to work that way but it seemed weird to have to set something to ""
to make the other work.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
Not stale. If the default value is used for txtPrefix, but you explicitly set the txtSuffix, then txtSuffix doesn't render because txtPrefix by default is not an "".
Here's some examples:
# values.yaml
txtSuffix: test
helm template external-dns/external-dns --version 1.14.3 --values values.yaml
args:
- --log-level=info
- --log-format=text
- --interval=1m
- --source=service
- --source=ingress
- --policy=upsert-only
- --registry=txt
- --provider=aws
helm template external-dns/external-dns --version 1.13.0 --values values.yaml
args:
- --log-level=info
- --log-format=text
- --interval=1m
- --source=service
- --source=ingress
- --policy=upsert-only
- --registry=txt
- --txt-suffix=test
- --provider=aws
In fact, this was a breaking change for us since we didn't provide txtPrefix, but set txtSuffix. Many of our records started to collide after we upgraded the helm chart.
/remove-lifecycle stale
What happened:
I set the
txtSuffix
andtxtPrefix
but only thetxtSuffix
shows up when I render the YAML.What you expected to happen: I would expect both to show.
How to reproduce it (as minimally and precisely as possible):
values.yaml:
relevant lines from the deployment.yaml:
Anything else we need to know?: Using the latest version of the helm chart
1.14.5
, Environment:external-dns --version
):v0.14.2
cloudflare
,ns1