-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[appset in any namespace] ApplicationSet with same name in different namespaces conflict #16207
Comments
Maybe a simple error in the applicationset conditions if conflict name are found could be a suitable solution. Starting my investigation. |
After looking deeper it seems that
Looking at the other impacts |
Looking at the code I don't think |
I reproduced a sample usecase that can be run locally using |
I tested a fix. I will push an MR soon |
The fix has been tested locally. Having some issues in writting e2e. Continuing my investigation |
I added an e2e test. It was not so easy to update the environment to support another external namespace. |
* fix(16207): Fix name conflict in appset controller Signed-off-by: gmuselli <geoffrey.muselli@gmail.com> * fix(16207): e2e Signed-off-by: gmuselli <geoffrey.muselli@gmail.com> * Update test/e2e/fixture/applicationsets/utils/fixture.go Signed-off-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com> --------- Signed-off-by: gmuselli <geoffrey.muselli@gmail.com> Signed-off-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com> Co-authored-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com>
…rgoproj#16222) * fix(16207): Fix name conflict in appset controller Signed-off-by: gmuselli <geoffrey.muselli@gmail.com> * fix(16207): e2e Signed-off-by: gmuselli <geoffrey.muselli@gmail.com> * Update test/e2e/fixture/applicationsets/utils/fixture.go Signed-off-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com> --------- Signed-off-by: gmuselli <geoffrey.muselli@gmail.com> Signed-off-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com> Co-authored-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com> Signed-off-by: jmilic1 <70441727+jmilic1@users.noreply.github.com>
…rgoproj#16222) * fix(16207): Fix name conflict in appset controller Signed-off-by: gmuselli <geoffrey.muselli@gmail.com> * fix(16207): e2e Signed-off-by: gmuselli <geoffrey.muselli@gmail.com> * Update test/e2e/fixture/applicationsets/utils/fixture.go Signed-off-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com> --------- Signed-off-by: gmuselli <geoffrey.muselli@gmail.com> Signed-off-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com> Co-authored-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com>
…rgoproj#16222) * fix(16207): Fix name conflict in appset controller Signed-off-by: gmuselli <geoffrey.muselli@gmail.com> * fix(16207): e2e Signed-off-by: gmuselli <geoffrey.muselli@gmail.com> * Update test/e2e/fixture/applicationsets/utils/fixture.go Signed-off-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com> --------- Signed-off-by: gmuselli <geoffrey.muselli@gmail.com> Signed-off-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com> Co-authored-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com>
…rgoproj#16222) * fix(16207): Fix name conflict in appset controller Signed-off-by: gmuselli <geoffrey.muselli@gmail.com> * fix(16207): e2e Signed-off-by: gmuselli <geoffrey.muselli@gmail.com> * Update test/e2e/fixture/applicationsets/utils/fixture.go Signed-off-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com> --------- Signed-off-by: gmuselli <geoffrey.muselli@gmail.com> Signed-off-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com> Co-authored-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com> Signed-off-by: Kevin Lyda <kevin@lyda.ie>
…rgoproj#16222) * fix(16207): Fix name conflict in appset controller Signed-off-by: gmuselli <geoffrey.muselli@gmail.com> * fix(16207): e2e Signed-off-by: gmuselli <geoffrey.muselli@gmail.com> * Update test/e2e/fixture/applicationsets/utils/fixture.go Signed-off-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com> --------- Signed-off-by: gmuselli <geoffrey.muselli@gmail.com> Signed-off-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com> Co-authored-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com>
Checklist:
argocd version
.Describe the bug
When creating two ApplicationSet with same name in two different source namespaces. The name conflict in the applicationset-controller and the source namespace for the application is not taken into account resulting in infinite loop deleting child applications and re-triggering reconcile loop. Logs attached
Quick fix: Ensure there are no name conflicting
To Reproduce
Expected behavior
Screenshots
Version
Logs
The text was updated successfully, but these errors were encountered: