kubernetes/pkg/controller
Patrick Ohly ff2e6dddc8 DRA device taints: work around fake.ClientSet informer race
fake.Clientset suffers from a race condition related to informers:
it does not implement resource version support in its Watch
implementation and instead assumes that watches are set up
before further changes are made.

If a test waits for caches to be synced and then immediately
adds an object, that new object will never be seen by event handlers
if the race goes wrong and the Watch call hadn't completed yet
(can be triggered by adding a sleep before b53b9fb557/staging/src/k8s.io/client-go/tools/cache/reflector.go (L431)).

To work around this, we count all watches and only proceed when
all of them are in place. This replaces the normal watch reactor
(b53b9fb557/staging/src/k8s.io/client-go/kubernetes/fake/clientset_generated.go (L161-L173)).
2025-04-17 10:57:27 +02:00
..
apis/config Use randfill, do API renames 2025-03-08 15:18:00 -08:00
bootstrap remove import doc comments 2024-12-02 16:59:34 +01:00
certificates KCM: CTBPublisher: use generics to handle both alpha/beta APIs 2025-03-11 18:07:29 +01:00
clusterroleaggregation Use the generic/typed workqueue throughout 2024-05-04 14:33:12 -04:00
cronjob fix name 2025-01-15 18:14:32 +08:00
daemon Reduce locking duration on cache to fetch data in DaemonSet Controller 2025-03-20 16:00:27 +00:00
deployment Deployment controller should count terminating pods in the status 2025-01-23 22:37:05 +01:00
devicetainteviction DRA device taints: work around fake.ClientSet informer race 2025-04-17 10:57:27 +02:00
disruption kubelet sets observedGeneration in conditions 2025-03-18 15:43:24 +00:00
endpoint Export endpoints, endpointslice, mirroring controller names 2025-03-07 10:52:54 -05:00
endpointslice Implement the EndpointSlice controller side of PreferSameZone/PreferSameNode 2025-03-19 08:39:13 -04:00
endpointslicemirroring Export endpoints, endpointslice, mirroring controller names 2025-03-07 10:52:54 -05:00
garbagecollector remove import doc comments 2024-12-02 16:59:34 +01:00
history api: introduce separate VolumeResourceRequirements struct 2023-08-21 15:31:28 +02:00
job Merge pull request #130536 from tenzen-y/promote-successpolicy-to-ga 2025-03-13 13:27:54 -07:00
namespace Update status before returning err 2025-03-06 10:54:45 -08:00
nodeipam Refine logging levels in Job, IPAM, and ReplicaSet controllers. 2025-03-11 10:25:16 +02:00
nodelifecycle controller: factor out pod node name indexer helper function 2025-03-17 20:21:30 +08:00
podautoscaler Add configurable tolerance logic. 2025-03-21 18:48:37 -04:00
podgc kubelet sets observedGeneration in conditions 2025-03-18 15:43:24 +00:00
replicaset Refine logging levels in Job, IPAM, and ReplicaSet controllers. 2025-03-11 10:25:16 +02:00
replication remove import doc comments 2024-12-02 16:59:34 +01:00
resourceclaim DRA: AdminAccess validate based on namespace label 2025-03-18 22:56:54 -07:00
resourcequota remove import doc comments 2024-12-02 16:59:34 +01:00
serviceaccount Switch to gopkg.in/go-jose/go-jose.v2 @ v2.6.3 2025-01-21 09:21:27 -05:00
servicecidrs update controller manager 2025-01-20 13:01:53 +00:00
statefulset Do not attempt to truncate revision history if revisionHistoryLimit is negative 2024-12-19 11:35:29 +03:00
storageversiongc Replace StorageVersion API with aggregated discovery to fetch served resources by a peer for MVP 2025-03-18 13:27:27 -07:00
storageversionmigrator svm: set UID and RV on SSA patch to cause conflict on logical create 2024-07-18 17:19:11 -04:00
tainteviction DRA taint eviction: avoid nil panic 2025-03-20 19:49:54 +01:00
testutil Use canonical json-patch v4 import 2024-05-28 10:48:22 +02:00
ttl fix: enable empty and len rules from testifylint on pkg package 2024-07-06 23:15:43 +00:00
ttlafterfinished remove import doc comments 2024-12-02 16:59:34 +01:00
util Fix Go vet errors for master golang 2024-09-20 12:36:38 +05:30
validatingadmissionpolicystatus remove import doc comments 2024-12-02 16:59:34 +01:00
volume Implement KEP 4876 Mutable CSINode (#130007) 2025-03-18 12:45:49 -07:00
controller_ref_manager.go kube-controller-manager: finish conversion to contextual logging 2023-07-12 14:57:29 +02:00
controller_ref_manager_test.go
controller_utils.go Reduce locking duration on cache to fetch data in DaemonSet Controller 2025-03-20 16:00:27 +00:00
controller_utils_test.go ReplicaSet controller should count terminating pods in the status 2025-01-23 22:26:34 +01:00
doc.go remove import doc comments 2024-12-02 16:59:34 +01:00
OWNERS