Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 72 for JSONPatch (3.24 sec)

  1. pilot/pkg/config/kube/crdclient/client.go

    // at the expense of some code gen.
    package crdclient
    
    import (
    	"fmt"
    	"sync"
    	"time"
    
    	jsonmerge "github.com/evanphx/json-patch/v5"
    	"go.uber.org/atomic"
    	"gomodules.xyz/jsonpatch/v2"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	klabels "k8s.io/apimachinery/pkg/labels"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/apimachinery/pkg/util/json"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 00:12:28 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. pkg/kube/adapter.go

    	Result *metav1.Status `json:"status,omitempty"`
    
    	// The patch body. Currently we only support "JSONPatch" which implements RFC 6902.
    	Patch []byte `json:"patch,omitempty"`
    
    	// The type of Patch. Currently we only allow "JSONPatch".
    	PatchType *string `json:"patchType,omitempty"`
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 10 16:40:00 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/jsonmergepatch/patch_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package jsonmergepatch
    
    import (
    	"fmt"
    	"reflect"
    	"testing"
    
    	jsonpatch "gopkg.in/evanphx/json-patch.v4"
    	"k8s.io/apimachinery/pkg/util/dump"
    	"k8s.io/apimachinery/pkg/util/json"
    	"sigs.k8s.io/yaml"
    )
    
    type FilterNullTestCases struct {
    	TestCases []FilterNullTestCase
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/request/admissionreview_test.go

    					Patch:   []byte(`[{"op":"add","path":"/foo","value":"bar"}]`),
    				},
    			},
    			expectAllowed:   true,
    			expectPatch:     []byte(`[{"op":"add","path":"/foo","value":"bar"}]`),
    			expectPatchType: "JSONPatch",
    		},
    		{
    			name:     "v1 patch",
    			uid:      "123",
    			mutating: true,
    			review: &admissionv1.AdmissionReview{
    				TypeMeta: metav1.TypeMeta{APIVersion: "admission.k8s.io/v1", Kind: "AdmissionReview"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 16:56:12 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go

    // Package mutating delegates admission checks to dynamically configured
    // mutating webhooks.
    package mutating
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"time"
    
    	"go.opentelemetry.io/otel/attribute"
    	jsonpatch "gopkg.in/evanphx/json-patch.v4"
    
    	admissionv1 "k8s.io/api/admission/v1"
    	admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
    	apiequality "k8s.io/apimachinery/pkg/api/equality"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  6. common/config/.golangci.yml

              - pkg: google.golang.org/protobuf/encoding/protojson
                desc: "don't use the protojson package directly; use util/protomarshal instead"
              - pkg: gomodules.xyz/jsonpatch/v3
                desc: "don't use v3; v2 is orders of magnitude higher performance"
              - pkg: k8s.io/apimachinery/pkg/util/sets
                desc: "use istio.io/istio/pkg/util/sets"
              - pkg: k8s.io/utils/env
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 20:03:06 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/config.go

    	}
    	for {
    		if c.JSONPatchMaxCopyBytes <= 0 {
    			break
    		}
    		existing := atomic.LoadInt64(&jsonpatch.AccumulatedCopySizeLimit)
    		if existing > 0 && existing < c.JSONPatchMaxCopyBytes {
    			break
    		}
    		if atomic.CompareAndSwapInt64(&jsonpatch.AccumulatedCopySizeLimit, existing, c.JSONPatchMaxCopyBytes) {
    			break
    		}
    	}
    
    	// first add poststarthooks from delegated targets
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 47.7K bytes
    - Viewed (0)
  8. pkg/kube/inject/webhook.go

    	"crypto/sha256"
    	"encoding/json"
    	"errors"
    	"fmt"
    	"net/http"
    	"os"
    	"strconv"
    	"strings"
    	"sync"
    	"text/template"
    	"time"
    
    	"github.com/prometheus/prometheus/util/strutil"
    	"gomodules.xyz/jsonpatch/v2"
    	admissionv1 "k8s.io/api/admission/v1"
    	kubeApiAdmissionv1beta1 "k8s.io/api/admission/v1beta1"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:59:39 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  9. go.mod

    	golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8
    	golang.org/x/net v0.26.0
    	golang.org/x/oauth2 v0.21.0
    	golang.org/x/sync v0.7.0
    	golang.org/x/sys v0.21.0
    	golang.org/x/time v0.5.0
    	gomodules.xyz/jsonpatch/v2 v2.4.0
    	google.golang.org/genproto/googleapis/api v0.0.0-20240604185151-ef581f913117
    	google.golang.org/genproto/googleapis/rpc v0.0.0-20240604185151-ef581f913117
    	google.golang.org/grpc v1.64.0
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 15:32:28 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. pkg/kube/inject/inject.go

    package inject
    
    import (
    	"bufio"
    	"bytes"
    	"encoding/json"
    	"fmt"
    	"io"
    	"reflect"
    	"sort"
    	"strconv"
    	"strings"
    	"text/template"
    
    	"github.com/Masterminds/sprig/v3"
    	jsonpatch "github.com/evanphx/json-patch/v5"
    	appsv1 "k8s.io/api/apps/v1"
    	batch "k8s.io/api/batch/v1"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/labels"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 28.8K bytes
    - Viewed (1)
Back to top