kubernetes/pkg/controller
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
..
apis/config Migrate components to EndpointsLeases leader election lock 2019-10-28 09:09:03 +01:00
bootstrap move util/metrics to component-base 2019-10-08 14:42:31 +02:00
certificates unify alias of api errors under pkg and staging 2019-12-26 16:42:28 +08:00
cloud Ensure a provider ID is set on a node if expected 2020-01-10 11:00:54 -08:00
clusterroleaggregation move WaitForCacheSync to the sharedInformer package 2019-08-22 16:13:41 +01:00
cronjob Eliminate some default conversions 2019-11-06 14:08:15 +01:00
daemon addressed comments 2020-01-04 01:14:24 -05:00
deployment slim down some lister expansions 2019-12-07 08:27:06 +08:00
disruption Rename PodDisruptionsAllowed to DisruptionsAllowed in type PodDisruptionBudgetStatus 2019-12-03 14:26:35 -08:00
endpoint Remove use of testapi codecs, selflink, resourcepath functions 2019-12-13 11:56:29 -05:00
endpointslice Fixing Potential Race Condition in EndpointSlice Controller. 2019-12-26 12:15:38 -08:00
garbagecollector pkg/controller: fix staticcheck warning 2019-11-07 16:46:47 +08:00
history Remove use of testapi codecs, selflink, resourcepath functions 2019-12-13 11:56:29 -05:00
job Merge pull request #86142 from raz-bn/add-complete-event 2019-12-16 23:43:58 -08:00
namespace pkg/controller: fix staticcheck warning 2019-11-07 16:46:47 +08:00
nodeipam fix multiple node cidr masks in providerless build 2019-11-19 09:47:45 -08:00
nodelifecycle fix log message error in nodelifecycle 2020-01-06 21:02:08 +08:00
podautoscaler Adds tests 2019-12-10 18:09:20 +01:00
podgc Merge pull request #84288 from wojtek-t/cleanup_conversions_registrations 2019-10-25 22:53:22 -07:00
replicaset Do not swallow timeout in manageReplicas 2019-12-12 11:27:36 -08:00
replication Autogenerated code 2019-10-24 20:21:00 +02:00
resourcequota Autogenerated code 2019-10-24 20:21:00 +02:00
route move util/metrics to component-base 2019-10-08 14:42:31 +02:00
service Remove use of testapi codecs, selflink, resourcepath functions 2019-12-13 11:56:29 -05:00
serviceaccount unify alias of api errors under pkg and staging 2019-12-26 16:42:28 +08:00
statefulset Correct spelling mistakes 2019-11-06 20:25:19 +08:00
testutil Remove recorder.PastEventf method 2019-12-30 12:00:23 -05:00
ttl move WaitForCacheSync to the sharedInformer package 2019-08-22 16:13:41 +01:00
ttlafterfinished Autogenerated code 2019-10-24 20:21:00 +02:00
util Promoting EndpointSlices to beta 2019-11-13 14:20:19 -08:00
volume unify alias of api errors under pkg and staging 2019-12-26 16:42:28 +08:00
.import-restrictions Break DS controller on scheduler predicates and predicate errors 2020-01-03 13:05:07 -05:00
BUILD Remove use of testapi codecs, selflink, resourcepath functions 2019-12-13 11:56:29 -05:00
client_builder_dynamic.go Migrate the controller to use TokenRequest and rotate token periodically 2019-03-25 14:54:22 +08:00
client_builder.go Migrate the controller to use TokenRequest and rotate token periodically 2019-03-25 14:54:22 +08:00
controller_ref_manager_test.go remove unused code of (pkg/controller) 2018-10-09 08:15:30 +08:00
controller_ref_manager.go fix unsafe JSON construction 2019-10-10 09:44:54 +08:00
controller_utils_test.go Remove use of testapi codecs, selflink, resourcepath functions 2019-12-13 11:56:29 -05:00
controller_utils.go Merge pull request #84123 from smarterclayton/terminating_cause 2019-11-04 07:55:41 -08:00
doc.go
informer_factory.go Use metadata informers instead of dynamic informers in controller manager 2019-07-11 12:18:52 -04:00
lookup_cache.go
OWNERS Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00