blob: aa9515b6b5b5d38d2daf6d9bdc21798459a6c1e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{{- if and .Values.certpersistence.enabled (not .Values.certpersistence.existingClaim) -}}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ include "common.fullname" .}}-pvc-certs
namespace: {{ include "common.namespace" . }}
labels:
app: {{ include "common.name" . }}-pvc-certs
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- if .Values.certpersistence.annotations }}
annotations:
{{ toYaml .Values.certpersistence.annotations | indent 4 }}
{{- end }}
spec:
selector:
matchLabels:
app: {{ include "common.name" . }}-pv-certs
accessModes:
- {{ .Values.certpersistence.accessMode }}
resources:
requests:
storage: {{ .Values.certpersistence.size }}
{{- if .Values.certpersistence.storageClass }}
{{- if (eq "-" .Values.certpersistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.certpersistence.storageClass }}"
{{- end }}
{{- end }}
{{- end -}}
|