Sylvain Desbureaux | 7a23575 | 2019-11-28 15:01:45 +0100 | [diff] [blame] | 1 | {{- if ne 0 (int .Values.global.aaf.hello.replicas) }} |
Instrumental | 0c7bc94 | 2019-08-06 16:36:13 -0500 | [diff] [blame] | 2 | {{- if and .Values.global.persistence.enabled (not .Values.persistence.existingClaim) -}} |
Sylvain Desbureaux | 7a23575 | 2019-11-28 15:01:45 +0100 | [diff] [blame] | 3 | {{- if eq "True" (include "common.needPV" .) -}} |
Instrumental | 0c7bc94 | 2019-08-06 16:36:13 -0500 | [diff] [blame] | 4 | ######### |
| 5 | ## ============LICENSE_START==================================================== |
| 6 | ## org.onap.aaf |
| 7 | ## =========================================================================== |
| 8 | ## Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. |
| 9 | ## =========================================================================== |
| 10 | ## Licensed under the Apache License, Version 2.0 (the "License"); |
| 11 | ## you may not use this file except in compliance with the License. |
| 12 | ## You may obtain a copy of the License at |
| 13 | ## |
| 14 | ## http://www.apache.org/licenses/LICENSE-2.0 |
| 15 | ## |
| 16 | ## Unless required by applicable law or agreed to in writing, software |
| 17 | ## distributed under the License is distributed on an "AS IS" BASIS, |
| 18 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 19 | ## See the License for the specific language governing permissions and |
| 20 | ## limitations under the License. |
| 21 | ## ============LICENSE_END==================================================== |
| 22 | ## |
| 23 | |
| 24 | kind: PersistentVolume |
| 25 | apiVersion: v1 |
| 26 | metadata: |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 27 | name: {{ include "common.release" . }}-aaf-hello-pv |
Instrumental | 0c7bc94 | 2019-08-06 16:36:13 -0500 | [diff] [blame] | 28 | namespace: {{ include "common.namespace" . }} |
| 29 | labels: |
| 30 | app: {{ .Chart.Name }}-hello |
| 31 | chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 32 | release: {{ include "common.release" . }} |
Instrumental | 0c7bc94 | 2019-08-06 16:36:13 -0500 | [diff] [blame] | 33 | heritage: "{{ .Release.Service }}" |
| 34 | name: {{ include "common.fullname" . }} |
| 35 | spec: |
| 36 | capacity: |
ChrisC | ec86a53 | 2020-03-19 15:53:31 -0500 | [diff] [blame^] | 37 | storage: {{ .Values.persistence.size}} |
Instrumental | 0c7bc94 | 2019-08-06 16:36:13 -0500 | [diff] [blame] | 38 | accessModes: |
ChrisC | ec86a53 | 2020-03-19 15:53:31 -0500 | [diff] [blame^] | 39 | - {{ .Values.persistence.accessMode }} |
| 40 | persistentVolumeReclaimPolicy: {{ .Values.persistence.volumeReclaimPolicy }} |
Instrumental | 0c7bc94 | 2019-08-06 16:36:13 -0500 | [diff] [blame] | 41 | hostPath: |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 42 | path: {{ .Values.global.persistence.mountPath | default .Values.persistence.mountPath }}/{{ include "common.release" . }}/{{ .Values.persistence.mountSubPath }} |
Sylvain Desbureaux | 7a23575 | 2019-11-28 15:01:45 +0100 | [diff] [blame] | 43 | storageClassName: "{{ include "common.fullname" . }}-data" |
| 44 | {{- end -}} |
| 45 | {{- end -}} |
Instrumental | 0c7bc94 | 2019-08-06 16:36:13 -0500 | [diff] [blame] | 46 | {{- end -}} |