Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[EXTAPI] Deploy macromode and E2E slicing code changes
[oom.git]
/
kubernetes
/
sdc
/
charts
/
sdc-onboarding-be
/
templates
/
pv.yaml
diff --git
a/kubernetes/sdc/charts/sdc-onboarding-be/templates/pv.yaml
b/kubernetes/sdc/charts/sdc-onboarding-be/templates/pv.yaml
index
184728f
..
bc110c3
100644
(file)
--- a/
kubernetes/sdc/charts/sdc-onboarding-be/templates/pv.yaml
+++ b/
kubernetes/sdc/charts/sdc-onboarding-be/templates/pv.yaml
@@
-1,5
+1,7
@@
{{/*
{{/*
-# Copyright © 2017 Amdocs, Bell Canada
+# ================================================================================
+# Copyright (C) 2019, Nordix Foundation. All rights reserved.
+# ================================================================================
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@
-13,8
+15,8
@@
# See the License for the specific language governing permissions and
# limitations under the License.
*/}}
# See the License for the specific language governing permissions and
# limitations under the License.
*/}}
-
-{{- if
and .Values.persistence.enabled (not .Values.persistence.existingClaim
) -}}
+{{- if and .Values.persistence.enabled (not .Values.cert.persistence.existingClaim) -}}
+{{- if
eq "True" (include "common.needPV" .
) -}}
kind: PersistentVolume
apiVersion: v1
metadata:
kind: PersistentVolume
apiVersion: v1
metadata:
@@
-23,15
+25,17
@@
metadata:
labels:
app: {{ include "common.name" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
labels:
app: {{ include "common.name" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
- release: "{{
.Release.Name
}}"
+ release: "{{
include "common.release" .
}}"
heritage: "{{ .Release.Service }}"
name: {{ include "common.fullname" . }}
spec:
capacity:
heritage: "{{ .Release.Service }}"
name: {{ include "common.fullname" . }}
spec:
capacity:
- storage: {{ .Values.persistence.size}}
+ storage: {{ .Values.
cert.
persistence.size}}
accessModes:
accessModes:
- - {{ .Values.persistence.accessMode }}
- persistentVolumeReclaimPolicy: {{ .Values.persistence.volumeReclaimPolicy }}
+ - {{ .Values.cert.persistence.accessMode }}
+ persistentVolumeReclaimPolicy: {{ .Values.cert.persistence.volumeReclaimPolicy }}
+ storageClassName: "{{ include "common.fullname" . }}-data"
hostPath:
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.cert.persistence.mountSubPath }}
+{{- end -}}
{{- end -}}
{{- end -}}