From 7a9e999a25691194949bc596e9ced1c8a81dae33 Mon Sep 17 00:00:00 2001 From: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com> Date: Thu, 4 Apr 2024 16:43:43 -0400 Subject: [PATCH] Fix the PolicyGenerator ArgoCD Policy ref: https://issues.redhat.com/browse/ACM-10650 Signed-off-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com> (cherry picked from commit 347df6f4fcdb0c330c9583fbb15c365ccb39c026) --- .../policy-openshift-gitops-policygenerator.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/community/CM-Configuration-Management/policy-openshift-gitops-policygenerator.yaml b/community/CM-Configuration-Management/policy-openshift-gitops-policygenerator.yaml index f8a79da4..5dadd254 100644 --- a/community/CM-Configuration-Management/policy-openshift-gitops-policygenerator.yaml +++ b/community/CM-Configuration-Management/policy-openshift-gitops-policygenerator.yaml @@ -36,15 +36,14 @@ spec: initContainers: - args: - -c - - cp /etc/kustomize/plugin/policy.open-cluster-management.io/v1/policygenerator/PolicyGenerator - /policy-generator/PolicyGenerator + - cp /policy-generator/PolicyGenerator-not-fips-compliant /policy-generator-tmp/PolicyGenerator command: - /bin/bash - image: 'registry.redhat.io/rhacm2/multicluster-operators-subscription-rhel8:v{{ (lookup "operator.open-cluster-management.io/v1" "MultiClusterHub" "open-cluster-management" "multiclusterhub").status.currentVersion }}' + image: '{{ (index (lookup "apps/v1" "Deployment" "open-cluster-management" "multicluster-operators-hub-subscription").spec.template.spec.containers 0).image }}' name: policy-generator-install volumeMounts: - mountPath: /policy-generator - name: policy-generator + name: policy-generator-tmp volumeMounts: - mountPath: /etc/kustomize/plugin/policy.open-cluster-management.io/v1/policygenerator name: policy-generator