Skip to content

Commit 4fa4cfb

Browse files
committed
allow nil internal config
1 parent 3f4c4ce commit 4fa4cfb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hosting/k8s/helm/templates/webapp.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ spec:
155155
secretKeyRef:
156156
name: {{ include "trigger-v4.secretsName" . }}
157157
key: object-store-secret-access-key
158+
{{- if and .Values.webapp.internal .Values.webapp.internal.otel }}
158159
{{- if .Values.webapp.internal.otel.trace.exporterUrl }}
159160
- name: INTERNAL_OTEL_TRACE_EXPORTER_URL
160161
value: {{ .Values.webapp.internal.otel.trace.exporterUrl | quote }}
@@ -187,6 +188,7 @@ spec:
187188
value: {{ .Values.webapp.internal.otel.metric.exporterEnabled | quote }}
188189
- name: INTERNAL_OTEL_METRIC_EXPORTER_INTERVAL_MS
189190
value: {{ .Values.webapp.internal.otel.metric.exporterIntervalMs | quote }}
191+
{{- end }}
190192
{{- if .Values.webapp.clickhouse.enabled }}
191193
- name: CLICKHOUSE_URL
192194
value: {{ if .Values.clickhouse.external }}{{ .Values.clickhouse.externalConnection.httpUrl | quote }}{{ else }}"http://{{ .Values.clickhouse.auth.adminUser }}:{{ .Values.clickhouse.auth.adminPassword }}@{{ include "trigger-v4.fullname" . }}-clickhouse:{{ .Values.clickhouse.service.ports.http }}"{{ end }}

0 commit comments

Comments
 (0)