X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=charts%2Ftemplates%2Fdeployment.yaml;h=19d743187fa0b76a1c4848879f60c06f7937fe2c;hb=face7ded891f079361dc37656a0fe3f54585d303;hp=a1e45822ffffb7f424a6213120e574f4df07c343;hpb=29fa27bb53e2b4ff89f8ef61d0885df776bc14b1;p=pti%2Fo2.git diff --git a/charts/templates/deployment.yaml b/charts/templates/deployment.yaml index a1e4582..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: @@ -190,6 +192,9 @@ spec: mountPath: /configs/server.key subPath: config.json readOnly: true + - name: smocacrt + mountPath: /configs/smoca.crt + subPath: config.json {{- if .Values.o2dms.helm_cli_enable }} - name: helmcli image: "{{ .Values.o2ims.images.tags.o2service }}" @@ -227,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: