From dc84ea3b7e730744f6c24a4331c88690698fbe44 Mon Sep 17 00:00:00 2001 From: bshih Date: Wed, 25 Sep 2024 11:25:40 -0400 Subject: [PATCH 1/3] fix(helm): add containerSecurityContext to statefulset backend sidecar --- .../helm/loki/templates/backend/statefulset-backend.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/production/helm/loki/templates/backend/statefulset-backend.yaml b/production/helm/loki/templates/backend/statefulset-backend.yaml index 534190d4a4533..7c27c8794e2b7 100644 --- a/production/helm/loki/templates/backend/statefulset-backend.yaml +++ b/production/helm/loki/templates/backend/statefulset-backend.yaml @@ -133,6 +133,10 @@ spec: - name: LOG_LEVEL value: "{{ .Values.sidecar.rules.logLevel }}" {{- end }} + {{- if .Values.sidecar.containerSecurityContext }} + containerSecurityContext: + {{- toYaml .Values.sidecar.containerSecurityContext | nindent 12 }} + {{- end }} {{- if .Values.sidecar.livenessProbe }} livenessProbe: {{- toYaml .Values.sidecar.livenessProbe | nindent 12 }} From 51214d41e33214f8519fb31b4954d2c74bc74b61 Mon Sep 17 00:00:00 2001 From: bshih Date: Thu, 26 Sep 2024 03:29:21 -0400 Subject: [PATCH 2/3] fix(helm): update CHANGELOG.md and Chart.yaml --- production/helm/loki/CHANGELOG.md | 4 ++++ production/helm/loki/Chart.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/production/helm/loki/CHANGELOG.md b/production/helm/loki/CHANGELOG.md index 3525bc396547b..6c464aa0eb7f3 100644 --- a/production/helm/loki/CHANGELOG.md +++ b/production/helm/loki/CHANGELOG.md @@ -13,6 +13,10 @@ Entries should include a reference to the pull request that introduced the chang [//]: # ( : 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.) +## 6.15.0 + +- [BUGFIX] Add containerSecurityContext to Loki helm chart backend statefulset sidercar container + ## 6.14.0 - [FEATURE] Add additional service annotations for components in distributed mode diff --git a/production/helm/loki/Chart.yaml b/production/helm/loki/Chart.yaml index b05f8ff0fdd04..56e48a535e070 100644 --- a/production/helm/loki/Chart.yaml +++ b/production/helm/loki/Chart.yaml @@ -3,7 +3,7 @@ name: loki description: Helm chart for Grafana Loki and Grafana Enterprise Logs supporting both simple, scalable and distributed modes. type: application appVersion: 3.1.1 -version: 6.14.0 +version: 6.15.0 home: https://grafana.github.io/helm-charts sources: - https://github.com/grafana/loki From 1cfda650403dc40d2ed00e6a8c08f2818b51b4be Mon Sep 17 00:00:00 2001 From: bshih Date: Thu, 26 Sep 2024 04:39:26 -0400 Subject: [PATCH 3/3] fix(helm): update README.md --- production/helm/loki/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/production/helm/loki/README.md b/production/helm/loki/README.md index f55b4186debf4..92008e768d6bc 100644 --- a/production/helm/loki/README.md +++ b/production/helm/loki/README.md @@ -1,6 +1,6 @@ # loki -![Version: 6.14.0](https://img.shields.io/badge/Version-6.14.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.1.1](https://img.shields.io/badge/AppVersion-3.1.1-informational?style=flat-square) +![Version: 6.15.0](https://img.shields.io/badge/Version-6.15.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.1.1](https://img.shields.io/badge/AppVersion-3.1.1-informational?style=flat-square) Helm chart for Grafana Loki and Grafana Enterprise Logs supporting both simple, scalable and distributed modes.