X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=smo-install%2Foran_oom%2Foru-app%2Ftemplates%2Fdeployment.yaml;h=d5df28e8b191270c8e0da205c9a4cac9483f424c;hb=7c43af18d5c739aadfd74942b0fa360869007332;hp=c3f5603a8ef7dce1b8f06909517cc318fe2b432f;hpb=93192c481948fb61fa3266afc4a65f2091ba4b5c;p=it%2Fdep.git diff --git a/smo-install/oran_oom/oru-app/templates/deployment.yaml b/smo-install/oran_oom/oru-app/templates/deployment.yaml index c3f5603a..d5df28e8 100644 --- a/smo-install/oran_oom/oru-app/templates/deployment.yaml +++ b/smo-install/oran_oom/oru-app/templates/deployment.yaml @@ -17,7 +17,11 @@ spec: name: oru-app release: {{ .Release.Name }} chart: {{ .Chart.Name }} - spec: + spec: + initContainers: + {{- if .Values.global.aafEnabled }} + {{ include "common.certInitializer.initContainer" . | indent 6 }} + {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}/{{ .Values.image.name}}:{{ .Values.image.tag }}" @@ -25,24 +29,33 @@ spec: tty: true stdin: true env: - - name: CURL_CA_BUNDLE - value: '' + - name: REQUESTS_CA_BUNDLE + value: "{{ .Values.conf.caCertificate }}" envFrom: - configMapRef: name: oru-app-configmapenv volumeMounts: - - name: oru-app-config-volume - subPath: o-ru-to-o-du-map.txt - mountPath: /usr/src/app/o-ru-to-o-du-map.txt + {{- if .Values.global.aafEnabled }} + {{ include "common.certInitializer.volumeMount" . | nindent 10 }} + {{- end }} + - name: oru-app-config-volume + subPath: o-ru-to-o-du-map.txt + mountPath: /usr/src/app/o-ru-to-o-du-map.txt securityContext: capabilities: add: - SYS_ADMIN - SYS_PTRACE - volumes: - - name: oru-app-config-volume - configMap: - name: oru-app-configmap - items: - - key: o-ru-to-o-du-map.txt - path: o-ru-to-o-du-map.txt + {{- if .Values.global.aafEnabled }} + serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . ) }} + {{- end }} + volumes: + {{- if .Values.global.aafEnabled }} + {{ include "common.certInitializer.volumes" . | nindent 6 }} + {{- end }} + - name: oru-app-config-volume + configMap: + name: oru-app-configmap + items: + - key: o-ru-to-o-du-map.txt + path: o-ru-to-o-du-map.txt