mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
Fix race between stopping old and starting new endpoint
This commit is contained in:
parent
4344d33772
commit
c846d5fe63
@ -333,6 +333,7 @@ func (m *ManagerImpl) addEndpoint(r *pluginapi.RegisterRequest) {
|
|||||||
// to avoid potential orphaned devices upon re-registration
|
// to avoid potential orphaned devices upon re-registration
|
||||||
devices := make(map[string]pluginapi.Device)
|
devices := make(map[string]pluginapi.Device)
|
||||||
for _, device := range old.getDevices() {
|
for _, device := range old.getDevices() {
|
||||||
|
device.Health = pluginapi.Unhealthy
|
||||||
devices[device.ID] = device
|
devices[device.ID] = device
|
||||||
}
|
}
|
||||||
existingDevs = devices
|
existingDevs = devices
|
||||||
|
Loading…
Reference in New Issue
Block a user