From 537add477c9cb0a595697ea357f2b7845b952563 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 | 10 ++++++++++ chart/values.yaml | 15 +++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index 8c568c20..94b0d3af 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -69,6 +69,12 @@ spec: {{- if .Values.db.runMigrations}} - --db-migrations {{- end}} + {{- if (tpl .Values.otel.collector .) }} + - --otel-collector-url={{ tpl .Values.otel.collector . | default "" }} + {{- end }} + {{- if (tpl .Values.otel.serviceName .) }} + - --otel-service-name={{ tpl .Values.otel.serviceName . | default "config-db" }} + {{- end }} {{- if .Values.upstream.enabled}} envFrom: - secretRef: @@ -90,6 +96,10 @@ spec: - name: UPSTREAM_PAGE_SIZE value: '{{ .Values.upstream.pageSize }}' {{- end}} + {{- if .Values.otel.labels}} + - name: OTEL_LABELS + value: '{{ .Values.otel.labels }}' + {{- end}} resources: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: diff --git a/chart/values.yaml b/chart/values.yaml index 1a29be8a..bd011a30 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -5,7 +5,7 @@ global: db: connectionPooler: enabled: false - secretKeyRef: + secretKeyRef: name: mission-control-connection-pooler key: DB_URL @@ -30,6 +30,13 @@ configAnalysisRetentionDays: 60 scrapeRuleConfigMaps: - config-db-rules +otel: + # OpenTelemetry gRPC collector endpoint in host:port format + collector: '' + serviceName: config-db + # labels in "a=b,c=d" format + labels: "a=b,c=d" + db: runMigrations: true embedded: @@ -89,15 +96,15 @@ serviceAccount: rbac: # Whether to create cluster-wide or namespaced roles clusterRole: true - + # for secret management with valueFrom tokenRequest: true secrets: true configmaps: true - + # for use with kubernetes resource lookups readAll: true - + # for kubernetesFile lookups exec: true