Skip to content

Loki Helm chart can't be naturally used as a dependency #13284

Open

Description

Describe the bug
If you create a parent chart that includes the loki chart as a dependency, its processing with 'helm template' fails.
To fix the error, please remove '$' symbol from here:

bucketnames: {{ $.Values.loki.storage.bucketNames.chunks }}

To Reproduce
Steps to reproduce the behavior:
Create a chart like

apiVersion: v2
name: my-loki
description: A Helm chart for loki

appVersion: "1.0.0"
version: "6.6.3"

dependencies:
  - name: loki
    version: 6.6.3
    repository: https://grafana.github.io/helm-charts

and try to 'helm template' it.

Temporary workaround
Put the storage.bucketNames.* to the parent chart's parameters, using a values file like

loki:
  storage:
    bucketNames:
      chunks: loki-migration
      ruler: loki-migration
      admin: loki-migration
  loki:
    # other parameters here
...

Expected behavior
Compilation does not fail.

Environment:
Sonoma, Ubuntu, WSL2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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