Gitlab-agent upgrade using helm

Let’s say I have gitlab-agent installed in a cluster using helm chart v15.0.0

When I run helm upgrade as described in docs with --reuse-values:

helm repo update
helm upgrade --install gitlab-agent gitlab/gitlab-agent \
  --namespace gitlab-agent \
  --reuse-values

all the labels get updated in resources like

helm.sh/chart: gitlab-agent-1.5.0
app.kubernetes.io/version: "v15.4.0"

but the image itself stays in old version

image: registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/agentk:v15.0.0

Unless I specifically point it to v15.4.0 with command line value override.

Is that expected behaviour? If so, then just running helm upgrade with --reuse-values is not really a way to upgrade the agent in kubernetes.

Hi @pjetrek

you are right, thats a bug in documentation. Feel free to raise an issue or MR in GitLab tracker.

cheers