From 1afe045a53f37d02525268f0069412fae61c9f02 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 | 16 ++++++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index 8c568c20c..f1e1480f0 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.labels}} + - name: OTEL_LABELS + value: '{{ .Values.labels }}' + {{- end}} resources: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: diff --git a/chart/values.yaml b/chart/values.yaml index 1a29be8a5..2e8fb3a0d 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,14 @@ 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: "" + db: runMigrations: true embedded: @@ -89,15 +97,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