diff --git a/production/helm/loki/CHANGELOG.md b/production/helm/loki/CHANGELOG.md index f6f45b65f4db8..d83f95859c8ca 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.7.0 + +- [ENHANCEMENT] Avoid unnecessary pod restart on each helm chart version + ## 6.6.5 - [BUGFIX] Fix querier address in SingleBinary mode diff --git a/production/helm/loki/Chart.yaml b/production/helm/loki/Chart.yaml index a5669bfc4607f..14500b78b3962 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.0.0 -version: 6.6.5 +version: 6.7.0 home: https://grafana.github.io/helm-charts sources: - https://github.com/grafana/loki diff --git a/production/helm/loki/README.md b/production/helm/loki/README.md index 1365bc2d070f1..1197ff2090bf9 100644 --- a/production/helm/loki/README.md +++ b/production/helm/loki/README.md @@ -1,6 +1,6 @@ # loki -![Version: 6.6.5](https://img.shields.io/badge/Version-6.6.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square) +![Version: 6.7.0](https://img.shields.io/badge/Version-6.7.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square) Helm chart for Grafana Loki and Grafana Enterprise Logs supporting both simple, scalable and distributed modes. diff --git a/production/helm/loki/templates/_helpers.tpl b/production/helm/loki/templates/_helpers.tpl index 58fc5c6cba800..448a841821378 100644 --- a/production/helm/loki/templates/_helpers.tpl +++ b/production/helm/loki/templates/_helpers.tpl @@ -1080,7 +1080,7 @@ enableServiceLinks: false {{- end }} {{- define "loki.config.checksum" -}} -checksum/config: {{ include (print .Template.BasePath "/config.yaml") . | sha256sum }} +checksum/config: {{ include "loki.calculatedConfig" . | sha256sum }} {{- end -}} {{/* diff --git a/production/helm/loki/templates/admin-api/deployment-admin-api.yaml b/production/helm/loki/templates/admin-api/deployment-admin-api.yaml index 15391665ca776..579df44353074 100644 --- a/production/helm/loki/templates/admin-api/deployment-admin-api.yaml +++ b/production/helm/loki/templates/admin-api/deployment-admin-api.yaml @@ -32,7 +32,7 @@ spec: {{- if .Values.useExternalConfig }} checksum/config: {{ .Values.externalConfigVersion }} {{- else }} - checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }} + {{- include "loki.config.checksum" $ | nindent 8 }} {{- end}} {{- with .Values.adminApi.annotations }} {{- toYaml . | nindent 8 }} diff --git a/production/helm/loki/templates/backend/statefulset-backend.yaml b/production/helm/loki/templates/backend/statefulset-backend.yaml index 534190d4a4533..5d5be19bad850 100644 --- a/production/helm/loki/templates/backend/statefulset-backend.yaml +++ b/production/helm/loki/templates/backend/statefulset-backend.yaml @@ -47,7 +47,7 @@ spec: template: metadata: annotations: - checksum/config: {{ include (print .Template.BasePath "/config.yaml") . | sha256sum }} + {{- include "loki.config.checksum" . | nindent 8 }} {{- with .Values.loki.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} diff --git a/production/helm/loki/templates/gateway/deployment-gateway-enterprise.yaml b/production/helm/loki/templates/gateway/deployment-gateway-enterprise.yaml index de8ba11058eb1..dc619fea26dd7 100644 --- a/production/helm/loki/templates/gateway/deployment-gateway-enterprise.yaml +++ b/production/helm/loki/templates/gateway/deployment-gateway-enterprise.yaml @@ -32,7 +32,7 @@ spec: {{- if .Values.useExternalConfig }} checksum/config: {{ .Values.externalConfigVersion }} {{- else }} - checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }} + {{- include "loki.config.checksum" $ | nindent 8 }} {{- end}} {{- with .Values.enterpriseGateway.annotations }} {{- toYaml . | nindent 8 }} diff --git a/production/helm/loki/templates/gateway/deployment-gateway-nginx.yaml b/production/helm/loki/templates/gateway/deployment-gateway-nginx.yaml index 2b2d4c7bd7bb7..fab1e14c48628 100644 --- a/production/helm/loki/templates/gateway/deployment-gateway-nginx.yaml +++ b/production/helm/loki/templates/gateway/deployment-gateway-nginx.yaml @@ -30,7 +30,7 @@ spec: template: metadata: annotations: - checksum/config: {{ include (print .Template.BasePath "/gateway/configmap-gateway.yaml") . | sha256sum }} + checksum/config: {{ tpl .Values.gateway.nginxConfig.file . | sha256sum }} {{- with .Values.loki.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} diff --git a/production/helm/loki/templates/read/deployment-read.yaml b/production/helm/loki/templates/read/deployment-read.yaml index 245119cb44dca..2a6289d39e297 100644 --- a/production/helm/loki/templates/read/deployment-read.yaml +++ b/production/helm/loki/templates/read/deployment-read.yaml @@ -33,7 +33,7 @@ spec: template: metadata: annotations: - checksum/config: {{ include (print .Template.BasePath "/config.yaml") . | sha256sum }} + {{- include "loki.config.checksum" . | nindent 8 }} {{- with .Values.loki.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} diff --git a/production/helm/loki/templates/read/statefulset-read.yaml b/production/helm/loki/templates/read/statefulset-read.yaml index 7696d90e65bd6..8b3b18d94dae2 100644 --- a/production/helm/loki/templates/read/statefulset-read.yaml +++ b/production/helm/loki/templates/read/statefulset-read.yaml @@ -47,7 +47,7 @@ spec: template: metadata: annotations: - checksum/config: {{ include (print .Template.BasePath "/config.yaml") . | sha256sum }} + {{- include "loki.config.checksum" . | nindent 8 }} {{- with .Values.loki.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} diff --git a/production/helm/loki/templates/single-binary/statefulset.yaml b/production/helm/loki/templates/single-binary/statefulset.yaml index 7bd2b9813f609..dc1f4a723bbf4 100644 --- a/production/helm/loki/templates/single-binary/statefulset.yaml +++ b/production/helm/loki/templates/single-binary/statefulset.yaml @@ -41,7 +41,7 @@ spec: template: metadata: annotations: - checksum/config: {{ include (print .Template.BasePath "/config.yaml") . | sha256sum }} + {{- include "loki.config.checksum" . | nindent 8 }} {{- with .Values.loki.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} diff --git a/production/helm/loki/templates/table-manager/deployment-table-manager.yaml b/production/helm/loki/templates/table-manager/deployment-table-manager.yaml index e3f6d0d94a696..0b532b3229e17 100644 --- a/production/helm/loki/templates/table-manager/deployment-table-manager.yaml +++ b/production/helm/loki/templates/table-manager/deployment-table-manager.yaml @@ -21,7 +21,7 @@ spec: template: metadata: annotations: - checksum/config: {{ include (print .Template.BasePath "/config.yaml") . | sha256sum }} + {{- include "loki.config.checksum" . | nindent 8 }} {{- with .Values.loki.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} diff --git a/production/helm/loki/templates/write/statefulset-write.yaml b/production/helm/loki/templates/write/statefulset-write.yaml index 75605c27c26cb..534c94bd21a84 100644 --- a/production/helm/loki/templates/write/statefulset-write.yaml +++ b/production/helm/loki/templates/write/statefulset-write.yaml @@ -47,7 +47,7 @@ spec: template: metadata: annotations: - checksum/config: {{ include (print .Template.BasePath "/config.yaml") . | sha256sum }} + {{- include "loki.config.checksum" . | nindent 8 }} {{- with .Values.loki.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }}