3030 serviceAccountName : {{ include "observability.serviceAccountName" . }}
3131 securityContext :
3232 {{- toYaml .Values.observability_ui.podSecurityContext | nindent 8 }}
33- {{- if or .Values.observability_ui.environmentJson .Values.observability_ui.manifestJson }}
34- volumes :
35- - name : {{ include "observability.observability_ui.name" . }}-configmap-volume
36- configMap :
37- name : {{ include "observability.observability_ui.name" . }}-configmap
38- items :
39- {{- if .Values.observability_ui.environmentJson }}
40- - key : " environment.json"
41- path : " environment.json"
42- {{- end }}
43- {{- if .Values.observability_ui.manifestJson }}
44- - key : " module-federation.manifest.json"
45- path : " module-federation.manifest.json"
46- {{- end }}
47- {{- end }}
4833 containers :
4934 - name : {{ include "observability.observability_ui.name" . }}
5035 securityContext :
@@ -58,31 +43,21 @@ spec:
5843 resources :
5944 {{- toYaml .Values.observability_ui.resources | nindent 12 }}
6045 env :
61- {{- if .Values.observability_api.hostname }}
46+ - name : OBSERVABILITY_API_BASE_URL
47+ value : {{ .Values.observability_ui.api_base_url | quote }}
48+ - name : OBSERVABILITY_AUTH_METHOD
49+ value : {{ .Values.observability_ui.auth_method | quote }}
50+ {{- if .Values.observability_ui.hostname }}
6251 - name : OBSERVABILITY_API_HOSTNAME
6352 value : {{ tpl .Values.observability_api.hostname . | quote }}
6453 {{- end }}
6554 {{- if not (quote .Values.observability_ui.csp_extra | empty) }}
6655 - name : OBSERVABILITY_CSP_EXTRA
6756 value : {{ tpl .Values.observability_ui.csp_extra . | quote }}
6857 {{- end }}
69- {{- if or .Values.observability_ui.environmentJson .Values.observability_ui.manifestJson .Values.extraVolumeMounts }}
58+ {{- with .Values.extraVolumeMounts }}
7059 volumeMounts :
71- {{- if .Values.observability_ui.environmentJson }}
72- - mountPath : /observability_ui/shell/environments/environment.json
73- name : {{ include "observability.observability_ui.name" . }}-configmap-volume
74- readOnly : true
75- subPath : environment.json
76- {{- end }}
77- {{- if .Values.observability_ui.manifestJson }}
78- - mountPath : /observability_ui/shell/assets/module-federation.manifest.json
79- name : {{ include "observability.observability_ui.name" . }}-configmap-volume
80- readOnly : true
81- subPath : module-federation.manifest.json
82- {{- end }}
83- {{- with .Values.extraVolumeMounts }}
8460 {{ toYaml . | nindent 12 }}
85- {{- end }}
8661 {{- end }}
8762 {{- with .Values.extraVolumes }}
8863 volumes :
@@ -122,21 +97,4 @@ spec:
12297 {{- end }}
12398 selector :
12499 {{- include "observability.observability_ui.selectorLabels" . | nindent 4 }}
125- {{- if or .Values.observability_ui.environmentJson .Values.observability_ui.manifestJson }}
126- ---
127- apiVersion : v1
128- kind : ConfigMap
129- metadata :
130- name : {{ include "observability.observability_ui.name" . }}-configmap
131- labels :
132- {{- include "observability.labels" . | nindent 4 }}
133- {{- include "observability.observability_ui.selectorLabels" . | nindent 4 }}
134- data :
135- {{- if .Values.observability_ui.environmentJson }}
136- environment.json : {{ .Values.observability_ui.environmentJson | toPrettyJson | quote }}
137- {{- end }}
138- {{- if .Values.observability_ui.manifestJson }}
139- module-federation.manifest.json : {{ .Values.observability_ui.manifestJson | toPrettyJson | quote }}
140- {{- end }}
141- {{- end }}
142100{{- end }}
0 commit comments