charts: Latest version: nil pointer on .Release.Name

What is the bug?

When using the latest version released for Airflow 2 (v8.0.2), and using the template command, I obtain a nil exception on .Release.Name

Error: UPGRADE FAILED: template: airflow/charts/airflow/templates/worker/worker-statefulset.yaml:170:22: executing "airflow/charts/airflow/templates/worker/worker-statefulset.yaml" at <include "airflow.volumes" (dict "Values" .Values "extraPipPackages" $extraPipPackages "extraVolumes" $extraVolumes)>: error calling include: template: airflow/charts/airflow/templates/_helpers/pods.tpl:238:19: executing "airflow.volumes" at <include "airflow.fullname" .>: error calling include: template: airflow/charts/airflow/templates/_helpers/common.tpl:6:24: executing "airflow.fullname" at <.Release.Name>: nil pointer evaluating interface {}.Name
helm.go:94: [debug] template: airflow/charts/airflow/templates/worker/worker-statefulset.yaml:170:22: executing "airflow/charts/airflow/templates/worker/worker-statefulset.yaml" at <include "airflow.volumes" (dict "Values" .Values "extraPipPackages" $extraPipPackages "extraVolumes" $extraVolumes)>: error calling include: template: airflow/charts/airflow/templates/_helpers/pods.tpl:238:19: executing "airflow.volumes" at <include "airflow.fullname" .>: error calling include: template: airflow/charts/airflow/templates/_helpers/common.tpl:6:24: executing "airflow.fullname" at <.Release.Name>: nil pointer evaluating interface {}.Name
UPGRADE FAILED
main.newUpgradeCmd.func2
	/home/circleci/helm.sh/helm/cmd/helm/upgrade.go:156
github.com/spf13/cobra.(*Command).execute
	/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:842
github.com/spf13/cobra.(*Command).ExecuteC
	/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950
github.com/spf13/cobra.(*Command).Execute
	/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
main.main
	/home/circleci/helm.sh/helm/cmd/helm/helm.go:93
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1373

The command I I use is:

helm3 template airflow [... options]

The dependency on Release.Name has been introduced in the version 8.0.0

Note: I have also tried helm3 template airflow airflow [... options] (to give an explicit name)

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19 (10 by maintainers)

Most upvoted comments

Ok so … the problem is completely unrelated, it’s because of the “knownHosts” configuration. If you use it as recommended in the docs, this breaks the build with the error mentioned above.

      sshKnownHosts: |-
        github.com ssh-rsa xxxxxxxxxx