From e3bf5ff396251a891492fa264609b2a11aaa25bc Mon Sep 17 00:00:00 2001 From: Emilien Devos Date: Tue, 19 Sep 2023 17:44:12 +0200 Subject: [PATCH] add required size for a PVC + fix if case --- templates/rabbitmq/rabbitmq-pvc.yaml | 5 ++++- values.yaml | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/rabbitmq/rabbitmq-pvc.yaml b/templates/rabbitmq/rabbitmq-pvc.yaml index bec5440..d6ed137 100644 --- a/templates/rabbitmq/rabbitmq-pvc.yaml +++ b/templates/rabbitmq/rabbitmq-pvc.yaml @@ -1,4 +1,4 @@ -{{- if .Values.rabbitmq.storage.pv_name -}} +{{- if .Values.rabbitmq.storage -}} apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -15,4 +15,7 @@ spec: {{- if .Values.rabbitmq.storage.pv_name }} volumeName: {{ .Values.rabbitmq.storage.pv_name }} {{- end }} + resources: + requests: + storage: {{ .Values.rabbitmq.storage.size }} {{- end }} \ No newline at end of file diff --git a/values.yaml b/values.yaml index ea43a23..aeb8803 100644 --- a/values.yaml +++ b/values.yaml @@ -265,4 +265,5 @@ rabbitmq: # if you just automatically want storage, consult the bitnam helm chart doc # storage: # pv_name: rabbitmq-data -# storage_class_name: default \ No newline at end of file +# storage_class_name: default +# size: 1Gi \ No newline at end of file