Skip to content

Commit

Permalink
[stable/external-dns] Support DigitalOcean (Fixes helm#10923). (helm#…
Browse files Browse the repository at this point in the history
…11257)

* [stable/external-dns] Support DigitalOcean (Fixes helm#10923).

Signed-off-by: Andrew Starr-Bochicchio <[email protected]>

* [stable/external-dns] Bump chart version.

Signed-off-by: Andrew Starr-Bochicchio <[email protected]>

* [stable/external-dns] Bump chart version again.

Signed-off-by: Andrew Starr-Bochicchio <[email protected]>
  • Loading branch information
andrewsomething authored and k8s-ci-robot committed Feb 27, 2019
1 parent bb0fb8e commit 2dabf16
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/external-dns/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: |
Configure external DNS servers (AWS Route53, Google CloudDNS and others)
for Kubernetes Ingresses and Services
name: external-dns
version: 1.6.1
version: 1.6.2
appVersion: 0.5.9
home: https://github.com/kubernetes-incubator/external-dns
sources:
Expand Down
1 change: 1 addition & 0 deletions stable/external-dns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ The following table lists the configurable parameters of the external-dns chart
| `designate.customCA.directory` | Directory in which to mount the Designate provider's custom CA | "/config/designate" |
| `designate.customCA.filename` | Filename of Designate provider's custom CA | "designate-ca.pem" |
| `domainFilters` | Limit possible target zones by domain suffixes (optional). | `[]` |
| `digitalocean.apiToken` | When using the DigitalOcean provider, sets `DO_TOKEN` in the environment (optional). | `""` |
| `dryRun` | When enabled, prints DNS record changes rather than actually performing them (optional). | `false` |
| `extraArgs` | Optional object of extra args, as `name`: `value` pairs. Where the name is the command line arg to external-dns. | `{}` |
| `extraEnv` | Optional array of extra environment variables. Supply a `name` property and either `value` of `valueFrom` for each. | `[]` |
Expand Down
7 changes: 7 additions & 0 deletions stable/external-dns/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ spec:
- name: CF_API_EMAIL
value: "{{ .Values.cloudflare.email }}"
{{- end }}
{{- if .Values.digitalocean.apiToken }}
- name: DO_TOKEN
valueFrom:
secretKeyRef:
name: {{ template "external-dns.fullname" . }}
key: digitalocean_api_token
{{- end }}
{{- if .Values.infoblox.wapiConnectionPoolSize }}
- name: EXTERNAL_DNS_INFOBLOX_HTTP_POOL_CONNECTIONS
value: "{{ .Values.infoblox.wapiConnectionPoolSize }}"
Expand Down
5 changes: 4 additions & 1 deletion stable/external-dns/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or (and .Values.aws.secretKey .Values.aws.accessKey) .Values.cloudflare.apiKey (and .Values.infoblox.wapiUsername .Values.infoblox.wapiPassword) .Values.extraEnv .Values.google.serviceAccountKey -}}
{{- if or (and .Values.aws.secretKey .Values.aws.accessKey) .Values.cloudflare.apiKey .Values.digitalocean.apiToken (and .Values.infoblox.wapiUsername .Values.infoblox.wapiPassword) .Values.extraEnv .Values.google.serviceAccountKey -}}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -17,6 +17,9 @@ data:
{{- if .Values.cloudflare.apiKey }}
cloudflare_api_key: {{ .Values.cloudflare.apiKey | b64enc | quote }}
{{- end }}
{{- if .Values.digitalocean.apiToken }}
digitalocean_api_token: {{ .Values.digitalocean.apiToken | 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 }}
Expand Down
4 changes: 4 additions & 0 deletions stable/external-dns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ designate:
# Filename of the custom CA
filename: "designate-ca.pem"

# DigitalOcean API token to inject as environment variable
digitalocean:
apiToken: ""

# When using the Google provider, specify the Google project (required when provider=google)
google:
project: ""
Expand Down

0 comments on commit 2dabf16

Please sign in to comment.