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

Bugfix kubeadm cleanup #333

Merged
merged 5 commits into from
Jan 19, 2022

Conversation

NilanjanDaw
Copy link
Contributor

What this PR does / why we need it:
Fix node clean-up logic to skip node reset in case the k8s installation fails

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 #298

NilanjanDaw added 2 commits January 17, 2022 16:20
- Add a test case for node reset skip logic
- fixes patchHelper bug in patching the byoHost
- inverts skip logic to only run in case of k8s install success
- k8s component uninstallation will also be skipped along-side node reset
in case k8sComponentsInstallationSucceeded is False
- Refactor and cleanup hostCleanup functions with helper functions
@NilanjanDaw NilanjanDaw requested a review from anusha94 January 18, 2022 10:33
@NilanjanDaw NilanjanDaw requested a review from dharmjit January 19, 2022 07:01
@NilanjanDaw NilanjanDaw requested a review from anusha94 January 19, 2022 07:54
Copy link
Contributor

@anusha94 anusha94 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@dharmjit dharmjit left a comment

Choose a reason for hiding this comment

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

lgtm

@dharmjit dharmjit merged commit 960e54f into vmware-tanzu:main Jan 19, 2022
@NilanjanDaw NilanjanDaw deleted the bugfix-kubeadm-cleanup branch January 19, 2022 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Host cleanup fails with kubeadm not found error
4 participants