mirror of https://github.com/helm/helm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
613 B
23 lines
613 B
{{- define "common.volume.configMap" -}}
|
|
{{- $name := index . 0 -}}
|
|
{{- $configMapName := index . 1 -}}
|
|
|
|
name: {{ $name }}
|
|
configMap:
|
|
name: {{ $configMapName }}
|
|
{{- end -}}
|
|
|
|
{{- define "common.volume.pvc" -}}
|
|
{{- $name := index . 0 -}}
|
|
{{- $claimName := index . 1 -}}
|
|
{{- $persistence := index . 2 -}}
|
|
|
|
name: {{ $name }}
|
|
{{- if $persistence.enabled }}
|
|
persistentVolumeClaim:
|
|
claimName: {{ $persistence.existingClaim | default $claimName }}
|
|
{{- else }}
|
|
emptyDir: {}
|
|
{{- end -}}
|
|
{{- end -}}
|