-
Notifications
You must be signed in to change notification settings - Fork 16.7k
[external-dns] Using CloudFlare with cloudflare.secretName containing cloudflare_api_key does not work #21147
Comments
Hi @nielsvz, thanks for filling this issue. I can only reproduce the issue if I create the secret with wrong properties:
If I describe the secret, key in the secret is
Can you also describe your secret in case it doesn't have the By the way, the logs say it's looking for a secret called |
I just re-validated this in a clean minikube cluster: kubectl create ns external-dns
kubectl -n external-dns create secret generic cloudflare-apikey --from-literal=cloudflare_api_key=SECRET
helm install external-dns stable/external-dns --namespace external-dns --values ./custom-values.yaml pod:
secret:
I think this is caused by the conditions in deployment.yaml, if you provide Changing line 241 to this works for me: |
The error is very strange.
I don't think so, the error that you are seeing when describing the pod is I don't think that is related to the contents of the In any case, you can modify it to try to identify the source of the issue. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions. |
This issue is being automatically closed due to inactivity. |
@carrodher ping, setting CF_API_KEY will never work, fix from @nielsvz |
Hi, Given the In this issue we tried to explain more carefully the reasons and motivations behind this transition, please don't hesitate to add a comment in this issue if you have any question related to the migration itself. |
Describe the bug
When installing the external-dns chart with the CloudFlare provider and an API key in a custom
secretName
the resulting Pod fails withCreateContainerConfigError
.Version of Helm and Kubernetes:
Helm v3.1.1
Kubernetes v1.17
Which chart:
External-DNS 2.19.1
What happened:
Installing External-DNS with the following values results in the output below.
Values:
Output from
kubectl describe pod
:Warning Failed 14s (x6 over 53s) kubelet, minikube Error: couldn't find key cloudflare_api_token in Secret system-external-dns/cloudflare-apikey
What you expected to happen:
The External-DNS Pod should use the API key when providing both
cloudflare.email
andcloudflare.secretName
.How to reproduce it (as minimally and precisely as possible):
kubectl create ns external-dns
kubectl -n external-dns create secret generic cloudflare-apikey --from-literal=cloudflare_api_token=CHANGEMEPLEASE
custom-values.yaml
:helm install external-dns stable/external-dns --namespace external-dns --values custom-values.yaml
custom-values.yaml
:The text was updated successfully, but these errors were encountered: