Skip to content

Commit

Permalink
tenant id in chart
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed May 13, 2024
1 parent 22d3739 commit afb0f2b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -90,6 +96,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:
Expand Down
9 changes: 9 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ configAnalysisRetentionDays: 60
scrapeRuleConfigMaps:
- config-db-rules

otel:
# OpenTelemetry gRPC collector endpoint in host:port format
collector: ""
serviceName: config-db

# tenant details to be used in the traces
tenant:
id: ""

db:
runMigrations: true
embedded:
Expand Down

0 comments on commit afb0f2b

Please sign in to comment.