Skip to content

Commit

Permalink
add required size for a PVC + fix if case
Browse files Browse the repository at this point in the history
  • Loading branch information
edevosc2c committed Sep 19, 2023
1 parent fc12182 commit e3bf5ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion templates/rabbitmq/rabbitmq-pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.rabbitmq.storage.pv_name -}}
{{- if .Values.rabbitmq.storage -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand All @@ -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 }}
3 changes: 2 additions & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
# storage_class_name: default
# size: 1Gi

0 comments on commit e3bf5ff

Please sign in to comment.