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

Add single node role #261

Merged
merged 2 commits into from Oct 29, 2021
Merged

Add single node role #261

merged 2 commits into from Oct 29, 2021

Conversation

kke
Copy link
Contributor

@kke kke commented Oct 28, 2021

Fixes #260

The config can now contain exactly one host with role: single. It will configure the host as a single node cluster as described in k0s documentation.

The validator will complain if there is more than one node when there a single role node is present.

The validator will now also complain if there are a) no kind of controllers b) no hosts at all.

The config loading + validation was refactored to happen in a central place instead of replicated in every sub-command.

The "os override" smoke-test was adapted to use a single node setup so that it gets tested.

@kke kke added the enhancement New feature or request label Oct 28, 2021
Add validation for only one single

Implement + adapt override test for smoking

Update docs

Lint

Switch role based on installflags

Heh

Adapt test

How is adding new files always so difficult
@kke kke merged commit fa4e6f6 into main Oct 29, 2021
@kke kke deleted the single-node-role branch October 29, 2021 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing support for single node role
1 participant