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

Fix remove binaries script for Amazon Linux and Flatcar #1176

Merged
merged 2 commits into from
Nov 26, 2020

Conversation

xmudrii
Copy link
Member

@xmudrii xmudrii commented Nov 26, 2020

What this PR does / why we need it:

Fix remove binaries script for Amazon Linux and Flatcar

  • Stop Kubelet before removing it
  • Force remove unit files
  • Reload systemd after removing units

Without this, running apply after removing binaries wouldn't work
because systemd service would still exist, so apply assumes that kubelet
is installed. However, the binary is not available, which causes apply
to fail to determine the kubelet version.

Does this PR introduce a user-facing change?:

Fix remove binaries script for Amazon Linux and Flatcar

/assign @kron4eg

* Stop Kubelet before removing it
* Force remove unit files
* Reload systemd after removing units

Without this, running apply after removing binaries wouldn't work
because systemd service would still exist, so apply assumes that kubelet
is installed. However, the binary is not available, which causes apply
to fail to determine the kubelet version.

Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
@xmudrii xmudrii requested a review from kron4eg November 26, 2020 15:53
@kubermatic-bot kubermatic-bot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Nov 26, 2020
@kubermatic-bot kubermatic-bot added the dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. label Nov 26, 2020
@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/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 26, 2020
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
@kubermatic-bot kubermatic-bot added the lgtm Indicates that a PR is ready to be merged. label Nov 26, 2020
@kubermatic-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 2b4b76b51411e6bdb7597391f32be9d0c425a3f3

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/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants