Skip to content

Commit

Permalink
fix: add access mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mosoriob committed Aug 29, 2024
1 parent f6644ab commit 63e3f45
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions charts/mint/templates/pvc-ensemble-manager.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{{- if and .Values.components.ensemble_manager.enabled and .Values.components.ensemble_manager.persistence.enabled (not .Values.components.ensemble_manager.persistence.existingClaim) }}

{{- if and .Values.components.ensemble_manager.enabled }}
{{- if and .Values.components.ensemble_manager.persistence.enabled (not .Values.components.ensemble_manager.persistence.existingClaim) }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
Expand All @@ -20,7 +22,7 @@ spec:
- {{ . | quote }}
{{- end }}
{{- else }}
- {{ .Values.components.ensemble_manager.persistence.accessMode | quote }}
- {{ .Values.components.ensemble_manager.persistence.accessModes | quote }}
{{- end }}
resources:
requests:
Expand All @@ -30,3 +32,4 @@ spec:
dataSource: {{- include "common.tplvalues.render" (dict "value" .Values.components.ensemble_manager.persistence.dataSource "context" $) | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 63e3f45

Please sign in to comment.