-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
implement custom machine controller #106
Conversation
✅ Deploy Preview for preliminary-kurator canceled.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
582b865
to
9730099
Compare
|
||
"github.com/pkg/errors" |
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.
if err := r.externalTracker.Watch(log, obj, &handler.EnqueueRequestForOwner{OwnerType: &clusterv1alpha1.CustomMachine{}}); err != nil { | ||
return ctrl.Result{}, err | ||
} | ||
// TODO: Set customMachine.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.
redundant?
@@ -50,6 +50,8 @@ type CustomMachineSpec struct { | |||
// CustomMachineStatus represents the current status of the machine. | |||
type CustomMachineStatus struct { | |||
// TODO add state. | |||
// Indicate whether the machines are ready. | |||
Ready *bool `json:"ready,omitempty"` |
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.
add a TODO for display this in kubectl get custommachine
Signed-off-by: Zhonghu Xu <xuzhonghu@huawei.com>
9730099
to
cd577de
Compare
custom machine controller is very simple now:
it does two kinds of work: