updated vendor
This commit is contained in:
-28
@@ -1,28 +0,0 @@
|
||||
//go:build kubernetes_protomessage_one_more_release
|
||||
// +build kubernetes_protomessage_one_more_release
|
||||
|
||||
/*
|
||||
Copyright The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// Code generated by go-to-protobuf. DO NOT EDIT.
|
||||
|
||||
package runtime
|
||||
|
||||
func (*RawExtension) ProtoMessage() {}
|
||||
|
||||
func (*TypeMeta) ProtoMessage() {}
|
||||
|
||||
func (*Unknown) ProtoMessage() {}
|
||||
-22
@@ -1,22 +0,0 @@
|
||||
//go:build kubernetes_protomessage_one_more_release
|
||||
// +build kubernetes_protomessage_one_more_release
|
||||
|
||||
/*
|
||||
Copyright The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// Code generated by go-to-protobuf. DO NOT EDIT.
|
||||
|
||||
package schema
|
||||
+11
-5
@@ -58,12 +58,18 @@ var decode cbor.DecMode = func() cbor.DecMode {
|
||||
// with or without tagging. If a tag number is present, it must be valid.
|
||||
TimeTag: cbor.DecTagOptional,
|
||||
|
||||
// Observed depth up to 16 in fuzzed batch/v1 CronJobList. JSON implementation limit
|
||||
// is 10000.
|
||||
MaxNestedLevels: 64,
|
||||
// MaxNestedLevels is set to the same value used in the JSON implementation.
|
||||
MaxNestedLevels: 10000,
|
||||
|
||||
MaxArrayElements: 1024,
|
||||
MaxMapPairs: 1024,
|
||||
// MaxArrayElements is set to the maximum allowed by the cbor library. We rely on
|
||||
// the library initial wellformedness scan and on the api max request limit to
|
||||
// prevent preallocating very large slices during decoding.
|
||||
MaxArrayElements: 2147483647,
|
||||
|
||||
// MaxMapPairs specifies the maximum number of key-value pairs allowed in a map.
|
||||
// We selected this value as it is large enough so that in practice the API server
|
||||
// decoder will always hit the request body limit before the limit here is reached.
|
||||
MaxMapPairs: 2097152,
|
||||
|
||||
// Indefinite-length sequences aren't produced by this serializer, but other
|
||||
// implementations can.
|
||||
|
||||
+2
-2
@@ -50,7 +50,7 @@ var rawTypeTranscodeFuncs = map[reflect.Type]func(reflect.Value) error{
|
||||
return nil
|
||||
}
|
||||
fields := rv.Addr().Interface().(*metav1.FieldsV1)
|
||||
if fields.Raw == nil {
|
||||
if fields.GetRawReader().Size() == 0 {
|
||||
// When Raw is nil it encodes to null. Don't change nil Raw values during
|
||||
// transcoding, they would have unmarshalled from JSON as nil too.
|
||||
return nil
|
||||
@@ -59,7 +59,7 @@ var rawTypeTranscodeFuncs = map[reflect.Type]func(reflect.Value) error{
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to transcode FieldsV1 to JSON: %w", err)
|
||||
}
|
||||
fields.Raw = j
|
||||
fields.SetRawBytes(j)
|
||||
return nil
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user