Skip to content
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

Merged
merged 2 commits into from
Dec 1, 2022

Conversation

hzxuzhonghu
Copy link
Member

custom machine controller is very simple now:

it does two kinds of work:

  1. set owner reference to ssh key secret
  2. mark CustomMachine ready when ssh key secret found

@netlify
Copy link

netlify bot commented Nov 29, 2022

Deploy Preview for preliminary-kurator canceled.

Name Link
🔨 Latest commit 65a296f
🔍 Latest deploy log https://app.netlify.com/sites/preliminary-kurator/deploys/6385bf375492a90008390415

@kurator-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please ask for approval from hzxuzhonghu after the PR has been reviewed.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


"github.com/pkg/errors"
Copy link
Contributor

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
Copy link
Contributor

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"`
Copy link
Contributor

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]>
@hzxuzhonghu hzxuzhonghu merged commit 603225a into kurator-dev:main Dec 1, 2022
@hzxuzhonghu hzxuzhonghu deleted the custom-machine branch December 1, 2022 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants