Skip to content

Commit

Permalink
chore(helm): various helm fixes (#12675)
Browse files Browse the repository at this point in the history
Signed-off-by: Danny Kopping <[email protected]>
Co-authored-by: Trevor Whitney <[email protected]>
Co-authored-by: Cyril Tovena <[email protected]>
  • Loading branch information
3 people authored Apr 19, 2024
1 parent 402d1d7 commit 0cb470f
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 7 deletions.
3 changes: 2 additions & 1 deletion docs/sources/setup/install/helm/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -5385,7 +5385,7 @@ null
"period": "24h",
"prefix": "index_"
},
"object_store": "filesystem",
"object_store": "{{ include \"loki.testSchemaObjectStore\" . }}",
"schema": "v13",
"store": "tsdb"
}
Expand Down Expand Up @@ -6333,6 +6333,7 @@ false
<td>Configuration for the minio subchart</td>
<td><pre lang="json">
{
"address": null,
"buckets": [
{
"name": "chunks",
Expand Down
6 changes: 6 additions & 0 deletions production/helm/loki/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion production/helm/loki/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion production/helm/loki/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion production/helm/loki/src/helm-test/canary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
13 changes: 12 additions & 1 deletion production/helm/loki/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}

Expand Down Expand Up @@ -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 -}}
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 3 additions & 1 deletion production/helm/loki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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_
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0cb470f

Please sign in to comment.