blob: fc148f63d6922faaa314ab601e81b7025c204b39 [file] [log] [blame]
Sylvain Desbureaux7a235752019-11-28 15:01:45 +01001{{- if ne 0 (int .Values.global.aaf.hello.replicas) }}
Instrumental0c7bc942019-08-06 16:36:13 -05002{{- 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##
22kind: PersistentVolumeClaim
23apiVersion: v1
24metadata:
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010025 name: {{ include "common.release" . }}-aaf-hello-pvc
Instrumental0c7bc942019-08-06 16:36:13 -050026 namespace: {{ include "common.namespace" . }}
27 labels:
28 app: {{ include "common.name" . }}
29 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010030 release: "{{ include "common.release" . }}"
Instrumental0c7bc942019-08-06 16:36:13 -050031 heritage: "{{ .Release.Service }}"
32{{- if .Values.persistence.annotations }}
33 annotations:
34{{ toYaml .Values.persistence.annotations | indent 4 }}
35{{- end }}
36spec:
Instrumental0c7bc942019-08-06 16:36:13 -050037 accessModes:
38 - {{ .Values.persistence.config.accessMode }}
39 resources:
40 requests:
41 storage: {{ .Values.persistence.config.size }}
Sylvain Desbureaux7a235752019-11-28 15:01:45 +010042 storageClassName: {{ include "common.storageClass" . }}
Instrumental0c7bc942019-08-06 16:36:13 -050043{{- end -}}
Sylvain Desbureaux7a235752019-11-28 15:01:45 +010044{{- end -}}