- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for IsStrictDecodingError (0.3 sec)
-
pkg/kubelet/kubeletconfig/util/codec/codec.go
// Try strict decoding first. If that fails decode with a lenient // decoder, which has only v1beta1 registered, and log a warning. // The lenient path is to be dropped when support for v1beta1 is dropped. if !runtime.IsStrictDecodingError(err) { return nil, fmt.Errorf("failed to decode: %w", err) } var lenientErr error _, lenientCodecs, lenientErr := codec.NewLenientSchemeAndCodecs( kubeletconfig.AddToScheme,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 21:48:29 UTC 2023 - 4.2K bytes - Viewed (0) -
cmd/kube-scheduler/app/options/options_test.go
}, expectedError: `unknown field "foo"`, checkErrFn: runtime.IsStrictDecodingError, }, { name: "duplicate fields", options: &Options{ ConfigFile: duplicateFieldConfig, Logs: logs.NewOptions(), }, expectedError: `key "leaderElect" already set`, checkErrFn: runtime.IsStrictDecodingError, }, { name: "high throughput profile", options: &Options{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 13 07:42:19 UTC 2023 - 30.3K bytes - Viewed (0) -
cmd/kube-proxy/app/server_test.go
{ name: "Duplicate fields", config: fmt.Sprintf("%s\nbindAddress: 1.2.3.4", yamlTemplate), checkFn: kuberuntime.IsStrictDecodingError, }, { name: "Unknown field", config: fmt.Sprintf("%s\nfoo: bar", yamlTemplate), checkFn: kuberuntime.IsStrictDecodingError, }, */ } version := "apiVersion: kubeproxy.config.k8s.io/v1alpha1" for _, tc := range testCases {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 22 05:08:41 UTC 2024 - 32.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/cbor_test.go
expectedObj: &metav1.PartialObjectMetadata{}, expectedGVK: &schema.GroupVersionKind{Group: "x", Version: "y", Kind: "z"}, assertOnError: func(t *testing.T, err error) { if !runtime.IsStrictDecodingError(err) { t.Errorf("expected StrictDecodingError, got: %v", err) } }, }, { name: "no strict mode no strict error", data: []byte{0xa1, 0x61, 'z', 0x01}, // {'z': 1}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 13 14:57:12 UTC 2024 - 20.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json_test.go
t.Errorf("%d: failed: %v", i, err) continue case err != nil: if !test.errFn(err) { logTestCase(t, test) t.Errorf("%d: failed: %v", i, err) } if !runtime.IsStrictDecodingError(err) && obj != nil { logTestCase(t, test) t.Errorf("%d: should have returned nil object", i) } continue } if test.into != nil && test.into != obj { logTestCase(t, test)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 04 15:55:02 UTC 2024 - 40K bytes - Viewed (0) -
cmd/kube-proxy/app/server.go
// decoder, which has only v1alpha1 registered, and log a warning. // The lenient path is to be dropped when support for v1alpha1 is dropped. if !runtime.IsStrictDecodingError(err) { return nil, fmt.Errorf("failed to decode: %w", err) } _, lenientCodecs, lenientErr := newLenientSchemeAndCodecs() if lenientErr != nil { return nil, lenientErr }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 26 13:27:41 UTC 2024 - 46.8K bytes - Viewed (0)