Open sachaos opened 5 days ago
Looks like argocd-controller
is what should be there for server-side apply.
// ArgoCDSSAManager is the default argocd manager name used by server-side apply syncs
ArgoCDSSAManager = "argocd-controller"
While argocd-application-controller
is some default.
Can you share which fields are shown as managed by which controller?
@andrii-korotkov-verkada Yes. This is the managedFields.
Ah, my guess would be that for different operation there can be different managers for the same fields.
Please let me know if you need more information!
Is there an immediate issue with having different managers?
Checklist:
argocd version
.Describe the bug
When resources like Deployments are created, the managedFields indicates that they were applied by
argocd-controller
. However, when creating a Role, the managedFields shows a manager namedargocd-application-controller
.Is this the expected behavior?
Sometimes, I notice that a Deployment has argocd-application-controller set as the manager. I’m not sure how to reproduce this behavior now. If you know the conditions under which this manager is used, please let me know.
To Reproduce
Create a Kubernetes cluster by kind. I think using kind is not required to reproduce the problem.
Setup ArgoCD.
Create
app.yaml
to load manifest from https://github.com/sachaos/20241117-argocd-application-controller . The repository contains the manifests of a Deployment and a Role.Apply
app.yaml
.Check the manager of the created Role. We can see there is a
argocd-application-controller
.Check the manager of the created Deployment. We can not see there is a
argocd-application-controller
. I think this is the expected behavior.Expected behavior
The manager
argocd-application-controller
does not appear in managedFields.Screenshots
Version
Logs