kubernetes/pkg/controlplane/controller/defaultservicecidr
Antonio Ojea 99f7df3e1c improve default_servicecidr_controller startup
The default service-cidr controller blocks the apiserver because it
needs to create the default ServiceCIDR so Services can be allocated.

If the apiserver is started without the default ServiceCIDR any attempt
to createa  new Service will fail, and this is a breaking change for
users and installers that does not retry on this operation.

Instead of using a channel to signal the controller is ready, just
implement two loops, a first one that verifies that is ready and that
polls with a shorted interval, and leave the second loop with the
existing interval.

Change-Id: I54303af9faeaa9c5cce2a840b6b7b0320cd2f4ad
2023-11-14 23:31:58 +00:00
..
default_servicecidr_controller_test.go improve default_servicecidr_controller startup 2023-11-14 23:31:58 +00:00
default_servicecidr_controller.go improve default_servicecidr_controller startup 2023-11-14 23:31:58 +00:00