Make table manager retention options configurable in helm chart values (#9647)

**What this PR does / why we need it**:

Configuration options for table manager retention are hard-coded in the
helm chart values at the moment so that it's not possible to enable
retention deletes.

**Which issue(s) this PR fixes**:
Fixes #8676

**Special notes for your reviewer**:
-

**Checklist**
- [x] Reviewed the
[`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md)
guide (**required**)
- [x] Documentation added
- [x] Tests updated
- [x] `CHANGELOG.md` updated
- [x] Changes that require user attention or interaction to upgrade are
documented in `docs/sources/upgrading/_index.md`
- [x] For Helm chart changes bump the Helm chart version in
`production/helm/loki/Chart.yaml` and update
`production/helm/loki/CHANGELOG.md` and
`production/helm/loki/README.md`. [Example
PR](d10549e3ec)

Co-authored-by: Michel Hollands <42814411+MichelHollands@users.noreply.github.com>
pull/9665/head helm-loki-5.6.4
Nils Griebner 2 years ago committed by GitHub
parent 79c5fdd9c0
commit d58125885b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      docs/sources/installation/helm/reference.md
  2. 4
      production/helm/loki/CHANGELOG.md
  3. 2
      production/helm/loki/Chart.yaml
  4. 2
      production/helm/loki/README.md
  5. 9
      production/helm/loki/values.yaml

@ -3705,6 +3705,24 @@ null
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>tableManager.retention_deletes_enabled</td>
<td>bool</td>
<td>Enable deletes by retention</td>
<td><pre lang="json">
false
</pre>
</td>
</tr>
<tr>
<td>tableManager.retention_period</td>
<td>int</td>
<td>Set retention period</td>
<td><pre lang="json">
0
</pre>
</td>
</tr>
<tr>

@ -13,6 +13,10 @@ Entries should include a reference to the pull request that introduced the chang
[//]: # (<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.)
## 5.6.4
- [FEATURE] Make table manager retention options configurable in values
## 5.6.3
- [BUGFIX] Fix configmap checksum in read statefulset template

@ -3,7 +3,7 @@ name: loki
description: Helm chart for Grafana Loki in simple, scalable mode
type: application
appVersion: 2.8.2
version: 5.6.3
version: 5.6.4
home: https://grafana.github.io/helm-charts
sources:
- https://github.com/grafana/loki

@ -1,6 +1,6 @@
# loki
![Version: 5.6.3](https://img.shields.io/badge/Version-5.6.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.8.2](https://img.shields.io/badge/AppVersion-2.8.2-informational?style=flat-square)
![Version: 5.6.4](https://img.shields.io/badge/Version-5.6.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.8.2](https://img.shields.io/badge/AppVersion-2.8.2-informational?style=flat-square)
Helm chart for Grafana Loki in simple, scalable mode

@ -163,8 +163,8 @@ loki:
{{ include "loki.rulerConfig" . }}
table_manager:
retention_deletes_enabled: false
retention_period: 0
retention_deletes_enabled: {{ .Values.tableManager.retention_deletes_enabled }}
retention_period: {{ .Values.tableManager.retention_period }}
{{- with .Values.loki.memcached.results_cache }}
query_range:
@ -813,6 +813,11 @@ tableManager:
nodeSelector: {}
# -- Tolerations for table-manager pods
tolerations: []
# -- Enable deletes by retention
retention_deletes_enabled: false
# -- Set retention period
retention_period: 0
# Configuration for the read pod(s)
read:
# -- Number of replicas for the read

Loading…
Cancel
Save