mirror of https://github.com/k3s-io/k3s
16e42282d3
Automatic merge from submit-queue (batch tested with PRs 53044, 52956, 53512, 53028). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Fixes the flaky TestDevicePluginReRegistration. In the current test, there is a race that the new device plugin endpoint may not be added to the device plugin manager endpoints at the time when we call manager.Devices(). Added the checking and waiting for endpoint updates before calling manager.Devices() in the test. Tested: go test -race -count 500 k8s.io/kubernetes/pkg/kubelet/deviceplugin -run TestDevicePluginReRegistration -timeout 5h **What this PR does / why we need it**: **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # https://github.com/kubernetes/kubernetes/issues/52560 **Special notes for your reviewer**: **Release note**: ```release-note ``` |
||
---|---|---|
.. | ||
BUILD | ||
OWNERS | ||
device_plugin_stub.go | ||
endpoint.go | ||
endpoint_test.go | ||
manager.go | ||
manager_test.go | ||
types.go | ||
utils.go | ||
utils_test.go |