Helm upgrade fails due to missing .Values.serviceMonitor.enabled
When trying to upgrade from 16.0.1
to version 16.1.3
as recommended in https://docs.gitlab.com/ee/user/clusters/agent/install/index.html#update-the-agent-version :
helm upgrade gitlab-agent gitlab/gitlab-agent \
--namespace gitlab-agent \
--reuse-values \
--set image.tag=v16.1.3
I get following error:
Error: UPGRADE FAILED: template: gitlab-agent/templates/servicemonitor.yaml:1:14: executing "gitlab-agent/templates/servicemonitor.yaml" at <.Values.serviceMonitor.enabled>: nil pointer evaluating interface {}.enabled
I guess this is related to the new serviceMonitor manifest: https://gitlab.com/gitlab-org/charts/gitlab-agent/-/blob/main/templates/servicemonitor.yaml and the helm option --reuse-values
. The version 16.0.1
didn't had the value .Values.serviceMonitor.enabled
and therefore upgrade fails.
What is the best way to upgrade? Is it save to just omit the --reuse-values
option or would this break things?
Any help appreciated