rancher-desktop
rancher-desktop copied to clipboard
Epic: Backend Refactoring (splitting out K8s)
We want to refactor the KubernetesBackend
related code to have a cleaner split between things that deal with the VM / runtime environment, and things involved in running Kubernetes. This is to make code dealing with disabling Kubernetes to be cleaner, as well as to limit the responsibility of each portion of code. It is also to help with follow-up work to use REST APIs for the UI.
This will need to consider the parallel work done in #1793 and related (where we split out the integration code), as well as the efforts around CLI / REST API (#1748, #1896).
Involved tasks:
- [x] #2160
- Use state changed events to mange helper processes lifetimes.
- [x] #2267
- [x] #2266
- [x] Rename
KubernetesBackend
toVMBackend
- [x] Add ability to execute commands to
VMBackend
(or other interface only exposed toKubernetesBackend
) - [ ] Create new
KubernetesBackend
interface- Callers still use
VMBackend
; it is just internally forwarded toKubernetesBackend
- [ ] Implement
KuberentesBackend
for WSL - [ ] Implement
KubernetesBackend
for Lima
- Callers still use
- [ ] Remove forwarding in
VMBackend
, main code usesKubernetesBackend
directly. - [ ] File follow-up epic to transition UI to use REST APIs
Moved immutable configuration up to better align with other plans.
FWIW, work has been ongoing in the mook-as/refactor branch (with various PRs already submitted from that branch).
The refactoring has been complete.