cnrancher / autok3s

Run K3s Everywhere
https://www.suse.com
Apache License 2.0
781 stars 77 forks source link

fix(autok3s): Support disabling rollback in API #622

Closed orangedeng closed 1 year ago

orangedeng commented 1 year ago

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 https://github.com/cnrancher/autok3s/issues/504

orangedeng commented 1 year ago

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