kubernetes/pkg/controller
Miciah Masters fc18ffe58d TopologyAwareHints: Take lock in HasPopulatedHints
Prevent potential concurrent map access by taking a lock before reading the
topology cache's hintsPopulatedByService map.

* staging/src/k8s.io/endpointslice/topologycache/topologycache.go
(setHintsLocked, hasPopulatedHintsLocked): New helper functions.  These are
the same as the existing SetHints and HasPopulatedHints methods except that
these helpers assume that a lock is already held.
(SetHints): Use setHintsLocked.
(HasPopulatedHints): Take a lock and use hasPopulatedHintsLocked.
(AddHints): Take a lock and use setHintsLocked and hasPopulatedHintsLocked.
* staging/src/k8s.io/endpointslice/topologycache/topologycache_test.go
(TestTopologyCacheRace): Add a goroutine that calls HasPopulatedHints.
2023-08-31 16:38:51 -04:00
..
apis/config refactor: remove deprecated flags 2022-04-22 20:28:12 +08:00
bootstrap Migrate pkg/controller/bootstrap to contextual logging 2023-03-13 10:18:40 +08:00
certificates kubelet: add key encipherment usage only if it is rsa key 2022-12-27 16:04:25 +08:00
clusterroleaggregation clusterroleaggregation: use contextual logging 2022-12-09 11:02:47 +08:00
cronjob Hide numberOfMissedSchedules as an algorithm internal number 2023-07-06 10:21:55 -07:00
daemon Automated cherry pick of #118716 upstream release 1.27 (#118911) 2023-07-06 18:57:02 -07:00
deployment deployment controller: use contextual logging 2023-03-13 19:00:44 +08:00
disruption improve message, log level and testing for unmanaged pods in disruption controller 2023-03-03 23:03:06 +01:00
endpoint Do not create endpoints if service of type ExternalName (#114814) 2023-01-18 03:12:34 -08:00
endpointslice TopologyAwareHints: Take lock in HasPopulatedHints 2023-08-31 16:38:51 -04:00
endpointslicemirroring endpointslicemirroring handle endpoints with multiple subsets 2022-12-10 11:44:10 +00:00
garbagecollector kube-controller-manager: convert to structured logging 2023-03-14 19:16:32 +01:00
history convert int32 to pointer using library function 2022-07-01 14:58:26 +08:00
job Include ignored pods when computing backoff delay for Job pod failures 2023-07-21 09:31:49 +02:00
namespace namespace controller: use contextual logging 2023-03-13 14:59:17 +08:00
nodeipam unexport buggy function nodeSelectorAsSelector 2023-03-09 16:58:25 +00:00
nodelifecycle Merge pull request #116529 from pohly/controllers-with-name 2023-03-14 14:12:55 -07:00
podautoscaler HPA: expose the metrics "metric_computation_duration_seconds" and "metric_computation_total" from HPA controller 2023-03-14 22:47:24 +00:00
podgc delete Evicted pods first during pod gc 2023-03-07 10:11:01 +08:00
replicaset Migrated pkg/controller/replicaset to contextual logging (#114871) 2023-03-07 04:19:51 -08:00
replication Migrated pkg/controller/replicaset to contextual logging (#114871) 2023-03-07 04:19:51 -08:00
resourceclaim kube-controller-manager: convert to structured logging 2023-03-14 19:16:32 +01:00
resourcequota cleanup(controller): use IsSuperset to avoid interim slice 2023-02-19 21:49:58 +08:00
serviceaccount kube-controller-manager: convert to structured logging 2023-03-14 19:16:32 +01:00
statefulset Add unit tests for parallel StatefulSet create & delete 2023-07-10 12:31:07 +02:00
storageversiongc Merge pull request #113986 from songxiao-wang87/runwxs-test2 2023-03-07 04:19:43 -08:00
testutil Wait for Pods to finish before considering Failed in Job (#113860) 2022-11-15 09:44:53 -08:00
ttl Making a run test. 2023-01-28 03:14:57 +00:00
ttlafterfinished logging migration of the ttlafterfinished 2023-02-21 14:55:03 +02:00
util pkg/controller/util support contextual logging (#115049) 2023-03-14 12:38:14 -07:00
volume verifyVolumeNoStatusUpdateNeeded may cause flake and so only keep the last ones 2023-04-18 11:30:37 +02:00
controller_ref_manager.go Fix indentation/spacing in comments to render correctly in godoc 2022-12-17 23:27:38 -05:00
controller_ref_manager_test.go Merge pull request #101250 from evertrain/master 2021-11-10 09:19:26 -08:00
controller_utils.go Merge pull request #111683 from lucming/code-cleanup5 2022-12-09 15:42:21 -08:00
controller_utils_test.go NodeLifecycleController: Remove race condition 2022-10-24 19:36:58 +00:00
doc.go
lookup_cache.go
OWNERS add myself as approver to pkg/controller 2022-01-12 19:33:02 -05:00