Skip to content

Commit 2141f3a

Browse files
loafoejkroepke
andauthored
[tempo-distributed] Support initContainers and extraContainers for distributor (#3552)
Co-authored-by: Jan-Otto Kröpke <[email protected]>
1 parent c83b5db commit 2141f3a

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

charts/tempo-distributed/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: tempo-distributed
33
description: Grafana Tempo in MicroService mode
44
type: application
5-
version: 1.39.1
5+
version: 1.39.2
66
appVersion: 2.7.1
77
engine: gotpl
88
home: https://grafana.com/docs/tempo/latest/

charts/tempo-distributed/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# tempo-distributed
22

3-
![Version: 1.39.1](https://img.shields.io/badge/Version-1.39.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.7.1](https://img.shields.io/badge/AppVersion-2.7.1-informational?style=flat-square)
3+
![Version: 1.39.2](https://img.shields.io/badge/Version-1.39.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.7.1](https://img.shields.io/badge/AppVersion-2.7.1-informational?style=flat-square)
44

55
Grafana Tempo in MicroService mode
66

@@ -362,6 +362,7 @@ The memcached default args are removed and should be provided manually. The sett
362362
| distributor.config.log_received_spans | object | `{"enabled":false,"filter_by_status_error":false,"include_all_attributes":false}` | Enable to log every received span to help debug ingestion or calculate span error distributions using the logs |
363363
| distributor.config.log_received_traces | string | `nil` | WARNING: Deprecated. Use log_received_spans instead. |
364364
| distributor.extraArgs | list | `[]` | Additional CLI args for the distributor |
365+
| distributor.extraContainers | list | `[]` | Containers to add to the distributor pod |
365366
| distributor.extraEnv | list | `[]` | Environment variables to add to the distributor pods |
366367
| distributor.extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to the distributor pods |
367368
| distributor.extraVolumeMounts | list | `[]` | Extra volumes for distributor pods |
@@ -371,7 +372,7 @@ The memcached default args are removed and should be provided manually. The sett
371372
| distributor.image.registry | string | `nil` | The Docker registry for the distributor image. Overrides `tempo.image.registry` |
372373
| distributor.image.repository | string | `nil` | Docker image repository for the distributor image. Overrides `tempo.image.repository` |
373374
| distributor.image.tag | string | `nil` | Docker image tag for the distributor image. Overrides `tempo.image.tag` |
374-
| distributor.initContainers | list | `[]` | Init containers for the distributor pod |
375+
| distributor.initContainers | list | `[]` | Init containers to add to the distributor pods |
375376
| distributor.maxUnavailable | int | `1` | Pod Disruption Budget maxUnavailable |
376377
| distributor.minReadySeconds | int | `10` | Minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing/terminating |
377378
| distributor.nodeSelector | object | `{}` | Node selector for distributor pods |

charts/tempo-distributed/templates/distributor/deployment-distributor.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ spec:
5656
hostAliases:
5757
{{- toYaml . | nindent 8 }}
5858
{{- end }}
59+
{{- with .Values.distributor.initContainers }}
5960
initContainers:
60-
{{- toYaml .Values.distributor.initContainers | nindent 8 }}
61+
{{- toYaml . | nindent 8 }}
62+
{{- end }}
6163
containers:
6264
- args:
6365
- -target=distributor
@@ -150,6 +152,9 @@ spec:
150152
{{- with .Values.distributor.extraVolumeMounts }}
151153
{{- toYaml . | nindent 12 }}
152154
{{- end }}
155+
{{- with .Values.distributor.extraContainers }}
156+
{{- toYaml . | nindent 8 }}
157+
{{- end }}
153158
terminationGracePeriodSeconds: {{ .Values.distributor.terminationGracePeriodSeconds }}
154159
{{- if semverCompare ">= 1.19-0" .Capabilities.KubeVersion.Version }}
155160
{{- with .Values.distributor.topologySpreadConstraints }}

charts/tempo-distributed/values.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,10 @@ distributor:
539539
extraEnv: []
540540
# -- Environment variables from secrets or configmaps to add to the distributor pods
541541
extraEnvFrom: []
542+
# -- Init containers to add to the distributor pods
543+
initContainers: []
544+
# -- Containers to add to the distributor pod
545+
extraContainers: []
542546
# -- Resource requests and limits for the distributor
543547
resources: {}
544548
# -- Grace period to allow the distributor to shutdown before it is killed
@@ -581,8 +585,6 @@ distributor:
581585
nodeSelector: {}
582586
# -- Tolerations for distributor pods
583587
tolerations: []
584-
# -- Init containers for the distributor pod
585-
initContainers: []
586588
# -- Extra volumes for distributor pods
587589
extraVolumeMounts: []
588590
# -- Extra volumes for distributor deployment

0 commit comments

Comments
 (0)