Skip to content

helm-loki-6.45.1: requires loki.storage.bucketNames.chunks even for filesystem #19655

@yellowhat

Description

@yellowhat

Describe the bug

With helm-loki-6.45.1, on rendering the helm chart with:

$ helm template loki loki \
    --repo https://grafana.github.io/helm-charts \
    --version 6.45.1
Error: execution error at (loki/templates/write/statefulset-write.yaml:50:28): Please define loki.storage.bucketNames.chunks
$ helm template loki loki \
    --repo https://grafana.github.io/helm-charts \
    --version 6.45.1 \
    --set loki.storage.type=filesystem
Error: execution error at (loki/templates/validate.yaml:19:4): Cannot run scalable targets (backend, read, write) or distributed targets without an object storage backend.

I am assuming this is due to this MR.

From my understanding it does not take in consideration that loki.storage.type might not be s3.

Expected behavior

Helm chart is not erroring when using storage of type filesystem.

Environment:

  • Infrastructure: Kubernetes,
  • Deployment tool: helm

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/helmtype/bugSomehing is not working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions