Skip to content

Ensure updateAndSetOwner() updates Placement resource only once as well as DRPC #1066

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

Open
BenamarMk opened this issue Sep 13, 2023 · 1 comment · May be fixed by #1874
Open

Ensure updateAndSetOwner() updates Placement resource only once as well as DRPC #1066

BenamarMk opened this issue Sep 13, 2023 · 1 comment · May be fixed by #1874
Assignees

Comments

@BenamarMk
Copy link
Member

The DRPC function updateAndSetOwner() calls the client Update() function multiple times within the same reconciliation. This causes resource version conflict and delays of the reconciliation execution.

A potential solution is to update the Placement and DRPC only once if possible. In other words;

  1. Placement: Call Update() after annotation and finalizer are added
  2. DRPC: Call Update() after finalizer and DRPC owner are added.

This issue is in response to this comment

@rakeshgm rakeshgm self-assigned this Sep 15, 2023
@BenamarMk BenamarMk assigned BenamarMk and unassigned rakeshgm Feb 24, 2025
@OdedViner
Copy link
Contributor

I am working on this issue

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 a pull request may close this issue.

3 participants