diff --git a/production/helm/loki/templates/_helpers.tpl b/production/helm/loki/templates/_helpers.tpl index ac7e9717e1f2..c1ea51609648 100644 --- a/production/helm/loki/templates/_helpers.tpl +++ b/production/helm/loki/templates/_helpers.tpl @@ -208,7 +208,7 @@ Generated storage config for loki common config {{- if .Values.minio.enabled -}} s3: endpoint: {{ include "loki.minio" $ }} - bucketnames: {{ $.Values.loki.storage.bucketNames.chunks }} + bucketnames: chunks secret_access_key: {{ $.Values.minio.rootPassword }} access_key_id: {{ $.Values.minio.rootUser }} s3forcepathstyle: true @@ -346,7 +346,7 @@ Storage config for ruler {{- if .Values.minio.enabled -}} type: "s3" s3: - bucketnames: {{ $.Values.loki.storage.bucketNames.ruler }} + bucketnames: ruler {{- else if eq .Values.loki.storage.type "s3" -}} {{- with .Values.loki.storage.s3 }} type: "s3" diff --git a/production/helm/loki/values.yaml b/production/helm/loki/values.yaml index 9cf1c3fd1eef..2b980a185e87 100644 --- a/production/helm/loki/values.yaml +++ b/production/helm/loki/values.yaml @@ -311,10 +311,6 @@ loki: compactor_address: '{{ include "loki.compactorAddress" . }}' # -- Storage config. Providing this will automatically populate all necessary storage configs in the templated config. storage: - bucketNames: - chunks: chunks - ruler: ruler - admin: admin type: s3 s3: s3: null @@ -477,7 +473,7 @@ enterprise: admin_client: storage: s3: - bucket_name: {{ .Values.loki.storage.bucketNames.admin }} + bucket_name: admin {{- end }} {{- end }} auth: