Skip to content

Commit

Permalink
tempo: Add global.extraEnv and global.extraEnvFrom
Browse files Browse the repository at this point in the history
  • Loading branch information
pando85 committed Oct 19, 2023
1 parent 5c98c06 commit f5f6519
Show file tree
Hide file tree
Showing 9 changed files with 121 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,20 @@ spec:
name: http-metrics
- containerPort: 7946
name: http-memberlist
{{- with .Values.compactor.extraEnv }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.compactor.extraEnvFrom }}
{{- with .Values.global.extraEnv }}
{{ toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.compactor.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.global.extraEnvFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.compactor.extraEnvFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.compactor.resources | nindent 12 }}
{{- with .Values.tempo.securityContext }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,20 @@ spec:
name: opencensus
protocol: TCP
{{- end }}
{{- with .Values.distributor.extraEnv }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.distributor.extraEnvFrom }}
{{- with .Values.global.extraEnv }}
{{ toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.distributor.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.global.extraEnvFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.distributor.extraEnvFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
readinessProbe:
{{- toYaml .Values.tempo.readinessProbe | nindent 12 }}
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,20 @@ spec:
ports:
- containerPort: 3100
name: http-metrics
{{- with .Values.enterpriseFederationFrontend.extraEnv }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.enterpriseFederationFrontend.extraEnvFrom }}
{{- with .Values.global.extraEnv }}
{{ toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.enterpriseFederationFrontend.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.global.extraEnvFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.enterpriseFederationFrontend.extraEnvFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.enterpriseFederationFrontend.resources | nindent 12 }}
{{- with .Values.tempo.securityContext }}
Expand Down Expand Up @@ -129,4 +135,4 @@ spec:
{{- with .Values.enterpriseFederationFrontend.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- end }}
18 changes: 12 additions & 6 deletions charts/tempo-distributed/templates/gateway/deployment-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,20 @@ spec:
- name: http-metrics
containerPort: 8080
protocol: TCP
{{- with .Values.gateway.extraEnv }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.gateway.extraEnvFrom }}
{{- with .Values.global.extraEnv }}
{{ toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.gateway.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.global.extraEnvFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.gateway.extraEnvFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
readinessProbe:
{{- toYaml .Values.gateway.readinessProbe | nindent 12 }}
volumeMounts:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,20 @@ spec:
ports:
- containerPort: 11211
name: client
{{- with .Values.memcached.extraEnv }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.memcached.extraEnvFrom }}
{{- with .Values.global.extraEnv }}
{{ toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.memcached.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.global.extraEnvFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.memcached.extraEnvFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.memcached.resources | nindent 12 }}
{{- with .Values.tempo.securityContext }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,20 @@ spec:
- name: {{ .name | quote }}
containerPort: {{ .port }}
{{- end }}
{{- with .Values.metricsGenerator.extraEnv }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.metricsGenerator.extraEnvFrom }}
{{- with .Values.global.extraEnv }}
{{ toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.metricsGenerator.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.global.extraEnvFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.metricsGenerator.extraEnvFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
readinessProbe:
{{- toYaml .Values.tempo.readinessProbe | nindent 12 }}
resources:
Expand Down
18 changes: 12 additions & 6 deletions charts/tempo-distributed/templates/querier/deployment-querier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,20 @@ spec:
protocol: TCP
- containerPort: 3100
name: http-metrics
{{- with .Values.querier.extraEnv }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.querier.extraEnvFrom }}
{{- with .Values.global.extraEnv }}
{{ toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.querier.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.global.extraEnvFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.querier.extraEnvFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.querier.resources | nindent 12 }}
{{- with .Values.tempo.securityContext }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,20 @@ spec:
name: http-metrics
- containerPort: 9095
name: grpc
{{- with .Values.queryFrontend.extraEnv }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.queryFrontend.extraEnvFrom }}
{{- with .Values.global.extraEnv }}
{{ toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.queryFrontend.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.global.extraEnvFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.queryFrontend.extraEnvFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.queryFrontend.resources | nindent 12 }}
{{- with .Values.tempo.securityContext }}
Expand Down Expand Up @@ -116,14 +122,20 @@ spec:
name: jaeger-ui
- containerPort: 16687
name: jaeger-metrics
{{- with .Values.queryFrontend.query.extraEnv }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.queryFrontend.query.extraEnvFrom }}
{{- with .Values.global.extraEnv }}
{{ toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.queryFrontend.query.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.global.extraEnvFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.queryFrontend.query.extraEnvFrom }}
{{- toYaml . | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.queryFrontend.query.resources | nindent 12 }}
{{- with .Values.tempo.securityContext }}
Expand Down
12 changes: 12 additions & 0 deletions charts/tempo-distributed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ global:
dnsService: 'kube-dns'
# -- configures DNS service namespace
dnsNamespace: 'kube-system'
# -- Common environment variables to add to all pods directly managed by this chart.
# scope: admin-api, compactor, distributor, enterprise-gateway, federation-frontend, gateway, memcached, querier, query-frontend, tokengen-job
extraEnv: []

# -- Common source of environment injections to add to all pods directly managed by this chart.
# scope: admin-api, compactor, distributor, enterprise-gateway, federation-frontend, gateway, memcached, querier, query-frontend, tokengen-job
# For example to inject values from a Secret, use:
# extraEnvFrom:
# - secretRef:
# name: mysecret
extraEnvFrom: []

fullnameOverride: ''
# fullnameOverride: tempo

Expand Down

0 comments on commit f5f6519

Please sign in to comment.