Skip to content

[Bug] Helm global registry setting not working properly

Kyverno Version

1.13.0

Description

I've upgraded helm chart from 3.3.2 to 3.3.3 and noticed that my global registry setting stopped working for some of the images.

Old version:

$ helm template kyverno/kyverno --set global.image.registry=myregistry --set crds.install=false --version 3.3.2| grep image:

          image: "myregistry/kyverno/kyvernopre:v1.13.0"
          image: "myregistry/kyverno/kyverno:v1.13.0"
          image: "myregistry/kyverno/background-controller:v1.13.0"
          image: "myregistry/kyverno/cleanup-controller:v1.13.0"
          image: "myregistry/kyverno/reports-controller:v1.13.0"
      image: busybox:1.35
      image: busybox:1.35
      image: busybox:1.35
      image: busybox:1.35
      image: busybox:1.35
          image: "myregistry/bitnami/kubectl:1.30.2"
          image: "myregistry/bitnami/kubectl:1.30.2"
          image: "myregistry/kyverno/kyverno-cli:v1.13.0"
          image: "myregistry/bitnami/kubectl:1.30.2"

New version:

$ helm template kyverno/kyverno --set global.image.registry=myregistry --set crds.install=false --version 3.3.3| grep image:

          image: "ghcr.io/kyverno/kyvernopre:v1.13.1"
          image: "ghcr.io/kyverno/kyverno:v1.13.1"
          image: "myregistry/kyverno/background-controller:v1.13.1"
          image: "myregistry/kyverno/cleanup-controller:v1.13.1"
          image: "myregistry/kyverno/reports-controller:v1.13.1"
      image: busybox:1.35
      image: busybox:1.35
      image: busybox:1.35
      image: busybox:1.35
      image: busybox:1.35
          image: "myregistry/bitnami/kubectl:1.30.2"
          image: "myregistry/bitnami/kubectl:1.30.2"
          image: "ghcr.io/kyverno/kyverno-cli:v1.13.1"
          image: "myregistry/bitnami/kubectl:1.30.2"

This is caused by !11482 (merged) as the image setting is taken from default chart values which is now overwriting the global setting

Slack discussion

No response

Troubleshooting

  • I have read and followed the documentation AND the troubleshooting guide.
  • I have searched other issues in this repository and mine is not recorded.