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(autok3s): Support disabling rollback in API #622

Closed

Conversation

orangedeng
Copy link
Member

Currently disabling rollback only works in CLI. To change the field to string to support it in API.

The root cause is MergeConfig from pkg/utils/util.go. If setting rollback to bool false, it won't be set to sourceConfig as it is zero value of bool type. By changing it to string to fix it.

Refer to #504

Currently disabling rollback only works in CLI. To change the field to
string to support it in API.
@orangedeng orangedeng requested a review from JacieChao August 7, 2023 02:59
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.

I recommend adding a bool type check here instead of changing the field type because there are other kinds of bool type fields also in cluster struct.

@orangedeng
Copy link
Member Author

Closing this PR as it will be fixed in another PR.

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.

2 participants