Skip to content

Commit

Permalink
Updating PVC storageClass logic
Browse files Browse the repository at this point in the history
  • Loading branch information
clee231 committed Oct 24, 2023
1 parent 9b4b6ec commit 44fe78d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/marketplace/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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.1.1
version: 0.1.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
Expand Down
8 changes: 2 additions & 6 deletions charts/marketplace/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ spec:
resources:
requests:
storage: {{ .Values.persistence.size | quote }}
{{- if .Values.persistence.storageClass }}
{{- if (eq "-" .Values.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.persistence.storageClass }}"
{{- end }}
{{- with .Values.persistence.storageClass }}
storageClassName: {{ . | quote }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/marketplace/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ persistence:
existingClaim: ""
annotations: {}
size: 8Gi
storageClass: "-"
storageClass: ""
accessModes:
- ReadWriteOnce

Expand Down

0 comments on commit 44fe78d

Please sign in to comment.