Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for patchMap2 (0.18 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch.go

    		SetElementOrder: true,
    	}
    	patchMap, err := diffMaps(original, modified, schema, diffOptions)
    	if err != nil {
    		return nil, err
    	}
    
    	// Apply the preconditions to the patch, and return an error if any of them fail.
    	for _, fn := range fns {
    		if !fn(patchMap) {
    			return nil, mergepatch.NewErrPreconditionFailed(patchMap)
    		}
    	}
    
    	return patchMap, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 23:34:23 UTC 2023
    - 75.5K bytes
    - Viewed (0)
Back to top