Skip to content
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

Fix crash on 2.7.x due to use of List to read applications #273

Merged
merged 4 commits into from
May 6, 2023

Conversation

onematchfox
Copy link
Collaborator

@onematchfox onematchfox commented May 4, 2023

API has changed to returning a blank list rather than NotFound when using the List endpoint to retrieve applications. This exposed flaws in the logic (introduced in #254) related to the checking how many items were returned in the ApplicationList. This PR addresses those flaws.

Closes #272

@onematchfox onematchfox changed the title Fix use of List to read applications Fix crash on 2.7.x due to use of List to read applications May 4, 2023
@onematchfox onematchfox marked this pull request as draft May 4, 2023 14:48
@onematchfox onematchfox marked this pull request as ready for review May 4, 2023 18:40
@onematchfox
Copy link
Collaborator Author

Note: had to re-work some of the tests as these were constantly failing with the latest version. Can't quite explain the behaviour though.

@onematchfox onematchfox merged commit 33775f3 into argoproj-labs:master May 6, 2023
@onematchfox onematchfox deleted the fix/application branch May 6, 2023 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin crash with ArgoCD 2.7.1
2 participants