X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=charts%2Ftemplates%2Fdeployment.yaml;fp=charts%2Ftemplates%2Fdeployment.yaml;h=19d743187fa0b76a1c4848879f60c06f7937fe2c;hb=6be44fb91ba404cb50e714a5ca112789b3f7b23c;hp=962c1d569e9da90edc7a09a122e26e8bb3428cd5;hpb=874ff786f1180878d74de7c4d85034247703112b;p=pti%2Fo2.git diff --git a/charts/templates/deployment.yaml b/charts/templates/deployment.yaml index 962c1d5..19d7431 100644 --- a/charts/templates/deployment.yaml +++ b/charts/templates/deployment.yaml @@ -64,8 +64,10 @@ spec: volumeMounts: - name: scripts mountPath: /opt + {{- if .Values.db.persistence }} - name: db-pv mountPath: /var/lib/postgresql/data + {{- end }} - name: redis image: "{{ .Values.o2ims.images.tags.redis }}" ports: @@ -230,9 +232,11 @@ spec: - configMap: name: {{ .Chart.Name }}-smocacrt name: smocacrt + {{- if .Values.db.persistence }} - name: db-pv persistentVolumeClaim: claimName: {{ .Chart.Name }}-db-pv + {{- end }} {{- if default false .Values.o2ims.useHostCert }} - name: ca-certs hostPath: