Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/external-dns] Add support for Dyn #12166

Closed
wants to merge 1 commit into from

Conversation

devcamcar
Copy link

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

  • DCO signed
  • Chart Version bumped
  • Variables are documented in the README.md

@helm-bot helm-bot added the Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). label Mar 13, 2019
@k8s-ci-robot k8s-ci-robot requested a review from scottrigby March 13, 2019 04:13
@helm-bot helm-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 13, 2019
@k8s-ci-robot k8s-ci-robot requested a review from unguiculus March 13, 2019 04:13
@k8s-ci-robot
Copy link
Contributor

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Mar 13, 2019
@helm-bot helm-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 13, 2019
@helm-bot helm-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 13, 2019
@davidkarlsen
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 21, 2019
@devcamcar devcamcar force-pushed the master branch 2 times, most recently from d93edeb to 6a4e4f8 Compare May 5, 2019 19:16
@devcamcar devcamcar force-pushed the master branch 2 times, most recently from 5a78845 to 212d722 Compare May 17, 2019 00:34
@maorfr
Copy link
Member

maorfr commented Jun 27, 2019

/assign @juan131

@juan131
Copy link
Collaborator

juan131 commented Jun 28, 2019

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.

@juan131
Copy link
Collaborator

juan131 commented Jun 28, 2019

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 28, 2019
@juan131
Copy link
Collaborator

juan131 commented Jul 4, 2019

/hold cancel
@devcamcar could you please rebase from master and apply the changes on top of the new refactored chart? Thanks in advance

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 4, 2019
@helm-bot helm-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 4, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: devcamcar
To complete the pull request process, please assign juan131
You can assign the PR to them by writing /assign @juan131 in a comment when ready.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@helm-bot helm-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 4, 2019
Signed-off-by: Devin Carlen <devin.carlen@gmail.com>
@helm-bot helm-bot added the Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). label Jul 4, 2019
@devcamcar
Copy link
Author

@juan131 Done, thanks!

Copy link
Collaborator

@juan131 juan131 left a 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
Copy link
Collaborator

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
Copy link
Collaborator

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 }}
Copy link
Collaborator

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: ""

Copy link
Collaborator

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.
Copy link
Collaborator

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 }}
Copy link
Collaborator

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 }}
Copy link
Collaborator

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?

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

Copy link
Collaborator

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 }}
Copy link
Collaborator

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 }}

@juan131
Copy link
Collaborator

juan131 commented Aug 8, 2019

Hi @devcamcar !! It seems we forgot about PR, sorry for that
Could you please rebase from master and take a look to my last comments? Thanks

@stale
Copy link

stale bot commented Sep 7, 2019

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.

@stale stale bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 7, 2019
@stale
Copy link

stale bot commented Sep 21, 2019

This issue is being automatically closed due to inactivity.

@stale stale bot closed this Sep 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. ok-to-test size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants