gitops-operator icon indicating copy to clipboard operation
gitops-operator copied to clipboard

Added accounts always reversed

Open haf-tech opened this issue 1 year ago • 5 comments

Describe the bug Trying to add a user to the ConfigMap argocd-cm, but after saving the value/field data.accounts is reversed. From the ArgoCD docu/RH article is this field not managed by the operator

To Reproduce

  1. Add e.g. accounts.image-updater: apikey in the cm argocd-cm in openshift-gitops
  2. Save
  3. Reload, accounts.image-updater... is gone

Expected behavior accounts is still in cm

Additional context

OCP version 4.10.22_1528 Red Hat OpenShift GitOps, 1.6.0 provided by Red Hat Inc.

haf-tech avatar Aug 31 '22 14:08 haf-tech

Hi, the Operator owns the argocd-cm. Please use the extraConfig field in the ArgoCD's spec, e.g.

spec:
  extraConfig:
    accounts.image-updater: ....

jannfis avatar Aug 31 '22 16:08 jannfis

thanks @jannfis then we have to fix/update the article https://access.redhat.com/solutions/6637881

argocd-cm is controlled by the operator but data.accounts is not.

haf-tech avatar Sep 01 '22 16:09 haf-tech

This is a feature of release 1.6 and 1.6 is not yet marked as the stable release yet (at least that is what I can see in OpenShift). The article predates version 1.6, in case anyone is wondering why the extraConfig is missing.

turbolocust avatar Sep 26 '22 13:09 turbolocust

Thanks for the hint regarding extraConfig! Nonetheless the article https://access.redhat.com/solutions/6637881 is wrong or - better - misleading as it states "Red Hat OpenShift Container Platform 4.x" as environment, without any further restrictions. It should then say "for GitOps Operator <1.6". This is important as this article is proposed when you want to open a RH support case with this topic- and it just does not work with newer Operator versions (1.7 on our side).

Thanks!

herzogf avatar Mar 21 '23 12:03 herzogf

Not fix yet for GitOps Operator 1.11.2

liuxiaoyu-git avatar Mar 20 '24 01:03 liuxiaoyu-git