Skip to content

skip patch ObservedGeneration if no change#337

Merged
unmarshall merged 2 commits into
ai-dynamo:mainfrom
xulinfei1996:xlf/opt-reconcile
Jan 18, 2026
Merged

skip patch ObservedGeneration if no change#337
unmarshall merged 2 commits into
ai-dynamo:mainfrom
xulinfei1996:xlf/opt-reconcile

Conversation

@xulinfei1996

@xulinfei1996 xulinfei1996 commented Jan 16, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind enhancement

What this PR does / why we need it:

Optimizes number of Patch calls made to the kube-apiserver by explicitly inspecting if there is a change done to ObservedGeneration w.r.t Generation. If an update is required, only then make the patch call else skips making the call.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a API change?

NONE

Additional documentation e.g., enhancement proposals, usage docs, etc.:


@renormalize renormalize left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took the liberty to adapt changes to PCSG as well. thanks for the PR!

xulinfei and others added 2 commits January 16, 2026 10:30
Signed-off-by: xulinfei <xulinfei@bytedance.com>
Signed-off-by: Saketh Kalaga <saketh.kalaga@sap.com>
@unmarshall unmarshall added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. area/performance Categorizes issue/PR as related to performance kind/enhancement Categorizes issue or PR as related to a new feature, enhancement or improvement labels Jan 17, 2026
@unmarshall

unmarshall commented Jan 17, 2026

Copy link
Copy Markdown
Collaborator

@xulinfei1996 Thanks for the PR. It would be great if you could follow some expectations that are required to raise a PR:

  1. Create an Issue
  2. Ensure that it is labeled with a kind, area
  3. In the Issue have sufficient description of what the issue is as this establishes a context for reviewers.
  4. In the PR mention in brief what you propose and which issue it fixes.

For now i have labeled this issue and added some description to the PR.

@unmarshall unmarshall merged commit 24ae6c1 into ai-dynamo:main Jan 18, 2026
8 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/performance Categorizes issue/PR as related to performance kind/enhancement Categorizes issue or PR as related to a new feature, enhancement or improvement size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants