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

Using the txtSuffix field in the helm chart does nothing #4656

Open
jmtx1020 opened this issue Aug 5, 2024 · 3 comments
Open

Using the txtSuffix field in the helm chart does nothing #4656

jmtx1020 opened this issue Aug 5, 2024 · 3 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@jmtx1020
Copy link

jmtx1020 commented Aug 5, 2024

What happened:

I set the txtSuffix and txtPrefix but only the txtSuffix 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:

  provider:
    name: cloudflare
  env:
    - name: CF_API_TOKEN
      valueFrom:
        secretKeyRef:
          name: external-cf-secrets
          key: CF_API_TOKEN
  txtPrefix: "test-prefix"
  txtSuffix: "test-suffix"
  txtOwnerId: "testing"

relevant lines from the deployment.yaml:

          args:
            - --log-level=info
            - --log-format=text
            - --interval=1m
            - --source=service
            - --source=ingress
            - --policy=upsert-only
            - --registry=txt
            - --txt-owner-id=testing
            - --txt-prefix=test-prefix
            - --provider=cloudflare

Anything else we need to know?:
Using the latest version of the helm chart 1.14.5,
Environment:

  • External-DNS version (use external-dns --version): v0.14.2
  • DNS provider: cloudflare, ns1
@jmtx1020 jmtx1020 added the kind/bug Categorizes issue or PR as related to a bug. label Aug 5, 2024
@jmtx1020
Copy link
Author

jmtx1020 commented Aug 5, 2024

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

@kundan2707
Copy link
Contributor

@jmtx1020 it mentioned in its description that txtSuffix and txtSuffix are mutually exclusive.
so it seems correct

@jmtx1020
Copy link
Author

jmtx1020 commented Aug 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants