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

Improve unhealthy machine recreation process #891

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

makhov
Copy link
Contributor

@makhov makhov commented Jan 17, 2025

Currently, the remediation process will delete the machine, but in the same reconciliation cycle, we will recreate it again. It can lead to a infinite loop

Signed-off-by: Alexey Makhov <amakhov@mirantis.com>
@makhov makhov requested a review from a team as a code owner January 17, 2025 07:24
@@ -438,13 +437,19 @@ func (c *K0sController) reconcileMachines(ctx context.Context, cluster *clusterv
name := machineName(kcp, machineNamesToDelete, desiredMachineNames)
log.Log.Info("desire machine", "name", len(desiredMachineNames))

for _, mn := range deletedMachines.Names() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the actual change

@makhov makhov merged commit 358ab31 into k0sproject:main Jan 17, 2025
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants