create K8S cluster by TOSCA
[oom.git] / kubernetes / policy / templates / policy-pv-pvc.yaml
index dda9820..5dc0c61 100644 (file)
@@ -1,10 +1,11 @@
+#{{ if not .Values.disablePolicyMariadb }}
 apiVersion: v1
 kind: PersistentVolume
 metadata:
-  name: policy-db
+  name: "{{ .Values.nsPrefix }}-policy-db"
   namespace: "{{ .Values.nsPrefix }}-policy"
   labels:
-    name: policy-db
+    name: "{{ .Values.nsPrefix }}-policy-db"
 spec:
   capacity:
     storage: 2Gi
@@ -27,4 +28,5 @@ spec:
       storage: 2Gi
   selector:
     matchLabels:
-      name: policy-db
+      name: "{{ .Values.nsPrefix }}-policy-db"
+#{{ end }}
\ No newline at end of file