github.com/cilium/cilium@v1.16.2/pkg/k8s/json_patch.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright Authors of Cilium 3 4 package k8s 5 6 const ( 7 // maximum number of operations a single json patch may contain. 8 // See https://github.com/kubernetes/kubernetes/pull/74000 9 MaxJSONPatchOperations = 10000 10 ) 11 12 // JSONPatch structure based on the RFC 6902 13 type JSONPatch struct { 14 OP string `json:"op,omitempty"` 15 Path string `json:"path,omitempty"` 16 Value interface{} `json:"value"` 17 }