- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for patchMap2 (0.24 sec)
-
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) -
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) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go
if err != nil { return err } patchMap := make(map[string]interface{}) var strictErrs []error if validationDirective == metav1.FieldValidationWarn || validationDirective == metav1.FieldValidationStrict { strictErrs, err = kjson.UnmarshalStrict(patchBytes, &patchMap) if err != nil { return errors.NewBadRequest(err.Error()) } } else {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 28.5K bytes - Viewed (0) -
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) -
pkg/volume/util/resize_util.go
} func addResourceVersion(patchBytes []byte, resourceVersion string) ([]byte, error) { var patchMap map[string]interface{} err := json.Unmarshal(patchBytes, &patchMap) if err != nil { return nil, fmt.Errorf("error unmarshalling patch: %v", err) } u := unstructured.Unstructured{Object: patchMap} a, err := meta.Accessor(&u) if err != nil { return nil, fmt.Errorf("error creating accessor: %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 17 19:30:35 UTC 2023 - 14.8K bytes - Viewed (0) -
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) -
pkg/kube/inject/webhook.go
if err != nil { return nil, err } patchMap, err := patchHandleUnmarshal(patchYAML, func(data []byte, v any) error { return yaml.Unmarshal(data, v) }) if err != nil { return nil, err } result, err := strategicpatch.StrategicMergeMapPatchUsingLookupPatchMeta(originalMap, patchMap, schema) if err != nil { return nil, err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 17:59:39 UTC 2024 - 42.2K bytes - Viewed (0)