Skip to content

Commit

Permalink
feat(DMVP-4884): Added feature to have multiple PVCs
Browse files Browse the repository at this point in the history
  • Loading branch information
viktoryathegreat committed Aug 5, 2024
1 parent 85f589f commit 6f5c145
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions charts/base/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.1
version: 0.2.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.2.1"
appVersion: "0.2.2"
19 changes: 9 additions & 10 deletions charts/base/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{{- if .Values.storage -}}
{{- range .Values.storages }}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Values.storage.persistentVolumeClaimName | default (include "base.fullname" .) }}
name: {{ .name }}
labels:
{{- include "base.labels" . | nindent 4 }}
{{- if .Values.storage.keepPvc }}
{{- include "base.labels" $ | nindent 4 }}
{{- if .keepPvc }}
annotations:
"helm.sh/resource-policy": keep
"helm.sh/resource-policy": "keep"
{{- end }}
spec:
{{- with .Values.storage }}
accessModes:
{{- toYaml .accessModes | nindent 4 }}
volumeMode: {{ .volumeMode | default "Filesystem" }}
Expand All @@ -20,10 +20,9 @@ spec:
{{- if .className }}
storageClassName: {{ .className }}
{{- end }}
{{- end }}
{{ if .Values.storage.enableDataSource}}
{{- if .enableDataSource }}
dataSource:
kind: PersistentVolumeClaim
name: {{ .Values.storage.persistentVolumeClaimName | default (include "base.fullname" .) }}
{{- end }}
name: {{ .name }}
{{- end }}
{{- end }}

0 comments on commit 6f5c145

Please sign in to comment.