-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
📖 Improve docs for KCP.status.ready & cluster.status.ControlPlaneReady #10355
📖 Improve docs for KCP.status.ready & cluster.status.ControlPlaneReady #10355
Conversation
@@ -99,6 +99,9 @@ func (r *KubeadmControlPlaneReconciler) updateStatus(ctx context.Context, contro | |||
} | |||
|
|||
if controlPlane.KCP.Status.ReadyReplicas > 0 { | |||
// NOTE: this field is part of the Cluster API contract and it is used to orchestrate provisioning. | |||
// The value of this field is never updated after provisioning is completed. Please use conditions | |||
// to check the operational state of the control plane. | |||
controlPlane.KCP.Status.Ready = true |
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 this doc should be added in the definition of field controlPlane.KCP.Status.Ready:
cluster-api/controlplane/kubeadm/api/v1beta1/kubeadm_control_plane_types.go
Lines 273 to 276 in 785ffa4
// Ready denotes that the KubeadmControlPlane API Server is ready to | |
// receive requests. | |
// +optional | |
Ready bool `json:"ready"` |
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.
Thanks for pointing this out, I've updated in the above mentioned file. Just thinking if there's any other location where the change would be required?
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.
Thanks. This also applies to the comment for field Cluster.status.ControlPlaneReady
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.
@pravarag Let's add a simila comment to ControlPlaneReady in cluster_types.go
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've updated the godocs for cluster_types with the latest commit.
f523781
to
9f0f4a2
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.
/area documentation
controlplane/kubeadm/api/v1beta1/kubeadm_control_plane_types.go
Outdated
Show resolved
Hide resolved
/retitle 📖Improve docs for KCP.status.ready & cluster.status.ControlPlaneReady |
981f411
to
4b033ca
Compare
You'll have to run |
4b033ca
to
3ac167b
Compare
3ac167b
to
b2855c2
Compare
@pravarag One |
e1d6346
to
6a93dc1
Compare
Done, updated with latest push. |
Thank you! /lgtm |
LGTM label has been added. Git tree hash: 2f238b370d98e66038f48bf6ef61587c69bdc9d9
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbueringer 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:
Improves documentation for the values of KCP.status.Ready & cluster.status.ControlPlaneReady fields
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 #8923