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(provider): update join k3d function and rollback logic #616

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

sunyakun
Copy link

This PR fix the issue #615

  1. Clear the context config only when the cluster is not running.
  2. After creating the k3d cluster, set node.Rollback to true, this will enable automatic rollback of the k3d cluster in case of any errors.
  3. Fix the logic for generating k3d node name

@sunyakun
Copy link
Author

@JacieChao I am not authorized to access the Drone CI platform, so I do not know how to fix the above problem.

@orangedeng
Copy link
Member

orangedeng commented Jul 13, 2023

@JacieChao I am not authorized to access the Drone CI platform, so I do not know how to fix the above problem.

@sunyakun
The CI platform will only be online 8:00 am ~ 11:00 pm China time. And I set the CI to public now as we have community contributors now. cc @JacieChao

Copy link
Collaborator

@JacieChao JacieChao left a comment

Choose a reason for hiding this comment

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

Others LGTM
Thanks for your PR.

}
if state.Status != common.StatusRunning {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We also need to check state != nil to avoid the cluster not found situation.

@wLiIce
Copy link

wLiIce commented Jul 14, 2023

感谢sun对开源世界的贡献,母校为他骄傲。

@JacieChao
Copy link
Collaborator

@sunyakun Thanks for your contribution. PR Merged

@JacieChao JacieChao merged commit 5c54e6c into cnrancher:master Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants