Update to latest Helm charts 18.2.0 / 18.2.1 broken? executing "checkDuplicateKeyFromEnv" at <$rootScope.Values.extraEnv>: wrong type for value;

When trying to update to the latest Helm chart we see the following error:

helm upgrade --install -n $NS --create-namespace $RELEASE gitlab/gitlab --set gitlab.migrations.enabled=true -f ${RELEASE}_${date}_upg.yml --version v9.2.1 --dry-run
Error: UPGRADE FAILED: template: gitlab/charts/gitlab/charts/gitlab-shell/templates/deployment.yaml:111:16: executing "gitlab/charts/gitlab/charts/gitlab-shell/templates/deployment.yaml" at <include "gitlab.godebug.env" $>: error calling include: template: gitlab/templates/_helpers.tpl:658:27: executing "gitlab.godebug.env" at <include "checkDuplicateKeyFromEnv" (dict "rootScope" . "keyToFind" "GODEBUG")>: error calling include: template: gitlab/templates/_helpers.tpl:643:71: executing "checkDuplicateKeyFromEnv" at <$rootScope.Values.extraEnv>: wrong type for value; expected map[string]interface {}; got interface {}

The same happens when trying 8.2.0 instead of 8.2.1. We believe it has to do with this commit:

Set GODEBUG defaults and fix env override checks (abd4758a) · Commits · GitLab.org / charts / GitLab Chart · GitLab

We have removed all appearanes of extraEnv in our yaml file. But it still fails.

Versions

Please add an x whether options apply, and add the version information.

  • [ X] Self-managed
  • GitLab.com SaaS
  • Dedicated

Versions:

Current: v18.1.3
Update: 18.2.0 / 18.2.1

Thanks

1 Like

I had the same issue. I realized I’m using old version of Helm CLI. The error disappeared when I upgraded my Helm CLI, so I hope this will help you as well.

1 Like