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

Allow empty kube_node group #11248

Merged

Conversation

VannTen
Copy link
Contributor

@VannTen VannTen commented May 30, 2024

What type of PR is this?
/kind feature

What this PR does / why we need it:
While uncommon, provisioning only a control plane is a valid use case,
so don't block it.

Which issue(s) this PR fixes:
Fixes #11245

Does this PR introduce a user-facing change?:

Allow to run kubespray with an empty kube_node group, to provision only the control plane

/cherrypick release-2.25

While uncommon, provisioning only a control plane is a valid use case,
so don't block it.
@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels May 30, 2024
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 30, 2024
@ant31
Copy link
Contributor

ant31 commented May 30, 2024

Maybe 'warn' the user about it, so it's intentional to have only control plane.
debug message, or ignored error could work.

Should we add a test-case deploying control-plane only ?

@VannTen
Copy link
Contributor Author

VannTen commented May 30, 2024 via email

@ant31
Copy link
Contributor

ant31 commented May 30, 2024

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 30, 2024
@VannTen
Copy link
Contributor Author

VannTen commented May 30, 2024 via email

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mzaian, VannTen

The full list of commands accepted by this bot can be found here.

The pull request process is described 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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 30, 2024
@k8s-ci-robot k8s-ci-robot merged commit 3082fa3 into kubernetes-sigs:master May 30, 2024
77 checks passed
@VannTen
Copy link
Contributor Author

VannTen commented May 30, 2024

/cherrypick release-2.25

@k8s-infra-cherrypick-robot

@VannTen: new pull request created: #11249

In response to this:

/cherrypick release-2.25

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

ehsan310 pushed a commit to ehsan310/kubespray that referenced this pull request May 31, 2024
While uncommon, provisioning only a control plane is a valid use case,
so don't block it.
@@ -1,10 +1,7 @@
---
- name: Stop if either kube_control_plane or kube_node group is empty
Copy link
Contributor

Choose a reason for hiding this comment

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

description is no longer accurate

Rickkwa pushed a commit to Rickkwa/kubespray that referenced this pull request Jun 26, 2024
While uncommon, provisioning only a control plane is a valid use case,
so don't block it.
@yankay yankay mentioned this pull request Aug 28, 2024
davidumea pushed a commit to elastisys/kubespray that referenced this pull request Oct 25, 2024
While uncommon, provisioning only a control plane is a valid use case,
so don't block it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

00040-verify failed when kube_node is empty
7 participants