Clarification on Ownership w/ ApplicationSet Controller in Any Namespace Mode #20476
noamichael
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone. I was debating opening an issue about this and making a PR to "fix it," but I'm not sure about the intended behavior.
Currently, ArgoCD's
ApplicationSet
controller has a feature where it can watch for ApplicationSet objects in any namespace. The controller parameter--applicationset-namespaces
controls the list of Namespaces that should be monitored. However, theApplicationSetReconciler
will actually still receiveUpdate
/Delete
/Generic
events forApplicationSet
objects created in any namespace, so (from my testing) it will attempt to updateApplicationSet
objects outside it's namespace list:argo-cd/applicationset/controllers/applicationset_controller.go
Lines 513 to 519 in aff5e61
Is this a security design choice? As in, if a user creates an
AppSet
somehow and the "Cluster-Wide" ArgoCD doesn't monitor the namespace of theAppSet
, it's suppose to delete it?I ran into this issue because I had a Cluster-Wide ArgoCD deployed and I attempted to deploy a namespaced ArgoCD as well in the same Kubernetes cluster. When
ApplicationSet Any Namespace
was enabled, the Cluster-wide Argo started deleting the namespaced ArgoCD's App sets.Please let me know the expected behavior.
Beta Was this translation helpful? Give feedback.
All reactions