kubernetes/pkg/controller/cloud
Zach Shepherd 2b554079af
Ensure a provider ID is set on a node if expected
A transient issue might occur that causes an error to be returned by
InstanceID(). When this is ignored, the external cloud provider taint
will be removed and neither AddCloudNode() nor UpdateCloudNode() will
try to set a provider ID in the future.

By returning the error we can ensure that the external cloud provider
taint is not removed prematurely, allowing the operation to be retried
(until the provider ID can be set).

Preserve support for external cloud providers that do not use IDs by
continuing if a NotImplemented error is returned, making a distinction
between lack of support for provider IDs and an actual error.

Introduce pair of unit tests that show a provider ID will eventually
be set if an error is returned, unless that error is a NotImplemented,
in which case the external cloud provider taint will be removed.
2020-01-10 11:00:54 -08:00
..
BUILD node controller: set both deprecated Beta and GA labels for Zone/Region topology 2019-11-07 20:08:11 -05:00
node_controller_test.go Ensure a provider ID is set on a node if expected 2020-01-10 11:00:54 -08:00
node_controller.go Ensure a provider ID is set on a node if expected 2020-01-10 11:00:54 -08:00
node_lifecycle_controller_test.go Migrate fake cloud provider to staging 2019-05-14 13:32:18 -07:00
node_lifecycle_controller.go Push context up to cloud node controller. 2019-10-20 11:20:49 -07:00
OWNERS Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00