Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 57 for unmarshalV1 (0.26 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/apiserver_test.go

    		strictDecodingErrYAML      = `strict decoding error: yaml: unmarshal errors:\n  line 6: key \"other\" already set in map, unknown field \"unknown\"`
    		strictDecodingWarnsYAML    = []string{`line 6: key "other" already set in map`, `unknown field "unknown"`}
    		strictDecodingErrYAMLPut   = `strict decoding error: yaml: unmarshal errors:\n  line 7: key \"other\" already set in map, unknown field \"unknown\"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:15:22 UTC 2023
    - 158.7K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/cluster_test.go

    					anyOptions := cluster.TypedExtensionProtocolOptions[v3.HttpProtocolOptionsType]
    					g.Expect(anyOptions).NotTo(BeNil())
    					httpProtocolOptions := &http.HttpProtocolOptions{}
    					anyOptions.UnmarshalTo(httpProtocolOptions)
    					g.Expect(httpProtocolOptions.CommonHttpProtocolOptions.MaxRequestsPerConnection.GetValue()).
    						To(Equal(uint32(expected.Http.MaxRequestsPerConnection)))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  3. cmd/server_test.go

    func verifyError(c *check, response *http.Response, code, description string, statusCode int) {
    	c.Helper()
    	data, err := io.ReadAll(response.Body)
    	c.Assert(err, nil)
    	errorResponse := APIErrorResponse{}
    	err = xml.Unmarshal(data, &errorResponse)
    	c.Assert(err, nil)
    	c.Assert(errorResponse.Code, code)
    	c.Assert(errorResponse.Message, description)
    	c.Assert(response.StatusCode, statusCode)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_node_status_test.go

    	if err != nil {
    		return nil, fmt.Errorf("failed to apply strategic merge patch %q on node %#v: %v",
    			patch, originalNode, err)
    	}
    	updatedNode := &v1.Node{}
    	if err := json.Unmarshal(updated, updatedNode); err != nil {
    		return nil, fmt.Errorf("failed to unmarshal updated node %q: %v", updated, err)
    	}
    	return updatedNode, nil
    }
    
    func notImplemented(action core.Action) (bool, runtime.Object, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  5. cmd/admin-handlers.go

    				}
    				return nil
    			}, idx, *client.host)
    		}
    
    		for _, nerr := range ng.Wait() {
    			if nerr.Err != nil {
    				waitingDrives := map[string]madmin.DiskMetrics{}
    				jerr := json.Unmarshal([]byte(nerr.Err.Error()), &waitingDrives)
    				if jerr == nil {
    					prs, ok := peerResults[nerr.Host.String()]
    					if ok {
    						prs.WaitingDrives = waitingDrives
    						peerResults[nerr.Host.String()] = prs
    					}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
  6. pkg/controller/garbagecollector/garbagecollector_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	patched, err := strategicpatch.StrategicMergePatch(originalData, p, v1.Pod{})
    	if err != nil {
    		t.Fatal(err)
    	}
    	var got v1.Pod
    	if err := json.Unmarshal(patched, &got); err != nil {
    		t.Fatal(err)
    	}
    	if !reflect.DeepEqual(expected, got) {
    		t.Errorf("expected: %#v,\ngot: %#v", expected, got)
    	}
    }
    
    func TestUnblockOwnerReference(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  7. src/crypto/sha512/sha512_test.go

    					t.Errorf("New%s(%q) state = %q, want %q", tt.name, test.in, state, test.halfState)
    					continue
    				}
    
    				if err := h2.(encoding.BinaryUnmarshaler).UnmarshalBinary(state); err != nil {
    					t.Errorf("could not unmarshal: %v", err)
    					return
    				}
    
    				io.WriteString(h, test.in[len(test.in)/2:])
    				io.WriteString(h2, test.in[len(test.in)/2:])
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 21:17:08 UTC 2023
    - 105.6K bytes
    - Viewed (0)
  8. api/openapi-spec/v3/apis__storage.k8s.io__v1alpha1_openapi.json

    JSON will look something like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\":\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 117.5K bytes
    - Viewed (0)
  9. api/openapi-spec/v3/apis__scheduling.k8s.io__v1_openapi.json

    JSON will look something like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\":\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 116.6K bytes
    - Viewed (0)
  10. api/openapi-spec/v3/apis__certificates.k8s.io__v1alpha1_openapi.json

    JSON will look something like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\":\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 119K bytes
    - Viewed (0)
Back to top