Skip to content

Commit 2e32ec5

Browse files
fix(helm): only default bucket names when using minio (#12548)
1 parent c914272 commit 2e32ec5

File tree

10 files changed

+35
-20
lines changed

10 files changed

+35
-20
lines changed

‎Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ production/helm/loki/src/helm-test/helm-test:
191191
helm-lint: ## run helm linter
192192
$(MAKE) -BC production/helm/loki lint
193193

194+
helm-docs:
195+
helm-docs -c production/helm/loki -g production/helm/loki
196+
194197
#################
195198
# Loki-QueryTee #
196199
#################

‎docs/sources/setup/install/helm/reference.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2572,7 +2572,7 @@ null
25722572
},
25732573
"canarySecret": null,
25742574
"cluster_name": null,
2575-
"config": "{{- if .Values.enterprise.adminApi.enabled }}\n{{- if or .Values.minio.enabled (eq .Values.loki.storage.type \"s3\") (eq .Values.loki.storage.type \"gcs\") (eq .Values.loki.storage.type \"azure\") }}\nadmin_client:\n storage:\n s3:\n bucket_name: {{ .Values.loki.storage.bucketNames.admin }}\n{{- end }}\n{{- end }}\nauth:\n type: {{ .Values.enterprise.adminApi.enabled | ternary \"enterprise\" \"trust\" }}\nauth_enabled: {{ .Values.loki.auth_enabled }}\ncluster_name: {{ include \"loki.clusterName\" . }}\nlicense:\n path: /etc/loki/license/license.jwt\n",
2575+
"config": "{{- if .Values.enterprise.adminApi.enabled }}\n{{- if or .Values.minio.enabled (eq .Values.loki.storage.type \"s3\") (eq .Values.loki.storage.type \"gcs\") (eq .Values.loki.storage.type \"azure\") }}\nadmin_client:\n storage:\n s3:\n bucket_name: admin\n{{- end }}\n{{- end }}\nauth:\n type: {{ .Values.enterprise.adminApi.enabled | ternary \"enterprise\" \"trust\" }}\nauth_enabled: {{ .Values.loki.auth_enabled }}\ncluster_name: {{ include \"loki.clusterName\" . }}\nlicense:\n path: /etc/loki/license/license.jwt\n",
25762576
"enabled": false,
25772577
"externalConfigName": "",
25782578
"externalLicenseName": null,
@@ -5311,11 +5311,6 @@ null
53115311
"useManagedIdentity": false,
53125312
"userAssignedId": null
53135313
},
5314-
"bucketNames": {
5315-
"admin": "admin",
5316-
"chunks": "chunks",
5317-
"ruler": "ruler"
5318-
},
53195314
"filesystem": {
53205315
"chunks_directory": "/var/loki/chunks",
53215316
"rules_directory": "/var/loki/rules"
@@ -5777,11 +5772,6 @@ null
57775772
"useManagedIdentity": false,
57785773
"userAssignedId": null
57795774
},
5780-
"bucketNames": {
5781-
"admin": "admin",
5782-
"chunks": "chunks",
5783-
"ruler": "ruler"
5784-
},
57855775
"filesystem": {
57865776
"chunks_directory": "/var/loki/chunks",
57875777
"rules_directory": "/var/loki/rules"

‎production/helm/loki/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: loki
33
description: Helm chart for Grafana Loki in simple, scalable mode
44
type: application
55
appVersion: 3.0.0
6-
version: 6.0.0
6+
version: 6.1.0
77
home: https://grafana.github.io/helm-charts
88
sources:
99
- https://github.com/grafana/loki

‎production/helm/loki/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# loki
22

3-
![Version: 6.0.0](https://img.shields.io/badge/Version-6.0.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)
3+
![Version: 6.1.0](https://img.shields.io/badge/Version-6.1.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)
44

55
Helm chart for Grafana Loki in simple, scalable mode
66

‎production/helm/loki/ci/default-single-binary-values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ loki:
33
commonConfig:
44
replication_factor: 1
55
useTestSchema: true
6+
storage:
7+
bucketNames:
8+
chunks: chunks
9+
ruler: ruler
10+
admin: admin
611
deploymentMode: SingleBinary
712
singleBinary:
813
replicas: 1

‎production/helm/loki/ci/default-values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ loki:
33
commonConfig:
44
replication_factor: 1
55
useTestSchema: true
6+
storage:
7+
bucketNames:
8+
chunks: chunks
9+
ruler: ruler
10+
admin: admin
611
read:
712
replicas: 1
813
write:

‎production/helm/loki/ci/ingress-values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ loki:
1212
commonConfig:
1313
replication_factor: 1
1414
useTestSchema: true
15+
storage:
16+
bucketNames:
17+
chunks: chunks
18+
ruler: ruler
19+
admin: admin
1520
read:
1621
replicas: 1
1722
write:

‎production/helm/loki/ci/legacy-monitoring-values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ loki:
33
commonConfig:
44
replication_factor: 1
55
useTestSchema: true
6+
storage:
7+
bucketNames:
8+
chunks: chunks
9+
ruler: ruler
10+
admin: admin
611
read:
712
replicas: 1
813
write:

‎production/helm/loki/templates/_helpers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Generated storage config for loki common config
208208
{{- if .Values.minio.enabled -}}
209209
s3:
210210
endpoint: {{ include "loki.minio" $ }}
211-
bucketnames: {{ $.Values.loki.storage.bucketNames.chunks }}
211+
bucketnames: chunks
212212
secret_access_key: {{ $.Values.minio.rootPassword }}
213213
access_key_id: {{ $.Values.minio.rootUser }}
214214
s3forcepathstyle: true
@@ -346,7 +346,7 @@ Storage config for ruler
346346
{{- if .Values.minio.enabled -}}
347347
type: "s3"
348348
s3:
349-
bucketnames: {{ $.Values.loki.storage.bucketNames.ruler }}
349+
bucketnames: ruler
350350
{{- else if eq .Values.loki.storage.type "s3" -}}
351351
{{- with .Values.loki.storage.s3 }}
352352
type: "s3"

‎production/helm/loki/values.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,10 +311,12 @@ loki:
311311
compactor_address: '{{ include "loki.compactorAddress" . }}'
312312
# -- Storage config. Providing this will automatically populate all necessary storage configs in the templated config.
313313
storage:
314-
bucketNames:
315-
chunks: chunks
316-
ruler: ruler
317-
admin: admin
314+
# Loki requires a bucket for chunks and the ruler. GEL requires a third bucket for the admin API.
315+
# Please provide these values if you are using object storage.
316+
# bucketNames:
317+
# chunks: FIXME
318+
# ruler: FIXME
319+
# admin: FIXME
318320
type: s3
319321
s3:
320322
s3: null
@@ -477,7 +479,7 @@ enterprise:
477479
admin_client:
478480
storage:
479481
s3:
480-
bucket_name: {{ .Values.loki.storage.bucketNames.admin }}
482+
bucket_name: admin
481483
{{- end }}
482484
{{- end }}
483485
auth:

0 commit comments

Comments
 (0)