Skip to content

Commit 528a1c6

Browse files
authored
feat: Helm: Add extraContainers to backend pods (#16205)
**What this PR does / why we need it**: This PR adds the `extraContainers` property to the backend Loki pods for the Loki helm chart. **Which issue(s) this PR fixes**: Fixes #16164
1 parent a4c796d commit 528a1c6

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

‎docs/sources/setup/install/helm/reference.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ This is the generated reference for the Loki Helm Chart values.
324324
},
325325
"dnsConfig": {},
326326
"extraArgs": [],
327+
"extraContainers": [],
327328
"extraEnv": [],
328329
"extraEnvFrom": [],
329330
"extraVolumeMounts": [],
@@ -453,6 +454,15 @@ null
453454
<td><pre lang="json">
454455
[]
455456
</pre>
457+
</td>
458+
</tr>
459+
<tr>
460+
<td>backend.extraContainers</td>
461+
<td>list</td>
462+
<td>Containers to add to the backend pods</td>
463+
<td><pre lang="json">
464+
[]
465+
</pre>
456466
</td>
457467
</tr>
458468
<tr>

‎production/helm/loki/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Entries should include a reference to the pull request that introduced the chang
1313

1414
[//]: # (<AUTOMATED_UPDATES_LOCATOR> : do not remove this line. This locator is used by the CI pipeline to automatically create a changelog entry for each new Loki release. Add other chart versions and respective changelog entries bellow this line.)
1515

16+
- [CHANGE] Add extraContainers parameter for the backend pod
17+
1618
## 6.27.0
1719

1820
- [FEATURE] Added support for globals: `extraArgs`, `extraEnv`, `extraEnvFrom`, `extraVolumes`, `extraVolumeMounts` ([#16062](https://github.com/grafana/loki/pull/16062)) relates to ([#12652](https://github.com/grafana/loki/pull/12652))

‎production/helm/loki/templates/backend/statefulset-backend.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ spec:
198198
{{- end }}
199199
resources:
200200
{{- toYaml .Values.backend.resources | nindent 12 }}
201+
{{- with .Values.backend.extraContainers }}
202+
{{- toYaml . | nindent 8}}
203+
{{- end }}
201204
{{- with .Values.backend.affinity }}
202205
affinity:
203206
{{- toYaml . | nindent 8 }}

‎production/helm/loki/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,6 +1735,8 @@ backend:
17351735
extraEnvFrom: []
17361736
# -- Init containers to add to the backend pods
17371737
initContainers: []
1738+
# -- Containers to add to the backend pods
1739+
extraContainers: []
17381740
# -- Volume mounts to add to the backend pods
17391741
extraVolumeMounts: []
17401742
# -- Volumes to add to the backend pods

0 commit comments

Comments
 (0)