gitops-operator
gitops-operator copied to clipboard
Added accounts always reversed
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
- Add e.g.
accounts.image-updater: apikey
in the cmargocd-cm
inopenshift-gitops
- Save
- 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.
Hi, the Operator owns the argocd-cm
. Please use the extraConfig
field in the ArgoCD
's spec, e.g.
spec:
extraConfig:
accounts.image-updater: ....
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.
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.
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!
Not fix yet for GitOps Operator 1.11.2