- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NewErrPreconditionFailed (0.32 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/jsonmergepatch/patch.go
} meetPreconditions, err := meetPreconditions(patchMap, fns...) if err != nil { return nil, err } if !meetPreconditions { return nil, mergepatch.NewErrPreconditionFailed(patchMap) } return patch, nil } // keepOrDeleteNullInJsonPatch takes a json-encoded byte array and a boolean. // It returns a filtered object and its corresponding json-encoded byte array.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 4.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch.go
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 } // Returns a (recursive) strategic merge patch that yields modified when applied to original. // Including:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 23:34:23 UTC 2023 - 75.5K bytes - Viewed (0)