Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for RequireMetadataKeyUnchanged (0.26 sec)

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

    		_, ok = patchMap[key]
    		return !ok
    	}
    }
    
    // RequireMetadataKeyUnchanged creates a precondition function that fails
    // if the metadata.key is present in the patch (indicating its value
    // has changed).
    func RequireMetadataKeyUnchanged(key string) PreconditionFunc {
    	return func(patch interface{}) bool {
    		patchMap, ok := patch.(map[string]interface{})
    		if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top