Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for patchMap2 (0.2 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/mergepatch/util.go

    	return func(patch interface{}) bool {
    		patchMap, ok := patch.(map[string]interface{})
    		if !ok {
    			return true
    		}
    		patchMap1, ok := patchMap["metadata"]
    		if !ok {
    			return true
    		}
    		patchMap2, ok := patchMap1.(map[string]interface{})
    		if !ok {
    			return true
    		}
    		_, ok = patchMap2[key]
    		return !ok
    	}
    }
    
    func ToYAMLOrError(v interface{}) string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/jsonmergepatch/patch.go

    	if err != nil {
    		return nil, err
    	}
    
    	var patchMap map[string]interface{}
    	err = json.Unmarshal(patch, &patchMap)
    	if err != nil {
    		return nil, fmt.Errorf("failed to unmarshal patch for precondition check: %s", patch)
    	}
    	meetPreconditions, err := meetPreconditions(patchMap, fns...)
    	if err != nil {
    		return nil, err
    	}
    	if !meetPreconditions {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. pkg/volume/util/resize_util_test.go

    	if err != nil {
    		t.Errorf("error creating patch bytes %v", err)
    	}
    	var patchMap map[string]interface{}
    	err = json.Unmarshal(patchBytes, &patchMap)
    	if err != nil {
    		t.Errorf("error unmarshalling json patch : %v", err)
    	}
    	metadata, ok := patchMap["metadata"].(map[string]interface{})
    	if !ok {
    		t.Errorf("error converting metadata to version map")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top