-
Notifications
You must be signed in to change notification settings - Fork 1.4k
⚠️Add Status.ControlPlaneInitialized field #1331
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
⚠️Add Status.ControlPlaneInitialized field #1331
Conversation
[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 |
/assign @chuckha |
We'll need to update the kubeadm provider as well to reflect this change |
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.
world's tinies nit
lgtm otherwise
436733f
to
0d2e5df
Compare
clusterPatch := client.MergeFrom(cluster.DeepCopy()) | ||
cluster.Annotations[v1alpha2.ClusterAnnotationControlPlaneReady] = "true" | ||
cluster.Status.ControlPlaneInitialized = true | ||
if err := r.Client.Patch(ctx, cluster, clusterPatch); err != nil { |
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.
Is this patch something that we need to be doing here or should we be handling it with the deferred patch?
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.
This is the only place we're actually patching the Cluster, long term (v1alpha3) we might move this to another controller, but seems ok to be here for now to minimize 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.
That said, I pushed an update to use patch.Helper
util package :)
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.
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.
Oh, now I see that we are updating this as part of the Machine Controller... Should we be, though?
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.
We shouldn't, but moving this logic to the Cluster controller is a major change, wdyt?
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.
I think we should at least have an issue to track
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.
Signed-off-by: Vince Prignano <[email protected]>
0d2e5df
to
d69b905
Compare
/lgtm |
Signed-off-by: Vince Prignano [email protected]
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #1243