Files
truecharts/charts/library/common/templates/_pvc.tpl
T
Kjeld Schouten-LebbingandGitHub e3f5d51c6c Fixing privileged and supplementalgroup (#803)
* Enable permissive when using deviceList

* Cleanup the renovate bump

* restructure some overrides

* remove custom psc

* append subgroups based on gpu/device settings

* Fixing a bugs and adding some annotations

* fixing some bugs and add ingressList

* slight different var definition

* fix again

* bump minor version as features are added
2021-08-24 12:28:50 +02:00

17 lines
647 B
Smarty

{{/*
Renders the Persistent Volume Claim objects required by the chart.
*/}}
{{- define "common.pvc" -}}
{{- /* Generate pvc as required */ -}}
{{- range $index, $PVC := .Values.persistence }}
{{- if and $PVC.enabled (eq (default "pvc" $PVC.type) "pvc") (not $PVC.existingClaim) -}}
{{- $persistenceValues := $PVC -}}
{{- if not $persistenceValues.nameOverride -}}
{{- $_ := set $persistenceValues "nameOverride" $index -}}
{{- end -}}
{{- $_ := set $ "ObjectValues" (dict "persistence" $persistenceValues) -}}
{{- include "common.classes.pvc" $ | nindent 0 -}}
{{- end }}
{{- end }}
{{- end }}