diff options
author | 2021-06-15 14:59:05 +0000 | |
---|---|---|
committer | 2021-06-15 14:59:05 +0000 | |
commit | c886615fbe318871bcd0fdd5dd79c663fb93d14f (patch) | |
tree | 7b37762766a1b982ac705b0c27f8229b0e994df1 /kubernetes/a1policymanagement/templates/pv.yaml | |
parent | 758be4f3fe0f022b9e558179257cd66cb3ddeb46 (diff) | |
parent | 746ff37c26277159584e2ad9b01b55a8f70fbd71 (diff) |
Merge "[PMS] Persistent storage of policies and type definitions"
Diffstat (limited to 'kubernetes/a1policymanagement/templates/pv.yaml')
-rw-r--r-- | kubernetes/a1policymanagement/templates/pv.yaml | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/kubernetes/a1policymanagement/templates/pv.yaml b/kubernetes/a1policymanagement/templates/pv.yaml index 904d863b03..0a3cbdeff5 100644 --- a/kubernetes/a1policymanagement/templates/pv.yaml +++ b/kubernetes/a1policymanagement/templates/pv.yaml @@ -16,27 +16,5 @@ ################################################################################ */}} -{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}} -{{- if not .Values.persistence.storageClass -}} -kind: PersistentVolume -apiVersion: v1 -metadata: - name: {{ include "common.fullname" . }}-data - namespace: {{ include "common.namespace" . }} - labels: - app: {{ include "common.name" . }} - chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" - release: "{{ include "common.release" . }}" - heritage: "{{ .Release.Service }}" - name: {{ include "common.fullname" . }} -spec: - capacity: - storage: {{ .Values.persistence.size}} - accessModes: - - {{ .Values.persistence.accessMode }} - persistentVolumeReclaimPolicy: {{ .Values.persistence.volumeReclaimPolicy }} - storageClassName: "{{ include "common.fullname" . }}-data" - hostPath: - path: {{ .Values.persistence.mountPath }}/{{ include "common.release" . }}/{{ .Values.persistence.mountSubPath }}/app -{{- end -}} -{{- end -}} + +{{ include "common.replicaPV" . }} |