1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-03 00:15:27 +00:00

Fix panic due to concurrent map writes (#669)

The same object is given to many HTTP request and they proceed to modify
that object.
This commit is contained in:
Tom Lebreux
2025-06-11 09:57:48 -06:00
committed by GitHub
parent cf97607be5
commit 1157865ea3

View File

@@ -464,7 +464,7 @@ func (l *ListOptionIndexer) notifyEvent(eventType watch.EventType, oldObj any, o
watcher.ch <- watch.Event{
Type: eventType,
Object: obj.(runtime.Object),
Object: obj.(runtime.Object).DeepCopyObject(),
}
}
l.watchersLock.RUnlock()