-
Notifications
You must be signed in to change notification settings - Fork 16.7k
[stable/external-dns] Add support for Dyn #12166
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
apiVersion: v1 | ||
name: external-dns | ||
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 commentThe reason will be displayed to describe this comment to others. Learn more. You don't need to bump the |
||
description: ExternalDNS is a Kubernetes addon that configures public DNS servers with information about exposed Kubernetes services to make them discoverable. | ||
keywords: | ||
- external-dns | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. Add an extra if statement:
|
||
- name: EXTERNAL_DNS_DYN_CUSTOMER_NAME | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ template "external-dns.fullname" . }} | ||
key: dyn_customer_name | ||
{{- end }} | ||
{{- if .Values.dyn.username }} | ||
- name: EXTERNAL_DNS_DYN_USERNAME | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ template "external-dns.fullname" . }} | ||
key: dyn_username | ||
{{- end }} | ||
{{- if .Values.dyn.password }} | ||
- name: EXTERNAL_DNS_DYN_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ template "external-dns.fullname" . }} | ||
key: dyn_password | ||
{{- end }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Question: are any of these parameters mandatory when There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, all of these fields are required for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
# Google environment variables | ||
{{- if eq .Values.provider "google" }} | ||
- name: GOOGLE_APPLICATION_CREDENTIALS | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. Should it be |
||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. Add - {{ if .Values.dyn.customerName }}
+ {{- if .Values.dyn.customerName }} |
||
dyn_customer_name: {{ .Values.dyn.customerName | b64enc | quote }} | ||
{{- end }} | ||
{{ if .Values.dyn.username }} | ||
dyn_username: {{ .Values.dyn.username | b64enc | quote }} | ||
{{- end }} | ||
{{ if .Values.dyn.password }} | ||
dyn_password: {{ .Values.dyn.password | b64enc | quote }} | ||
{{- end }} | ||
{{- if and .Values.infoblox.wapiUsername .Values.infoblox.wapiPassword }} | ||
infoblox_wapi_username: {{ .Values.infoblox.wapiUsername | b64enc | quote }} | ||
infoblox_wapi_password: {{ .Values.infoblox.wapiPassword | b64enc | quote }} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ sources: | |
# - crd | ||
|
||
## DNS provider where the DNS records will be created. Available providers are: | ||
## - aws, azure, cloudflare, designate, digitalocoean, google, infoblox, rfc2136 | ||
## - aws, azure, cloudflare, designate, digitalocoean, dyn, google, infoblox, rfc2136 | ||
## | ||
provider: aws | ||
|
||
|
@@ -120,6 +120,12 @@ digitalocean: | |
## | ||
apiToken: "" | ||
|
||
# Configuration for Dyn provider. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
+ ## |
||
dyn: | ||
customer_name: "" | ||
username: "" | ||
password: "" | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please update the |
||
## Google configuration to be set via arguments/env. variables | ||
## | ||
google: | ||
|
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