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 8d01ebc commit 1afe045
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 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.labels}}
- name: OTEL_LABELS
value: '{{ .Values.labels }}'
{{- end}}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
Expand Down
16 changes: 12 additions & 4 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ global:
db:
connectionPooler:
enabled: false
secretKeyRef:
secretKeyRef:
name: mission-control-connection-pooler
key: DB_URL

Expand All @@ -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:
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 1afe045

Please sign in to comment.