k3s/pkg/kubelet
Kubernetes Submit Queue 13a7fdc83f Merge pull request #48123 from msau42/fix-allocatable-race
Automatic merge from submit-queue (batch tested with PRs 48123, 48079)

[Kubelet] Fix race condition in container manager

**What this PR does / why we need it**:

This fixes a race condition where the container manager capacity map was being updated without synchronization.  It moves the storage capacity detection to kubelet initialization, which happens serially in one thread.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #48045

**Release note**:

```release-note
Fixes kubelet race condition in container manager.
```
2017-06-28 02:00:07 -07:00
..
apis Change CRI package name to runtime. 2017-06-20 15:43:11 -07:00
cadvisor Kubelet: 2017-06-27 18:45:02 -07:00
certificate run hack/update-all 2017-06-22 11:31:03 -07:00
client run hack/update-all 2017-06-22 11:31:03 -07:00
cm Kubelet: 2017-06-27 18:45:02 -07:00
config run hack/update-all 2017-06-22 11:31:03 -07:00
configmap run hack/update-all 2017-06-22 11:31:03 -07:00
container run hack/update-all 2017-06-22 11:31:03 -07:00
custommetrics run hack/update-all 2017-06-22 11:31:03 -07:00
dockershim Move seccomp helper methods and tests to platform-specific files. 2017-06-23 09:49:06 +08:00
envvars run hack/update-all 2017-06-22 11:31:03 -07:00
events run hack/update-all 2017-06-22 11:31:03 -07:00
eviction run hack/update-all 2017-06-22 11:31:03 -07:00
gpu run hack/update-all 2017-06-22 11:31:03 -07:00
images run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime Merge pull request #47105 from feiskyer/cleanup 2017-06-27 08:29:29 -07:00
leaky
lifecycle run hack/update-all 2017-06-22 11:31:03 -07:00
metrics Unregister some metrics 2017-05-17 18:31:56 +08:00
network run hack/update-all 2017-06-22 11:31:03 -07:00
pleg Merge pull request #45496 from andyxning/fix_pleg_relist_time 2017-05-21 04:17:14 -07:00
pod run hack/update-all 2017-06-22 11:31:03 -07:00
preemption run hack/update-all 2017-06-22 11:31:03 -07:00
prober run hack/update-all 2017-06-22 11:31:03 -07:00
qos run hack/update-all 2017-06-22 11:31:03 -07:00
remote Update CRI references 2017-06-09 10:16:40 +08:00
rkt run hack/update-all 2017-06-22 11:31:03 -07:00
rktshim Update CRI references 2017-06-09 10:16:40 +08:00
secret run hack/update-all 2017-06-22 11:31:03 -07:00
server Merge pull request #47484 from allencloud/fix-nit-in-kubelet-server 2017-06-26 22:21:57 -07:00
status run hack/update-all 2017-06-22 11:31:03 -07:00
sysctl run hack/update-all 2017-06-22 11:31:03 -07:00
types Merge pull request #47783 from NickrenREN/containerruntime 2017-06-23 08:29:28 -07:00
util kubelet should resume csr bootstrap 2017-06-22 23:45:15 +02:00
volumemanager Merge pull request #38431 from NickrenREN/newVolumeMgr-return 2017-06-22 16:43:29 -07:00
BUILD run hack/update-all 2017-06-22 11:31:03 -07:00
OWNERS
active_deadline.go run hack/update-all 2017-06-22 11:31:03 -07:00
active_deadline_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
disk_manager.go
disk_manager_test.go
doc.go
kubelet.go Kubelet: 2017-06-27 18:45:02 -07:00
kubelet_cadvisor.go Kubelet: 2017-06-27 18:45:02 -07:00
kubelet_cadvisor_test.go Kubelet: 2017-06-27 18:45:02 -07:00
kubelet_getters.go run hack/update-all 2017-06-22 11:31:03 -07:00
kubelet_getters_test.go Use the assert/require package in kubelet unit tests 2017-03-16 10:21:44 -07:00
kubelet_network.go run hack/update-all 2017-06-22 11:31:03 -07:00
kubelet_network_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
kubelet_node_status.go Kubelet: 2017-06-27 18:45:02 -07:00
kubelet_node_status_test.go Kubelet: 2017-06-27 18:45:02 -07:00
kubelet_pods.go run hack/update-all 2017-06-22 11:31:03 -07:00
kubelet_pods_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
kubelet_pods_windows_test.go run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00
kubelet_resources.go run hack/update-all 2017-06-22 11:31:03 -07:00
kubelet_resources_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
kubelet_test.go Merge pull request #38431 from NickrenREN/newVolumeMgr-return 2017-06-22 16:43:29 -07:00
kubelet_volumes.go run hack/update-all 2017-06-22 11:31:03 -07:00
kubelet_volumes_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
networks.go run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00
networks_test.go Bump kubelet/networks test coverage 2017-05-17 11:20:06 +02:00
oom_watcher.go run hack/update-all 2017-06-22 11:31:03 -07:00
oom_watcher_test.go run root-rewrite-import-client-go-api-types 2017-06-22 11:30:59 -07:00
pod_container_deletor.go
pod_container_deletor_test.go
pod_workers.go run hack/update-all 2017-06-22 11:31:03 -07:00
pod_workers_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
reason_cache.go
reason_cache_test.go
runonce.go run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00
runonce_test.go Merge pull request #38431 from NickrenREN/newVolumeMgr-return 2017-06-22 16:43:29 -07:00
runtime.go
util.go run root-rewrite-v1-..., compile 2017-06-22 10:25:57 -07:00
volume_host.go run hack/update-all 2017-06-22 11:31:03 -07:00