kubernetes/pkg
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
..
api Adding validation for topology annotations 2023-03-15 18:37:02 +00:00
apis Mark Job onPodConditions as optional in pod failure policy 2023-08-28 17:19:14 +02:00
auth
capabilities
client delete unused functions in pkg directory 2023-01-16 21:43:36 +08:00
cloudprovider Remove AWS legacy cloud provider + EBS in-tree storage plugin 2023-03-06 14:01:15 +00:00
cluster/ports Webhook framework for cloud controller manager 2023-03-14 23:28:05 +00:00
controller TopologyAwareHints: Take lock in HasPopulatedHints 2023-08-31 16:38:51 -04:00
controlplane ClusterTrustBundles: Define types 2023-03-15 20:10:18 -07:00
credentialprovider Drop AWS kubelet credential provider and cleanup AWS storage e2e tests 2023-03-07 09:00:12 -05:00
features Disable NewVolumeManagerReconstruction feature gate 2023-05-04 16:42:50 -04:00
fieldpath Improved FormatMap: Improves performance by about 4x, or nearly 2x in the worst case (#112661) 2023-03-01 22:26:55 -08:00
generated Mark Job onPodConditions as optional in pod failure policy 2023-08-28 17:19:14 +02:00
kubeapiserver Clear front proxy headers after authentication is complete 2023-03-21 10:51:22 -04:00
kubectl api: resource.k8s.io v1alpha1 -> v1alpha2 2023-03-14 07:52:03 +01:00
kubelet Merge pull request #120054 from ruiwen-zhao/automated-cherry-pick-of-#119986-upstream-release-1.27 2023-08-30 08:44:47 -07:00
kubemark Add missing trace dependency to kubemark 2023-03-15 13:01:42 +00:00
printers ClusterTrustBundles: Define types 2023-03-15 20:10:18 -07:00
probe use case-insensitive header keys for http probes 2023-04-14 11:33:13 +08:00
proxy Merge pull request #117226 from princepereira/automated-cherry-pick-of-#116749-upstream-release-1.27 2023-07-11 22:53:13 -07:00
quota/v1 benchmark test to evaluate the overhead of podMatchesScopeFunc 2023-05-05 14:46:23 -07:00
registry Make etcd component status consistent with health probes 2023-06-15 11:48:03 +02:00
routes unittests: Fixes unit tests for Windows (part 3) 2022-10-21 19:25:48 +03:00
scheduler Merge pull request #118283 from pohly/automated-cherry-pick-of-#118257-origin-release-1.27 2023-06-29 03:03:37 -07:00
security AppArmor no reevaluation of host is needed 2023-03-14 18:35:01 +00:00
securitycontext add SeccompProfile to Pod and Container accessors/mutators 2023-02-22 17:15:27 +01:00
serviceaccount handle new error where sa jwt issued in the future 2023-03-02 03:15:13 +01:00
util Revert (most of) "Issue 70020; Flush Conntrack entities for SCTP" 2023-03-14 12:18:58 -04:00
volume Merge pull request #120135 from ritazh/cherry-pick-cve-2023-3955-1.27 2023-08-23 12:35:57 -07:00
windows/service Fix typo at pkg/windows/service/service.go:94 2022-03-24 07:25:33 -04:00
.import-restrictions
OWNERS Move root approvers to subdirs 2022-10-10 13:43:03 -04:00