[bitnami/external-dns] add pihole support (#21809)

* external dns pihole support

Signed-off-by: drfaust92 <ilia.lazebnik@gmail.com>

* external dns pihole support

Signed-off-by: drfaust92 <ilia.lazebnik@gmail.com>

* external dns pihole support

Signed-off-by: drfaust92 <ilia.lazebnik@gmail.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* external dns pihole support

Signed-off-by: drfaust92 <ilia.lazebnik@gmail.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* Update _helpers.tpl

Signed-off-by: Ilia Lazebnik <Ilia.lazebnik@gmail.com>

---------

Signed-off-by: drfaust92 <ilia.lazebnik@gmail.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: Ilia Lazebnik <Ilia.lazebnik@gmail.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Ilia Lazebnik
2024-01-08 13:24:52 +02:00
committed by GitHub
parent 802558a3ea
commit bb98b43256
6 changed files with 37 additions and 2 deletions

View File

@@ -28,4 +28,4 @@ maintainers:
name: external-dns
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/external-dns
version: 6.28.6
version: 6.29.0

View File

@@ -202,6 +202,9 @@ The command removes all the Kubernetes components associated with the chart and
| `ns1.minTTL` | When using the ns1 provider, specify minimal TTL, as an integer, for records | `10` |
| `ns1.apiKey` | When using the ns1 provider, specify the API key to use | `""` |
| `ns1.secretName` | Use an existing secret with key "ns1-api-key" defined. | `""` |
| `pihole.server` | When using the Pi-hole provider, specify The address of the Pi-hole web server | `""` |
| `pihole.tlsSkipVerify` | When using the Pi-hole provider, specify wheter to skip verification of any TLS certificates served by the Pi-hole web server | `""` |
| `pihole.secretName` | Use an existing secret with key "pihole_password" defined. | `""` |
| `oci.region` | When using the OCI provider, specify the region, where your zone is located in. | `""` |
| `oci.tenancyOCID` | When using the OCI provider, specify your Tenancy OCID | `""` |
| `oci.userOCID` | When using the OCI provider, specify your User OCID | `""` |

View File

@@ -130,6 +130,8 @@ Return true if a secret object should be created
{{- true -}}
{{- else if and (eq .Values.provider "civo") .Values.civo.apiToken (not .Values.civo.secretName) -}}
{{- true -}}
{{- else if and (eq .Values.provider "pihole") .Values.pihole.secretName (not .Values.pihole.secretName) -}}
{{- true -}}
{{- else -}}
{{- end -}}
{{- end -}}

View File

@@ -278,6 +278,14 @@ spec:
# ns1 arguments
- --ns1-min-ttl={{ .Values.ns1.minTTL }}
{{- end }}
{{- if eq .Values.provider "pihole" }}
{{- if .Values.pihole.server }}
- --pihole-server={{ .Values.pihole.server }}
{{- end }}
{{- if .Values.pihole.tlsSkipVerify }}
- --pihole-tls-skip-verify={{ .Values.pihole.tlsSkipVerify }}
{{- end }}
{{- end }}
{{- if eq .Values.provider "rfc2136" }}
# RFC 2136 arguments
- --rfc2136-host={{ required "rfc2136.host must be supplied for provider 'rfc2136'" .Values.rfc2136.host }}
@@ -638,6 +646,13 @@ spec:
{{- if .Values.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.pihole.secretName }}
- name: EXTERNAL_DNS_PIHOLE_PASSWORD
valueFrom:
secretKeyRef:
name: {{ template "external-dns.secretName" . }}
key: pihole_password
{{- end }}
{{- if eq .Values.provider "ns1" }}
# NS1 environment variables
{{- if or (.Values.ns1.apiKey) (.Values.ns1.secretName) }}

View File

@@ -105,4 +105,7 @@ data:
{{- if eq .Values.provider "ns1" }}
ns1-api-key: {{ .Values.ns1.apiKey | b64enc | quote }}
{{- end }}
{{- if .Values.pihole.password }}
pihole_password: {{ .Values.pihole.password | b64enc | quote }}
{{- end }}
{{- end }}

View File

@@ -542,6 +542,19 @@ ns1:
##
secretName: ""
## Pi-hole configuration to be set via arguments/env. variables
##
pihole:
## @param pihole.server When using the Pi-hole provider, specify The address of the Pi-hole web server
##
server: ""
## @param pihole.tlsSkipVerify When using the Pi-hole provider, specify wheter to skip verification of any TLS certificates served by the Pi-hole web server
##
tlsSkipVerify: ""
## @param pihole.secretName Use an existing secret with key "pihole_password" defined.
##
secretName: ""
## oci configuration to be set via arguments/env. variables
##
oci:
@@ -1142,4 +1155,3 @@ metrics:
## @param metrics.googlePodMonitor.endpoint The endpoint for Google Managed Prometheus scraping the metrics
##
endpoint: /metrics