Skip to content

[Helm] Global extraEnvFrom not templating correctly #17748

Open
@npapapietro

Description

@npapapietro

Describe the bug
There's an issue when populating the globals.extraEnvFrom that only the resultsache, resultscache and write are correctly templated with the values.

To Reproduce
Example values yaml

deploymentMode: SimpleScalable
global:
  extraEnvFrom:
    - secretRef:
        name: loki-s3-creds
backend:
  extraEnvFrom:
    - secretRef:
        name: loki-s3-creds
loki:
  auth_enabled: false
  schemaConfig:
    configs:
      - from: "2024-04-01"
        index:
          period: 24h
          prefix: loki_index_
        object_store: s3
        schema: v13
        store: tsdb
  storage:
    bucketNames:
      admin: bucket
      chunks: bucket
      ruler: bucket
    s3:
      region: us-east-1
    type: s3

Running helm template loki grafana/loki -f values.yaml > loki.yaml and inspecting the resulting output shows that

envFrom:
  - secretRef:
      name: loki-s3-creds

is missing from all sts except loki-write, loki-results-cache, loki-chunks-cache

Expected behavior
Expected every statefulset to respect the global values object

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