From 770ad32c080f261d7c87bb918792616ba671cdf4 Mon Sep 17 00:00:00 2001 From: jonas Date: Tue, 12 Nov 2024 10:20:21 +0100 Subject: [PATCH] added volumes to statefulset --- Chart.yaml | 2 +- templates/_statefulset.tpl | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index a68f376..ab1089a 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -3,7 +3,7 @@ apiVersion: v2 name: lib description: Common functions for my helm charts at home type: library -version: 1.0.3 +version: 1.0.4 kubeVersion: ">=1.27.0" home: git.rre.nu sources: diff --git a/templates/_statefulset.tpl b/templates/_statefulset.tpl index b19fd04..dd0baa4 100644 --- a/templates/_statefulset.tpl +++ b/templates/_statefulset.tpl @@ -36,6 +36,10 @@ spec: {{- toYaml .Values.controller.podSecurityContext | nindent 8 }} containers: {{- include "lib.parts.container" . | nindent 8 -}} + {{- with .Values.volumes }} + volumes: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }}