Skip to content

Can't upgrade 1.0.2 --> 1.1.0 error with template "gitlab.registry.httpSecret.secret"

Summary

Trying to migrate from GitLab 11.2.3 -> 11.3.0 it appears that Helm is trying to upgrade me to chart 1.1.0. Upgrade fails with an error about "gitlab.registry.httpSecret.secret" This installation appears to have been created with chart version 1.0.1.

Steps to reproduce

  • Install GitLab 11.2.3 using the Helm charts
  • execute helm repo upgrade
  • execute helm upgrade --reuse-values gitlab gitlab/gitlab

Configuration used

$ helm get values gitlab
certmanager-issuer:
  email: reb@gitlab.com
global:
  hosts:
    domain: i2p.online
    externalIP: 35.236.213.66
minio:
  persistence:
    size: 30Gi

Current behavior

Failure to upgrade with error displayed below. 🙀

Expected behavior

I expected the upgrade to work 😃

Versions

  • Chart: 1.1.0 (not working) 1.0.2 (installed)
  • Platform:
    • Cloud: GKE
  • Kubernetes: (kubectl version)
    • Client: GitVersion:"v1.10.7"
    • Server: GitVersion:"v1.10.6-gke.2"
  • Helm: (helm version)
    • Client: 2.8.1
    • Server: 2.8.1

Relevant logs

$ helm upgrade --reuse-values gitlab gitlab/gitlab
Error: UPGRADE FAILED: render error in "gitlab/charts/shared-secrets/templates/configmap.yaml": template: gitlab/charts/shared-secrets/templates/configmap.yaml:14:3: executing "gitlab/charts/shared-secrets/templates/configmap.yaml" at <include (print $.Tem...>: error calling include: template: gitlab/templates/_registry.tpl:14:67: executing "gitlab.registry.httpSecret.secret" at <.Values.global.regis...>: can't evaluate field secret in type interface {}
$ helm history --max 5 gitlab
REVISION	UPDATED                 	STATUS    	CHART       	DESCRIPTION     
5       	Wed Sep  5 08:49:15 2018	SUPERSEDED	gitlab-1.0.1	Upgrade complete
6       	Wed Sep  5 10:09:40 2018	SUPERSEDED	gitlab-1.0.1	Upgrade complete
7       	Wed Sep  5 12:00:58 2018	SUPERSEDED	gitlab-1.0.2	Upgrade complete
8       	Fri Sep 14 12:08:42 2018	SUPERSEDED	gitlab-1.0.2	Upgrade complete
9       	Mon Sep 24 11:05:14 2018	DEPLOYED  	gitlab-1.0.2	Upgrade complete
Edited by Jason Plum