From d53e4e48460f8f7d3388f7354039291b505803d2 Mon Sep 17 00:00:00 2001 From: Wolfgang Kulhanek Date: Thu, 12 Nov 2026 16:20:57 +0100 Subject: [PATCH] ocp4_workload_openshift_gitops: use a UBI9 image for the kustomize-envvar sidecar The cmp sidecar executes the argocd-cmp-server binary mounted from the repo-server image. That image is argocd-rhel9, so the binary needs glibc 2.34, while the default sidecar image is UBI8 with glibc 2.28. The sidecar crashlooped on every cluster that enabled the plugin: /var/run/argocd/argocd-cmp-server: /lib64/libc.so.6: version GLIBC_2.34 not found version GLIBC_2.32 not found With the repo-server down no Application can generate manifests, so every sync fails with a ComparisonError. Switching the default to the ubi9 tag of the same image fixes it; the tag carries the same kustomize, helm and perl tooling. Verified on a live cluster: the sidecar reaches 2/2 Running with 0 restarts and the Application that had been stuck goes from Unknown to Synced. --- roles/ocp4_workload_openshift_gitops/defaults/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/ocp4_workload_openshift_gitops/defaults/main.yml b/roles/ocp4_workload_openshift_gitops/defaults/main.yml index d8cba24..4edee15 100644 --- a/roles/ocp4_workload_openshift_gitops/defaults/main.yml +++ b/roles/ocp4_workload_openshift_gitops/defaults/main.yml @@ -130,8 +130,10 @@ ocp4_workload_openshift_gitops_resource_health: "" # Configure the Kustomize plugin for ArgoCD. # This plugin allows ArgoCD to run Kustomize on manifests that require environment variable substitution. ocp4_workload_openshift_gitops_kustomize_plugin: false -# The image must contain Perl and Kustomize. -ocp4_workload_openshift_gitops_kustomize_plugin_image: quay.io/devfile/universal-developer-image:ubi8-latest +# The image must contain Perl and Kustomize, and must be UBI9 based: the sidecar +# runs the argocd-cmp-server binary mounted from the repo-server image, which is +# argocd-rhel9 and needs glibc 2.34. +ocp4_workload_openshift_gitops_kustomize_plugin_image: quay.io/devfile/universal-developer-image:ubi9-latest # Environment variables to pass to the Kustomize plugin. # GitOps repo based on Kustomize can use these variables.