first commit
This commit is contained in:
26
templates/apiportal/storage/storage-class.yaml
Normal file
26
templates/apiportal/storage/storage-class.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
{{ if .Values.apiportal.enabled }}
|
||||
{{- range .Values.apiportal.storage.classes }}
|
||||
---
|
||||
kind: StorageClass
|
||||
apiVersion: storage.k8s.io/v1
|
||||
metadata:
|
||||
name: {{ .name | lower }}
|
||||
labels:
|
||||
{{- include "gateway.labels" $ | nindent 4 }}
|
||||
provisioner: {{ .provisioner | quote }}
|
||||
{{- with .allowVolumeExpansion }}
|
||||
allowVolumeExpansion: {{ . }}
|
||||
{{- end }}
|
||||
{{- with .parameters }}
|
||||
parameters: {{- tpl (toYaml .) $ | nindent 2 }}
|
||||
{{- end }}
|
||||
{{- with .mountOptions }}
|
||||
mountOptions: {{- toYaml . | nindent 2 }}
|
||||
{{- end }}
|
||||
{{- if eq (default $.Values.global.storage.provisioningType $.Values.apiportal.storage.provisioningType) "dynamic" }}
|
||||
volumeBindingMode: WaitForFirstConsumer
|
||||
{{- else }}
|
||||
volumeBindingMode: Immediate
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user