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