-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🌱 Topology controller upgrades templates in place when there are only metadata changes #5416
🌱 Topology controller upgrades templates in place when there are only metadata changes #5416
Conversation
/hold |
/hold cancel |
Looks good, very nice optimization only one comment regarding an additional test case |
// If there are no changes in the spec, and thus only changes in metadata, instead of doing a full template | ||
// rotation we patch the object in place. This avoids recreating machines. | ||
if !patchHelper.HasSpecChanges() { | ||
log.Infof("Patching %s", tlog.KObj{Obj: in.desired}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be log.V(3) consistently with above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the actual changes are logged at v0, like in this cases, while at v3 we are adding tracing info e.g. surfacing that when we detected no changes.
@sbueringer @enxebre comment addressed PTAL |
/lgtm |
eef2cf0
to
f185d8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
This PR makes the topology controller to upgrade templates in place when there are only metadata changes (instead of doing a template rotation, which in turns triggers a machine rollout)
Which issue(s) this PR fixes:
Fixes #5413