The original controller does not contain leader election, which may cause uncertainty or abnormal behavior in case the DRA controller Pod crashes.
The new function run wraps the main logic, and only the leader can execute function StartController. Therefore, the reliability of controller seems to be improved.
The original controller does not contain leader election, which may cause uncertainty or abnormal behavior in case the DRA controller Pod crashes. The new function
run
wraps the main logic, and only the leader can execute functionStartController
. Therefore, the reliability of controller seems to be improved.