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

refactor(controller): optimize PDB creation request #12974

Merged

Conversation

agilgur5
Copy link
Member

@agilgur5 agilgur5 commented Apr 24, 2024

Stumbled upon this while discovering #12966.
#2286 seems to make an unnecessary request and that code still exists.

Motivation

Hit the k8s apiserver less, wait on network requests less

Modifications

  • instead of doing a get then a create, just do a create and ignore if it already exists

Verification

The test from #10944 should still pass

- instead of doing a `get` then a `create`, just do a `create` and ignore if it already exists

Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
@agilgur5 agilgur5 added the area/controller Controller issues, panics label Apr 24, 2024
@juliev0 juliev0 merged commit 30ca369 into argoproj:main Apr 27, 2024
29 checks passed
@agilgur5 agilgur5 deleted the refactor-optimize-pdb-creation-request branch April 27, 2024 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/controller Controller issues, panics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants