-
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
🌱 Log diffs for Cluster topology rollouts/patches #10690
🌱 Log diffs for Cluster topology rollouts/patches #10690
Conversation
Signed-off-by: Stefan Büringer [email protected]
/test pull-cluster-api-e2e-conformance-ci-latest-main |
@@ -450,7 +450,12 @@ func (r *Reconciler) reconcileCluster(ctx context.Context, s *scope.Scope) error | |||
return nil | |||
} | |||
|
|||
log.Infof("Patching %s", tlog.KObj{Obj: s.Current.Cluster}) | |||
changes := patchHelper.Changes() |
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.
has there been consideration to let this changes log be part of the patchHelper.Patch func?
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.
That's a good point. I think it would work for almost all cases. Except the rotation. For the rotation case we create a new patchHelper because we eventually decide (after diffing) that we have to create an entirely new object.
So that patchHelper is not aware of the old object / the diff.
/lgtm |
LGTM label has been added. Git tree hash: 457f2e1fe2bf345eff7f4affe5aefce5d25bfe1c
|
/assign @enxebre |
/approve /hold in case you want to wait for @enxebre |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrischdi 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 |
/hold cancel |
Signed-off-by: Stefan Büringer [email protected]
What this PR does / why we need it:
Follow-up of this PR #10628 for Cluster topology (also similar to #10688)
Some example logs
Setting a field in KubeadmControlPlane
Rotating a DockerMachineTemplate
Rotate the template
Patch MachineDeployment
MachineDeployment controller creates new MachineSet (this is from: #10688)
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Related to #8186