Skip to content

Commit

Permalink
allow for all kind of storageClassName options
Browse files Browse the repository at this point in the history
  • Loading branch information
edevosc2c committed May 6, 2024
1 parent 67b0874 commit 655c4cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apache-nas/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: apache-nas
description: A Helm chart for deploying a Apache-httpd server
type: application
version: 0.3.4
version: 0.3.5
appVersion: "1.16.0"
7 changes: 4 additions & 3 deletions apache-nas/templates/apache-nas-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ spec:
{{- range .Values.nas.volume.accessModes }}
- {{ . | quote }}
{{- end }}
{{- if .Values.nas.volume.storage_class_name }}
storageClassName: {{ .Values.nas.volume.storage_class_name }}
{{- else }}
# disable automatic provisioning
{{- if (eq "-" .Values.nas.volume.storage_class_name) }}
storageClassName: ""
{{- else if .Values.nas.volume.storage_class_name }}
storageClassName: {{ .Values.nas.volume.storage_class_name }}
{{- end }}
{{- if .Values.nas.volume.pv_name }}
volumeName: {{ .Values.nas.volume.pv_name }}
Expand Down
2 changes: 1 addition & 1 deletion apache-nas/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ nas:
volume:
#pv_name: c2c-com-apache-nas-data
pvc_name: apache-nas-data
#storage_class_name: local
#storage_class_name: local or "-" for empty storageClassName
storage_size: 5Gi
accessModes:
- ReadWriteOnce
Expand Down

0 comments on commit 655c4cf

Please sign in to comment.