Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for IsStrictDecodingError (0.21 sec)

  1. 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)
  2. 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)
  3. 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)
Back to top