kubernetes/pkg/controller
Jonathan Basseri c8d937c5f1 Add unit test for DisruptionController retry logic
This tests the PDB status update path in DisruptionController and
asserts that conflicting writes (with eviciton handler) are handled
gracefully.

This adds the client-go fake.Clientset into our tests, because that is
the layer required for injecting update failures.

This also adds a TestMain so that DisruptionController logs can be
enabled during test. e.g.,

    go test ./pkg/controller/disruption -v -args -v=4
2019-09-03 16:52:45 -07:00
..
apis/config Adding EndpointSlice controller 2019-08-28 21:13:27 -07:00
bootstrap move WaitForCacheSync to the sharedInformer package 2019-08-22 16:13:41 +01:00
certificates move WaitForCacheSync to the sharedInformer package 2019-08-22 16:13:41 +01:00
cloud Fix typo in node lifecycle controller 2019-06-09 11:57:37 +02:00
clusterroleaggregation move WaitForCacheSync to the sharedInformer package 2019-08-22 16:13:41 +01:00
cronjob Fix selflinks in tests 2019-08-01 15:50:03 +02:00
daemon move WaitForCacheSync to the sharedInformer package 2019-08-22 16:13:41 +01:00
deployment move WaitForCacheSync to the sharedInformer package 2019-08-22 16:13:41 +01:00
disruption Add unit test for DisruptionController retry logic 2019-09-03 16:52:45 -07:00
endpoint Adding EndpointSlice controller 2019-08-28 21:13:27 -07:00
endpointslice Adding EndpointSlice controller 2019-08-28 21:13:27 -07:00
garbagecollector move WaitForCacheSync to the sharedInformer package 2019-08-22 16:13:41 +01:00
history Update Sig-Apps OWNERS in places that were missed in #76669 2019-06-19 15:36:16 +02:00
job move WaitForCacheSync to the sharedInformer package 2019-08-22 16:13:41 +01:00
namespace Update generated files 2019-08-29 13:26:13 +02:00
nodeipam phase 2: generated items 2019-08-28 16:11:46 +00:00
nodelifecycle Merge pull request #81624 from logicalhan/cm-migration 2019-08-29 05:30:09 -07:00
podautoscaler Merge pull request #81527 from yastij/move-controller-util 2019-08-27 00:52:54 -07:00
podgc move WaitForCacheSync to the sharedInformer package 2019-08-22 16:13:41 +01:00
replicaset move WaitForCacheSync to the sharedInformer package 2019-08-22 16:13:41 +01:00
replication Updates OWNERS files and OWNERS_ALIASES for SIG Apps to make reviewers 2019-04-16 11:35:21 -07:00
resourcequota move WaitForCacheSync to the sharedInformer package 2019-08-22 16:13:41 +01:00
route move WaitForCacheSync to the sharedInformer package 2019-08-22 16:13:41 +01:00
service use directly DeletionHandlingMetaNamespaceKeyFunc from client-go 2019-08-29 11:51:14 +01:00
serviceaccount move WaitForCacheSync to the sharedInformer package 2019-08-22 16:13:41 +01:00
statefulset move WaitForCacheSync to the sharedInformer package 2019-08-22 16:13:41 +01:00
testutil cleanup: fix some log and error capitalizations 2019-07-20 18:26:16 -04:00
ttl move WaitForCacheSync to the sharedInformer package 2019-08-22 16:13:41 +01:00
ttlafterfinished move WaitForCacheSync to the sharedInformer package 2019-08-22 16:13:41 +01:00
util Adding EndpointSlice controller 2019-08-28 21:13:27 -07:00
volume Merge pull request #81624 from logicalhan/cm-migration 2019-08-29 05:30:09 -07:00
.import-restrictions Adding EndpointSlice controller 2019-08-28 21:13:27 -07:00
BUILD Adding EndpointSlice controller 2019-08-28 21:13:27 -07: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 Move from glog to klog 2018-11-10 07:50:31 -05:00
controller_utils_test.go 1. Fix lint errors for the whole directory staging/src/k8s.io/client-go/tools/cache; 2019-07-27 15:49:03 +08:00
controller_utils.go move WaitForCacheSync to the sharedInformer package 2019-08-22 16:13:41 +01: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