[ONAP-wide] Replace .Release.Name with common.release
[oom.git] / kubernetes / aaf / charts / aaf-hello / templates / aaf-hello-pv.yaml
index af82689..7fa7407 100644 (file)
 kind: PersistentVolume
 apiVersion: v1
 metadata:
-  name: {{ .Release.Name }}-aaf-hello-pv
+  name: {{ include "common.release" . }}-aaf-hello-pv
   namespace: {{ include "common.namespace" . }}
   labels:
     app: {{ .Chart.Name  }}-hello
     chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
-    release: "{{ .Release.Name }}"
+    release: {{ include "common.release" . }}
     heritage: "{{ .Release.Service }}"
     name: {{ include "common.fullname" . }}
 spec:
@@ -39,7 +39,7 @@ spec:
     - {{ .Values.persistence.config.accessMode }}
   persistentVolumeReclaimPolicy: {{ .Values.persistence.config.volumeReclaimPolicy }}
   hostPath:
-    path: {{ .Values.global.persistence.mountPath | default .Values.persistence.mountPath }}/{{ .Release.Name }}/{{ .Values.persistence.mountSubPath }}
+    path: {{ .Values.global.persistence.mountPath | default .Values.persistence.mountPath }}/{{ include "common.release" . }}/{{ .Values.persistence.mountSubPath }}
   storageClassName: "{{ include "common.fullname" . }}-data"
 {{- end -}}
 {{- end -}}