Code Review
/
pti
/
o2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Update chart to support the deployment without persistent database"
[pti/o2.git]
/
charts
/
templates
/
deployment.yaml
diff --git
a/charts/templates/deployment.yaml
b/charts/templates/deployment.yaml
index
962c1d5
..
19d7431
100644
(file)
--- a/
charts/templates/deployment.yaml
+++ b/
charts/templates/deployment.yaml
@@
-64,8
+64,10
@@
spec:
volumeMounts:
- name: scripts
mountPath: /opt
volumeMounts:
- name: scripts
mountPath: /opt
+ {{- if .Values.db.persistence }}
- name: db-pv
mountPath: /var/lib/postgresql/data
- name: db-pv
mountPath: /var/lib/postgresql/data
+ {{- end }}
- name: redis
image: "{{ .Values.o2ims.images.tags.redis }}"
ports:
- name: redis
image: "{{ .Values.o2ims.images.tags.redis }}"
ports:
@@
-230,9
+232,11
@@
spec:
- configMap:
name: {{ .Chart.Name }}-smocacrt
name: smocacrt
- configMap:
name: {{ .Chart.Name }}-smocacrt
name: smocacrt
+ {{- if .Values.db.persistence }}
- name: db-pv
persistentVolumeClaim:
claimName: {{ .Chart.Name }}-db-pv
- name: db-pv
persistentVolumeClaim:
claimName: {{ .Chart.Name }}-db-pv
+ {{- end }}
{{- if default false .Values.o2ims.useHostCert }}
- name: ca-certs
hostPath:
{{- if default false .Values.o2ims.useHostCert }}
- name: ca-certs
hostPath: