From 8be3edfc599cf5546fc4793121b14e32935c76db Mon Sep 17 00:00:00 2001 From: Hugo Fonseca <1098293+fonsecas72@users.noreply.github.com> Date: Thu, 8 Oct 2020 20:38:10 +0100 Subject: [PATCH] =?UTF-8?q?[Adguard-home]=20Allow=20to=20mount=20secret=20?= =?UTF-8?q?with=20certs=20so=20we=20can=20set=20the=20tls=20=E2=80=A6=20(#?= =?UTF-8?q?87)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Adguard-home: Allow to mount secret with certs so we can set the tls configs with these * adguard-home bump to 2.2.0 --- charts/adguard-home/Chart.yaml | 2 +- charts/adguard-home/templates/deployment.yaml | 10 ++++++++++ charts/adguard-home/values.yaml | 4 ++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/charts/adguard-home/Chart.yaml b/charts/adguard-home/Chart.yaml index 7c04e395..65534b1e 100644 --- a/charts/adguard-home/Chart.yaml +++ b/charts/adguard-home/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: v0.102.0 description: DNS proxy as ad-blocker for local network name: adguard-home -version: 2.1.1 +version: 2.2.0 keywords: - adguard-home - adguard diff --git a/charts/adguard-home/templates/deployment.yaml b/charts/adguard-home/templates/deployment.yaml index 19bd6eee..41c17daa 100644 --- a/charts/adguard-home/templates/deployment.yaml +++ b/charts/adguard-home/templates/deployment.yaml @@ -83,6 +83,11 @@ spec: - name: config mountPath: /opt/adguardhome/conf readOnly: false + {{- if .Values.tlsSecretName }} + - name: certs + mountPath: /certs + readOnly: false + {{- end }} ports: - name: http {{- if .Values.configAsCode.enabled }} @@ -153,6 +158,11 @@ spec: resources: {{- toYaml .Values.resources | nindent 12 }} volumes: + {{- if .Values.tlsSecretName }} + - name: certs + secret: + secretName: {{ .Values.tlsSecretName }} + {{- end }} {{- if .Values.configAsCode.enabled }} - name: configmap configMap: diff --git a/charts/adguard-home/values.yaml b/charts/adguard-home/values.yaml index 4be54767..06d6112f 100644 --- a/charts/adguard-home/values.yaml +++ b/charts/adguard-home/values.yaml @@ -165,6 +165,10 @@ configAsCode: verbose: false schema_version: 6 +tlsSecretName: "" +# name of the secret that contains the tls cert and key. +# this secret will be mounted inside the adguard container /certs path. e.g. works with cert-manager + image: repository: adguard/adguardhome # Image tag is set via charts appVersion. If you want to override the tag, specify it here