chore(helm): various helm fixes (#12675)

Signed-off-by: Danny Kopping <dannykopping@gmail.com>
Co-authored-by: Trevor Whitney <trevorjwhitney@gmail.com>
Co-authored-by: Cyril Tovena <cyril.tovena@gmail.com>
pull/12170/head^2 helm-loki-6.2.3
Danny Kopping 2 years ago committed by GitHub
parent 402d1d7c48
commit 0cb470fa3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      docs/sources/setup/install/helm/reference.md
  2. 6
      production/helm/loki/CHANGELOG.md
  3. 2
      production/helm/loki/Chart.yaml
  4. 2
      production/helm/loki/README.md
  5. 2
      production/helm/loki/src/helm-test/canary_test.go
  6. 13
      production/helm/loki/templates/_helpers.tpl
  7. 2
      production/helm/loki/templates/backend/query-scheduler-discovery.yaml
  8. 4
      production/helm/loki/values.yaml

@ -5385,7 +5385,7 @@ null
"period": "24h",
"prefix": "index_"
},
"object_store": "filesystem",
"object_store": "{{ include \"loki.testSchemaObjectStore\" . }}",
"schema": "v13",
"store": "tsdb"
}
@ -6333,6 +6333,7 @@ false
<td>Configuration for the minio subchart</td>
<td><pre lang="json">
{
"address": null,
"buckets": [
{
"name": "chunks",

@ -13,6 +13,12 @@ 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.)
## 6.2.3
- [ENHANCEMENT] Allow minio address to be overridden.
- [CHANGE] `query-scheduler-discovery` service will now be prefixed by query scheduler full name.
- [BUGFIX] Fix `helm-tests` Go source which was missing a param following #12245.
## 6.2.2
- [FEATURE] Add support for enabling pattern ingester config via `loki.pattern_ingester.enabled`.

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

@ -1,6 +1,6 @@
# loki
![Version: 6.2.2](https://img.shields.io/badge/Version-6.2.2-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.2.3](https://img.shields.io/badge/Version-6.2.3-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 in simple, scalable mode

@ -129,7 +129,7 @@ func testResultCanary(t *testing.T, ctx context.Context, metric string, test fun
body, err := io.ReadAll(rsp.Body)
require.NoError(t, err, "Failed to read response body")
p, err := textparse.New(body, rsp.Header.Get("Content-Type"), true)
p, err := textparse.New(body, rsp.Header.Get("Content-Type"), true, nil)
require.NoError(t, err, "Failed to create Prometheus parser")
for {

@ -601,7 +601,7 @@ Create the service endpoint including port for MinIO.
*/}}
{{- define "loki.minio" -}}
{{- if .Values.minio.enabled -}}
{{- printf "%s-%s.%s.svc:%s" .Release.Name "minio" .Release.Namespace (.Values.minio.service.port | toString) -}}
{{- .Values.minio.address | default (printf "%s-%s.%s.svc:%s" .Release.Name "minio" .Release.Namespace (.Values.minio.service.port | toString)) -}}
{{- end -}}
{{- end -}}
@ -988,3 +988,14 @@ Return the appropriate apiVersion for PodDisruptionBudget.
{{- print "policy/v1beta1" -}}
{{- end -}}
{{- end -}}
{{/*
Return the object store type for use with the test schema.
*/}}
{{- define "loki.testSchemaObjectStore" -}}
{{- if .Values.minio.enabled -}}
s3
{{- else -}}
filesystem
{{- end -}}
{{- end -}}

@ -4,7 +4,7 @@
apiVersion: v1
kind: Service
metadata:
name: query-scheduler-discovery
name: {{ include "loki.querySchedulerFullname" . }}-discovery
namespace: {{ $.Release.Namespace }}
labels:
{{- include "loki.backendSelectorLabels" . | nindent 4 }}

@ -392,7 +392,7 @@ loki:
configs:
- from: 2024-04-01
store: tsdb
object_store: filesystem
object_store: '{{ include "loki.testSchemaObjectStore" . }}'
schema: v13
index:
prefix: index_
@ -3117,6 +3117,8 @@ minio:
requests:
cpu: 100m
memory: 128Mi
# Allow the address used by Loki to refer to Minio to be overridden
address: null
# Create extra manifests via values. Would be passed through `tpl` for templating
extraObjects: []
# - apiVersion: v1

Loading…
Cancel
Save