mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
Previously we'd just tear everything down and recreate it, which makes for a pretty bad experience because it causes downtime whenever the service controller restarts and has to make sure everything is in the desired state. This adds more code than I'd prefer, but makes it much cleaner and more organized than it was before, in my opinion. I didn't bother parallelizing anything because it's complex enough as it is, right now. It's consistently passing the existing e2es and worked when I tested manually, but this could definitely use additional e2e tests and/or some serious refactoring to make real unit tests feasible. I'll follow up with one or two e2e tests that make sense (updating an LB or killing the controller manager, perhaps).