From 9bd58cb426f03ede60685119a992f99073aa3c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arthur=20Woimb=C3=A9e?= Date: Wed, 24 May 2023 15:23:05 +0200 Subject: [PATCH] trow: fix invalid volumemounts --- charts/trow/Chart.yaml | 2 +- charts/trow/templates/statefulset.yaml | 11 +++++++++++ charts/trow/templates/webhooks/daemonset.yaml | 2 -- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/charts/trow/Chart.yaml b/charts/trow/Chart.yaml index 78003ca..346370b 100644 --- a/charts/trow/Chart.yaml +++ b/charts/trow/Chart.yaml @@ -3,5 +3,5 @@ name: trow description: Helm chart for Trow registry type: application -version: 0.4.2 +version: 0.4.3 appVersion: 0.4.0 diff --git a/charts/trow/templates/statefulset.yaml b/charts/trow/templates/statefulset.yaml index 3907f39..9698668 100644 --- a/charts/trow/templates/statefulset.yaml +++ b/charts/trow/templates/statefulset.yaml @@ -75,6 +75,17 @@ spec: runAsUser: 333333 runAsGroup: 333333 fsGroup: 333333 + volumes: + {{- if (not (empty .Values.trow.proxyConfig.config)) }} + - name: trow-proxy-cfg + secret: + secretName: {{ include "trow.fullname" . }}-proxy-cfg + {{- end }} + {{- if (not (empty .Values.trow.validation.config)) }} + - name: trow-validation-cfg + configMap: + name: {{ include "trow.fullname" . }}-validation-cfg + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/trow/templates/webhooks/daemonset.yaml b/charts/trow/templates/webhooks/daemonset.yaml index de97417..d7e4c50 100644 --- a/charts/trow/templates/webhooks/daemonset.yaml +++ b/charts/trow/templates/webhooks/daemonset.yaml @@ -54,8 +54,6 @@ spec: - name: webhook containerPort: 8443 volumeMounts: - - name: data-vol - mountPath: /data - name: webhook-cert-translated mountPath: /etc/trow/webhook-cert readOnly: true