From 3f065b2dbce93722cd29cfb6911d5faa82fb0e88 Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Mon, 13 May 2024 14:07:01 +0545 Subject: [PATCH] tenant id in chart --- chart/templates/deployment.yaml | 4 ++++ chart/values.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index 8c568c20c..a1d3e9319 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -90,6 +90,10 @@ spec: - name: UPSTREAM_PAGE_SIZE value: '{{ .Values.upstream.pageSize }}' {{- end}} + {{- if .Values.tenant.id}} + - name: OTEL_LABELS + value: '{{ .Values.tenant.id }}' + {{- end}} resources: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: diff --git a/chart/values.yaml b/chart/values.yaml index 1a29be8a5..4b6540828 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -30,6 +30,10 @@ configAnalysisRetentionDays: 60 scrapeRuleConfigMaps: - config-db-rules +# tenant details to be used in the traces +tenant: + id: "" + db: runMigrations: true embedded: