Created
March 7, 2018 15:07
-
-
Save nrb/03db9de8e9d1cd04ebb2985a08229f4d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| x1c in /home/nrb/go/src/github.com/kubernetes (git) master | |
| % ag --go JSONPatch | |
| staging/src/k8s.io/apiserver/pkg/endpoints/installer.go:669: string(types.JSONPatchType), | |
| staging/src/k8s.io/apiserver/pkg/endpoints/installer.go:677: Consumes(string(types.JSONPatchType), string(types.MergePatchType), string(types.StrategicMergePatchType)). | |
| staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go:215: case types.JSONPatchType, types.MergePatchType: | |
| staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go:408: case types.JSONPatchType: | |
| staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go:297: for _, patchType := range []types.PatchType{types.JSONPatchType, types.MergePatchType, types.StrategicMergePatchType} { | |
| staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go:306: if patchType == types.JSONPatchType { | |
| staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go:201: string(types.JSONPatchType), | |
| staging/src/k8s.io/api/admission/v1beta1/types_swagger_doc_generated.go:53: "patch": "The patch body. Currently we only support \"JSONPatch\" which implements RFC 6902.", | |
| staging/src/k8s.io/api/admission/v1beta1/types_swagger_doc_generated.go:54: "patchType": "The type of Patch. Currently we only allow \"JSONPatch\".", | |
| staging/src/k8s.io/api/admission/v1beta1/types.go:90: // The patch body. Currently we only support "JSONPatch" which implements RFC 6902. | |
| staging/src/k8s.io/api/admission/v1beta1/types.go:94: // The type of Patch. Currently we only allow "JSONPatch". | |
| staging/src/k8s.io/api/admission/v1beta1/types.go:104: PatchTypeJSONPatch PatchType = "JSONPatch" | |
| staging/src/k8s.io/client-go/rest/client_test.go:278: request = c.Patch(types.JSONPatchType) | |
| staging/src/k8s.io/apimachinery/pkg/types/patch.go:25: JSONPatchType PatchType = "application/json-patch+json" | |
| pkg/apis/admission/types.go:89: // Patch contains the actual patch. Currently we only support a response in the form of JSONPatch, RFC 6902. | |
| pkg/apis/admission/types.go:92: // PatchType indicates the form the Patch will take. Currently we only support "JSONPatch". | |
| pkg/apis/admission/types.go:102: PatchTypeJSONPatch PatchType = "JSONPatch" | |
| pkg/kubectl/cmd/patch.go:45:var patchTypes = map[string]types.PatchType{"json": types.JSONPatchType, "merge": types.MergePatchType, "strategic": types.StrategicMergePatchType} | |
| pkg/kubectl/cmd/patch.go:262: case types.JSONPatchType: | |
| pkg/controller/testutil/test_utils.go:302: case types.JSONPatchType: | |
| test/integration/client/client_test.go:250: types.JSONPatchType: { | |
| test/e2e/auth/audit.go:104: _, err = f.PodClient().Patch(pod.Name, types.JSONPatchType, patch) | |
| test/e2e/auth/audit.go:221: _, err = f.ClientSet.ExtensionsV1beta1().Deployments(namespace).Patch(d.Name, types.JSONPatchType, patch) | |
| test/e2e/auth/audit.go:348: _, err = f.ClientSet.CoreV1().ConfigMaps(namespace).Patch(configMap.Name, types.JSONPatchType, patch) | |
| test/e2e/auth/audit.go:474: _, err = f.ClientSet.CoreV1().Secrets(namespace).Patch(secret.Name, types.JSONPatchType, patch) | |
| test/images/webhook/main.go:142: pt := v1beta1.PatchTypeJSONPatch | |
| test/images/webhook/main.go:201: pt := v1beta1.PatchTypeJSONPatch | |
| test/images/webhook/main.go:230: pt := v1beta1.PatchTypeJSONPatch | |
| test/images/webhook/patch_test.go:29:func TestJSONPatchForConfigMap(t *testing.T) { | |
| test/images/webhook/patch_test.go:62:func TestJSONPatchForUnstructured(t *testing.T) { | |
| vendor/github.com/evanphx/json-patch/merge.go:91:var errBadJSONPatch = fmt.Errorf("Invalid JSON Patch") | |
| vendor/github.com/evanphx/json-patch/merge.go:119: return nil, errBadJSONPatch | |
| vendor/github.com/evanphx/json-patch/merge.go:127: return nil, errBadJSONPatch | |
| vendor/github.com/evanphx/json-patch/merge.go:143: return nil, errBadJSONPatch | |
| vendor/github.com/evanphx/json-patch/merge.go:151: return nil, errBadJSONPatch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment