mirror of
https://github.com/rancher/norman.git
synced 2025-09-26 07:12:30 +00:00
Fallback to custom decoder
This commit is contained in:
@@ -241,8 +241,8 @@ func (s *Store) realWatch(apiContext *types.APIContext, schema *types.Schema, op
|
|||||||
}
|
}
|
||||||
|
|
||||||
framer := json.Framer.NewFrameReader(body)
|
framer := json.Framer.NewFrameReader(body)
|
||||||
decoder := streaming.NewDecoder(framer, unstructured.UnstructuredJSONScheme)
|
decoder := streaming.NewDecoder(framer, &unstructuredDecoder{})
|
||||||
watcher := watch.NewStreamWatcher(restclientwatch.NewDecoder(decoder, unstructured.UnstructuredJSONScheme))
|
watcher := watch.NewStreamWatcher(restclientwatch.NewDecoder(decoder, &unstructuredDecoder{}))
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
<-apiContext.Request.Context().Done()
|
<-apiContext.Request.Context().Done()
|
||||||
|
Reference in New Issue
Block a user