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

installer: add role to specify the capability of node #604

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

Vicente-Cheng
Copy link
Contributor

@Vicente-Cheng Vicente-Cheng commented Nov 28, 2023

Problem:

Support specify the node role

Solution:
Add install.role to choose the wanted role.

Related Issue:
harvester/harvester#3266

Test plan:
Please check with harvester/harvester#4781

@ibrokethecloud
Copy link
Contributor

when a machine is created with install only mode, and then later configured to join, the define role panel does not pop up.

we should revisit this workflow as well.

@Vicente-Cheng
Copy link
Contributor Author

when a machine is created with install only mode, and then later configured to join, the define role panel does not pop up.

we should revisit this workflow as well.

Hi @ibrokethecloud,
Thanks for the review!

I revisited this flow and updated it with the following scenario

  1. normal installation
    • Create mode: DiskPanel -> HostnamePanel
    • Join mode: RolePanel -> DiskPanel -> HostnamePanel
  2. install mode (after reboot)
    • Create mode: HostnamePanel
    • Join mode: RolePanel -> HostnamePanel

Please help to recheck for it.
Thanks!

Copy link
Contributor

@ibrokethecloud ibrokethecloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. thanks.

pkg/console/util.go Outdated Show resolved Hide resolved
  Now support `default` or `etcd` role.
  - default means the master node (control-plane, etcd, master)
  - etcd means the etcd node (etcd)

  NOTE: this only supports with join mode because the first node needs to
  be the master node.

Signed-off-by: Vicente Cheng <[email protected]>
Copy link
Member

@bk201 bk201 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@bk201 bk201 merged commit 35f62da into harvester:master Dec 7, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants