UNCLASSIFIED - NO CUI

Bug: supplying git credentials to `packages` breaks bigbang

Bug

Description

When supplying git credentials and using packages the bigbang helm chart errors out. There is no workaround at this time.

error:

Error: template: bigbang/templates/secrets/gitcredential.yaml:13:8: executing "bigbang/templates/secrets/gitcredential.yaml" at <include "commonLabels" .>: error calling include: template: bigbang/templates/_helpers.tpl:86:39: executing "commonLabels" at <.Release.Name>: can't evaluate field Release in type string

Using default values.yaml + packages.yaml:

packages:
  podinfo:
    git:
      repo: https://github.com/stefanprodan/podinfo.git
      tag: 6.3.4
      path: charts/podinfo
    flux:
      timeout: 5m
    postRenderers: []
    dependsOn:
      - name: monitoring
        namespace: bigbang
    values:
      replicaCount: 3

git:
  credentials:
    password: somepass
    username: someuser
registryCredentials:
  password: somepass
  registry: someregistry
  username: someuser

Provide any steps possible used to reproduce the error (ideally in an isolated fashion).

  1. git checkout 2.9.0
  2. cd chart
  3. helm template bb . --values values.yaml --values packages.yaml
  4. see error above

Additional Info

It would appear the top level helm object is not available within range operators. See issue with recommended solution to this problem https://github.com/helm/helm/issues/3684

BigBang Version

2.9.0

Edited by Daniel Palmer