-
Notifications
You must be signed in to change notification settings - Fork 16.7k
[stable/external-dns] Add support for Dyn #12166
Conversation
Hi @devcamcar. Thanks for your PR. I'm waiting for a helm member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
d93edeb
to
6a4e4f8
Compare
5a78845
to
212d722
Compare
/assign @juan131 |
Hi @devcamcar I see you and other people requesting adding support for new DNS providers (see #14793) We're doing a major refactoring of the chart (see #14970) and I'll wait for this change to be approved before adding support for more providers. Once it's accepted I'll come back and review all these PRs. Sorry for the inconveniences. |
/hold |
/hold cancel |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: devcamcar The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Devin Carlen <devin.carlen@gmail.com>
@juan131 Done, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for rebasing and reapplying the changes. Please take a look to my suggestions
@@ -1,7 +1,7 @@ | |||
apiVersion: v1 | |||
name: external-dns | |||
version: 2.0.2 | |||
appVersion: 0.5.15 | |||
version: 2.0.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please bump minor version instead
version: 2.0.2 | ||
appVersion: 0.5.15 | ||
version: 2.0.3 | ||
appVersion: 0.5.16 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to bump the appVersion
. Indeed, we haven't release the version 0.5.16
yet, see https://hub.docker.com/r/bitnami/external-dns/tags/
@@ -23,6 +23,15 @@ data: | |||
{{- if .Values.digitalocean.apiToken }} | |||
digitalocean_api_token: {{ .Values.digitalocean.apiToken | b64enc | quote }} | |||
{{- end }} | |||
{{ if .Values.dyn.customerName }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add {{-
to every if statement:
- {{ if .Values.dyn.customerName }}
+ {{- if .Values.dyn.customerName }}
customer_name: "" | ||
username: "" | ||
password: "" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the values-production.yaml
with the same changes too
@@ -120,6 +120,12 @@ digitalocean: | |||
## | |||
apiToken: "" | |||
|
|||
# Configuration for Dyn provider. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please follow the same format for comments:
- # Configuration for Dyn provider.
+ ## Configuration for Dyn provider.
+ ##
@@ -1,4 +1,4 @@ | |||
{{- if or .Values.aws.assumeRoleArn (and .Values.aws.credentials.secretKey .Values.aws.credentials.accessKey) .Values.cloudflare.apiKey .Values.digitalocean.apiToken .Values.google.serviceAccountKey (and .Values.infoblox.wapiUsername .Values.infoblox.wapiPassword) .Values.rfc2136.tsigSecret .Values.extraEnv }} | |||
{{- if or .Values.aws.assumeRoleArn (and .Values.aws.credentials.secretKey .Values.aws.credentials.accessKey) .Values.cloudflare.apiKey .Values.digitalocean.apiToken (and .Values.dyn.customerName .Values.dyn.username .Values.dyn.password) .Values.google.serviceAccountKey (and .Values.infoblox.wapiUsername .Values.infoblox.wapiPassword) .Values.rfc2136.tsigSecret .Values.extraEnv }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be and
or or
?
secretKeyRef: | ||
name: {{ template "external-dns.fullname" . }} | ||
key: dyn_password | ||
{{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: are any of these parameters mandatory when provider=dyn
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, all of these fields are required for provider=dyn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -203,6 +203,28 @@ spec: | |||
name: {{ template "external-dns.fullname" . }} | |||
key: digitalocean_api_token | |||
{{- end }} | |||
# Dyn environment variables | |||
{{- if .Values.dyn.customerName }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an extra if statement:
{{- if eq .Values.provider "digitalocean" }}
...
{{- end }}
Hi @devcamcar !! It seems we forgot about PR, sorry for that |
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. |
What this PR does / why we need it:
Adds support for Dyn to external-dns chart.
Special notes for your reviewer:
Tested against Kubernetes 1.11.5 and Helm 2.13.
Checklist