1 {{- if ne 0 (int .Values.global.aaf.hello.replicas) }}
2 {{- if and .Values.global.persistence.enabled (not .Values.persistence.existingClaim) -}}
3 {{- if eq "True" (include "common.needPV" .) -}}
5 ## ============LICENSE_START====================================================
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
14 ## http://www.apache.org/licenses/LICENSE-2.0
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====================================================
24 kind: PersistentVolume
27 name: {{ .Release.Name }}-aaf-hello-pv
28 namespace: {{ include "common.namespace" . }}
30 app: {{ .Chart.Name }}-hello
31 chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
32 release: "{{ .Release.Name }}"
33 heritage: "{{ .Release.Service }}"
34 name: {{ include "common.fullname" . }}
37 storage: {{ .Values.persistence.config.size}}
39 - {{ .Values.persistence.config.accessMode }}
40 persistentVolumeReclaimPolicy: {{ .Values.persistence.config.volumeReclaimPolicy }}
42 path: {{ .Values.global.persistence.mountPath | default .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }}
43 storageClassName: "{{ include "common.fullname" . }}-data"