Open PhanLe1010 opened 3 years ago
The new resource monitoring has been introduced at https://github.com/longhorn/longhorn-manager/commit/5788939bf8c558fecaf906c81407dbd048d502dc when the orphan controller gets introduced in 1.3.0. So all the refactoring will be based on this.
cc @derekbit @shuo-wu
We should consider refactoring the logic for engine and instance manager monitoring logic according to this suggestion https://github.com/longhorn/longhorn-manager/pull/854#issuecomment-812101940
The idea is that the monitor is keeping state of the CR and ensuring a requeue of the CR when there is new update. The main sync function will be the one who makes the RS get/update calls to the DS.
DoD
Refactor the controllers: