-
Notifications
You must be signed in to change notification settings - Fork 37
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
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 <[email protected]>
9730099
to
cd577de
Compare
Signed-off-by: Zhonghu Xu <[email protected]>
custom machine controller is very simple now:
it does two kinds of work: