summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdnc/templates/pvc.yaml
diff options
context:
space:
mode:
authorAlexis de Talhouƫt <adetalhouet89@gmail.com>2019-03-13 15:53:31 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-13 15:53:31 +0000
commit5b0b0191e1e4820d7cf9c2ae5f70c6504379e671 (patch)
tree6d6254df597e696641baf0f4bf7dd3e8244d6d89 /kubernetes/sdnc/templates/pvc.yaml
parent623e0f619da41a1cd4de18b0ae61b32e1408eff0 (diff)
parent44cc1ac1943c68174efb44e4b60fb9c8fbe33903 (diff)
Merge "SDNC-660: Helm integration for Netconf over TLS"
Diffstat (limited to 'kubernetes/sdnc/templates/pvc.yaml')
-rw-r--r--kubernetes/sdnc/templates/pvc.yaml32
1 files changed, 32 insertions, 0 deletions
diff --git a/kubernetes/sdnc/templates/pvc.yaml b/kubernetes/sdnc/templates/pvc.yaml
new file mode 100644
index 0000000000..aa9515b6b5
--- /dev/null
+++ b/kubernetes/sdnc/templates/pvc.yaml
@@ -0,0 +1,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 -}} \ No newline at end of file