allow nil internal config

This commit is contained in:
nicktrn
2025-06-24 00:48:24 +01:00
parent 3f4c4ceac9
commit 4fa4cfb141
+2
View File
@@ -155,6 +155,7 @@ spec:
secretKeyRef:
name: {{ include "trigger-v4.secretsName" . }}
key: object-store-secret-access-key
{{- if and .Values.webapp.internal .Values.webapp.internal.otel }}
{{- if .Values.webapp.internal.otel.trace.exporterUrl }}
- name: INTERNAL_OTEL_TRACE_EXPORTER_URL
value: {{ .Values.webapp.internal.otel.trace.exporterUrl | quote }}
@@ -187,6 +188,7 @@ spec:
value: {{ .Values.webapp.internal.otel.metric.exporterEnabled | quote }}
- name: INTERNAL_OTEL_METRIC_EXPORTER_INTERVAL_MS
value: {{ .Values.webapp.internal.otel.metric.exporterIntervalMs | quote }}
{{- end }}
{{- if .Values.webapp.clickhouse.enabled }}
- name: CLICKHOUSE_URL
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 }}