Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove redundant Ingress service config
[oom.git]
/
kubernetes
/
vfc
/
charts
/
vfc-catalog
/
templates
/
pv.yaml
diff --git
a/kubernetes/vfc/charts/vfc-catalog/templates/pv.yaml
b/kubernetes/vfc/charts/vfc-catalog/templates/pv.yaml
index
d1e1b04
..
d672025
100644
(file)
--- a/
kubernetes/vfc/charts/vfc-catalog/templates/pv.yaml
+++ b/
kubernetes/vfc/charts/vfc-catalog/templates/pv.yaml
@@
-14,6
+14,7
@@
# limitations under the License.
*/}}
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}}
# limitations under the License.
*/}}
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}}
+{{- if eq "True" (include "common.needPV" .) -}}
kind: PersistentVolume
apiVersion: v1
metadata:
kind: PersistentVolume
apiVersion: v1
metadata:
@@
-22,7
+23,7
@@
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:
heritage: "{{ .Release.Service }}"
name: {{ include "common.fullname" . }}
spec:
@@
-31,6
+32,8
@@
spec:
accessModes:
- {{ .Values.persistence.accessMode }}
persistentVolumeReclaimPolicy: {{ .Values.persistence.volumeReclaimPolicy }}
accessModes:
- {{ .Values.persistence.accessMode }}
persistentVolumeReclaimPolicy: {{ .Values.persistence.volumeReclaimPolicy }}
+ storageClassName: "{{ include "common.fullname" . }}-data"
hostPath:
hostPath:
- path: {{ .Values.global.persistence.mountPath | default .Values.persistence.mountPath }}/{{
.Release.Name
}}/{{ .Values.persistence.mountSubPath }}
-{{- end -}}
\ No newline at end of file
+ path: {{ .Values.global.persistence.mountPath | default .Values.persistence.mountPath }}/{{
include "common.release" .
}}/{{ .Values.persistence.mountSubPath }}
+{{- end -}}
+{{- end -}}