From 2afb28717eedd38e46471798a30d66ba80e2f584 Mon Sep 17 00:00:00 2001 From: MickaelCa <71669881+MickaelCa@users.noreply.github.com> Date: Sun, 17 Oct 2021 15:05:19 +0200 Subject: [PATCH] [powerdns] additional env vars (#1248) * add possibility to insert additional env vars * update README.md --- charts/stable/powerdns/Chart.yaml | 2 +- charts/stable/powerdns/README.md | 1 + .../stable/powerdns/templates/deployment.yaml | 3 +++ charts/stable/powerdns/values.yaml | 21 +++++++++++++++++++ 4 files changed, 26 insertions(+), 1 deletion(-) diff --git a/charts/stable/powerdns/Chart.yaml b/charts/stable/powerdns/Chart.yaml index 7b25ce51..ce4387e2 100755 --- a/charts/stable/powerdns/Chart.yaml +++ b/charts/stable/powerdns/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: v4.3.1 description: PowerDNS is a DNS server, written in C++ and licensed under the GPL. It runs on most Unix derivatives. PowerDNS features a large number of different backends ranging from simple BIND style zonefiles to relational databases and load balancing/failover algorithms. A DNS recursor is provided as a separate program. name: powerdns -version: 3.4.1 +version: 3.4.2 home: https://github.com/k8s-at-home/charts/tree/master/charts/stable/powerdns sources: - http://www.github.com/PowerDNS/ diff --git a/charts/stable/powerdns/README.md b/charts/stable/powerdns/README.md index 1597182c..c8737fbf 100644 --- a/charts/stable/powerdns/README.md +++ b/charts/stable/powerdns/README.md @@ -105,6 +105,7 @@ N/A | powerdns.postgres.database | string | `"pdns"` | | | powerdns.postgres.password | string | `"pdnspass"` | | | powerdns.postgres.username | string | `"pdns"` | | +| powerdns.additionalEnv | list | `[]` | | | probes.liveness.enabled | bool | `true` | | | probes.liveness.failureThreshold | int | `5` | | | probes.liveness.initialDelaySeconds | int | `30` | | diff --git a/charts/stable/powerdns/templates/deployment.yaml b/charts/stable/powerdns/templates/deployment.yaml index 4780600a..59fe3cda 100755 --- a/charts/stable/powerdns/templates/deployment.yaml +++ b/charts/stable/powerdns/templates/deployment.yaml @@ -87,6 +87,9 @@ spec: - name: MYSQL_DNSSEC value: {{if (.Values.powerdns.dnssec)}}"yes"{{else}}"no"{{ end }} {{ end }} +{{- with .Values.powerdns.additionalEnv }} + {{- toYaml . | nindent 12 }} +{{- end }} ports: - name: dns-tcp containerPort: 53 diff --git a/charts/stable/powerdns/values.yaml b/charts/stable/powerdns/values.yaml index 91c3334a..2a3fd152 100755 --- a/charts/stable/powerdns/values.yaml +++ b/charts/stable/powerdns/values.yaml @@ -70,6 +70,27 @@ powerdns: database: pdns dnssec: true config: {} + additionalEnv: [] + # - name: PGSQL_HOST + # valueFrom: + # secretKeyRef: + # name: "external-secret-name" + # key: host + # - name: PGSQL_USER + # valueFrom: + # secretKeyRef: + # name: "external-secret-name" + # key: user + # - name: PGSQL_PASS + # valueFrom: + # secretKeyRef: + # name: external-secret-name + # key: password + # - name: PGSQL_DB + # valueFrom: + # secretKeyRef: + # name: external-secret-name + # key: dbname # Enabled mariadb # ... for more options see https://github.com/bitnami/charts/tree/master/bitnami/mariadb