Error upgrading gitlab from 15.11.2 to 16.0.1 (helm)

Hi,
I’m having this error upgrading gitlab with helm:

NAME CHART VERSION APP VERSION DESCRIPTION
gitlab/gitlab 7.0.1 v16.0.1 The One DevOps Platform
gitlab/gitlab-agent 1.14.0 v16.0.1 GitLab Agent for Kubernetes is a way to integra…
gitlab/gitlab-omnibus 0.1.37 GitLab Omnibus all-in-one bundle
gitlab/gitlab-runner 0.53.1 16.0.1 GitLab Runner
gitlab/gitlab-zoekt 0.3.0 0.0.1 A Helm chart for deploying Zoekt as a search en…

UPGRADE GITLAB

Error: UPGRADE FAILED: parse error at (gitlab/charts/registry/templates/configmap.yaml:62): function “dig” not defined

Currently I’m on:

NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
gitlab ar-local-lab-gitlab 11 2023-05-08 10:12:00.95460528 -0300 -03 deployed gitlab-6.11.2 15.11.2

Does any one know what’s the problem? I never had issues upgrading before.

Regards,

I had a similar problem … the ‘dig’ error is due to a dependency to a newer version of helm (which uses a newer version of go with that function defined.

Unfortunately, upgrading th the latest version of helm didn’t solve the problem. At that point, it tried to apply illegal mods to the redis and postgres StatefulSets … which I couldn’t figure out how to overcome. In the process of trying to work it out – including downgrading to the latest 15.x.x version – I ended up scrambling the redis database to the point where it wouldn’t even start up.

My solution was to do a clean install of the 15.x.x version, restore my last good backup, and then export everything. I then did a clean install of 16.0.1 and imported all the groups/projects. Not a clean or easy process, but it did succeed.