Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-8077

Image Updater: write helm image-name with or without registry url

XMLWordPrintable

    • GitOps Tangerine Sprint 23

      Story (Required)

      Some helm charts contain image registry, image repository, and image tag, and helm engine always contatenate registry and repository to form the final image used in pod container. In this case, the image repository should use the short image name without the leading registry url, e.g., "bitnami/nginx", not "docker.io/bitnami/nginx", since the image registry is already present.

      When writing image updates to git repo helm values file, image updater always uses the full image name including the registry url. This does not work with charts using all 3 image fields. The "helm template" command will produce invalid image values like "image: docker.io/docker.io/bitnamilegacy/nginx:1.27.5", causing the pod to fail to start.

      Ideally, helm should be enhanced to detect the presence of registry url in image name when producing the final image value. But they think it's the issue with chart configuration. See similar issue reported by others https://github.com/cert-manager/cert-manager/issues/7476

      We should enhance image updater to use short form of image name in the above case, and keep the existing full image name for other cases.

      Background and Approach (Required)

      https://github.com/argoproj-labs/argocd-image-updater/issues/974

              cfang@redhat.com Cheng Fang
              cfang@redhat.com Cheng Fang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: