mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Increase limit for object size in streaming serializer
This commit is contained in:
parent
83f115ec79
commit
886400f62a
@ -64,7 +64,7 @@ func NewDecoder(r io.ReadCloser, d runtime.Decoder) Decoder {
|
|||||||
reader: r,
|
reader: r,
|
||||||
decoder: d,
|
decoder: d,
|
||||||
buf: make([]byte, 1024),
|
buf: make([]byte, 1024),
|
||||||
maxBytes: 1024 * 1024,
|
maxBytes: 16 * 1024 * 1024,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ func TestDecoder(t *testing.T) {
|
|||||||
frames := [][]byte{
|
frames := [][]byte{
|
||||||
make([]byte, 1025),
|
make([]byte, 1025),
|
||||||
make([]byte, 1024*5),
|
make([]byte, 1024*5),
|
||||||
make([]byte, 1024*1024*5),
|
make([]byte, 1024*1024*17),
|
||||||
make([]byte, 1025),
|
make([]byte, 1025),
|
||||||
}
|
}
|
||||||
pr, pw := io.Pipe()
|
pr, pw := io.Pipe()
|
||||||
|
Loading…
Reference in New Issue
Block a user