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

Check does kubelet.conf exists before trying to join static worker node #1485

Merged
merged 1 commit into from
Sep 2, 2021

Conversation

xmudrii
Copy link
Member

@xmudrii xmudrii commented Sep 2, 2021

What this PR does / why we need it:

kubeone apply determines if the static worker node is already joined to the cluster by verifying does /etc/kubernetes/kubelet.conf file exists. We introduced a regression between 1.2.3 and 1.3.0-alpha.0 by checking for admin.conf instead of kubelet.conf, which is fixed by this PR.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1461

Does this PR introduce a user-facing change?:

Skip already provisioned static worker nodes on kubeone apply

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
@kubermatic-bot kubermatic-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. labels Sep 2, 2021
@kubermatic-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: xmudrii

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

@kubermatic-bot kubermatic-bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 2, 2021
@mate4st
Copy link
Contributor

mate4st commented Sep 2, 2021

/lgtm

@kubermatic-bot kubermatic-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 2, 2021
@kubermatic-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: dfb88d5423aa5dfeb959fe0f5b3dfcd14e9eda55

@kubermatic-bot kubermatic-bot merged commit cdfa2e6 into master Sep 2, 2021
@kubermatic-bot kubermatic-bot added this to the KubeOne 1.3 milestone Sep 2, 2021
@kubermatic-bot kubermatic-bot deleted the fix-1461 branch September 2, 2021 09:19
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. dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. lgtm 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.

Error while joining already joined nodes
3 participants