Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for patchtype (0.26 sec)

  1. cmd/kubeadm/app/util/patches/patches.go

    	}
    	patchType := patchTypes[sub[4]]
    
    	return targetName, patchType, nil, nil
    }
    
    // createPatchSet creates a patchSet object, by splitting the given "data" by "\n---".
    func createPatchSet(targetName string, patchType types.PatchType, data string) (*patchSet, error) {
    	var patches []string
    
    	// Split the patches and convert them to JSON.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher_test.go

    		},
    		{
    			name:     "empty configuration",
    			config:   "",
    			webhook:  "test-webhook",
    			patch:    []byte(`[{"op": "add", "path": "/metadata/labels/a", "value": "true"}]`),
    			expected: `{"configuration":"","webhook":"test-webhook","patch":[{"op":"add","path":"/metadata/labels/a","value":"true"}],"patchType":"JSONPatch"}`,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/admission/v1/types.go

    	// +optional
    	Patch []byte `json:"patch,omitempty" protobuf:"bytes,4,opt,name=patch"`
    
    	// The type of Patch. Currently we only allow "JSONPatch".
    	// +optional
    	PatchType *PatchType `json:"patchType,omitempty" protobuf:"bytes,5,opt,name=patchType"`
    
    	// AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go

    	}
    }
    
    func (w *webhookAnnotator) addPatchAnnotation(patch interface{}, patchType admissionv1.PatchType) {
    	if w.attr == nil || w.attr.Attributes == nil {
    		return
    	}
    	var value string
    	var err error
    	switch patchType {
    	case admissionv1.PatchTypeJSONPatch:
    		value, err = jsonPatchAnnotationValue(w.configuration, w.webhook, patch)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go

    		if idx := strings.Index(contentType, ";"); idx > 0 {
    			contentType = contentType[:idx]
    		}
    		patchType := types.PatchType(contentType)
    
    		// Ensure the patchType is one we support
    		if !sets.NewString(patchTypes...).Has(contentType) {
    			scope.err(negotiation.NewUnsupportedMediaTypeError(patchTypes), w, req)
    			return
    		}
    
    		namespace, name, err := scope.Namer.Name(req)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/options/generic.go

    	const usage = `Path to a directory that contains files named ` +
    		`"target[suffix][+patchtype].extension". For example, ` +
    		`"kube-apiserver0+merge.yaml" or just "etcd.json". ` +
    		`"target" can be one of "kube-apiserver", "kube-controller-manager", "kube-scheduler", "etcd", "kubeletconfiguration", "corednsdeployment". ` +
    		`"patchtype" can be one of "strategic", "merge" or "json" and they match the patch formats ` +
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. pilot/pkg/config/kube/crdclient/client.go

    }
    
    func genPatchBytes(oldRes, modRes runtime.Object, patchType types.PatchType) ([]byte, error) {
    	oldJSON, err := json.Marshal(oldRes)
    	if err != nil {
    		return nil, fmt.Errorf("failed marhsalling original resource: %v", err)
    	}
    	newJSON, err := json.Marshal(modRes)
    	if err != nil {
    		return nil, fmt.Errorf("failed marhsalling modified resource: %v", err)
    	}
    	switch patchType {
    	case types.JSONPatchType:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 00:12:28 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go

    	}
    	for _, patchType := range []types.PatchType{types.JSONPatchType, types.MergePatchType, types.StrategicMergePatchType} {
    		// This needs to be reset on each iteration.
    		testPatcher := &testPatcher{
    			t:           t,
    			startingPod: tc.startingPod,
    			updatePod:   tc.updatePod,
    		}
    
    		t.Logf("Working with patchType %v", patchType)
    
    		patch := []byte{}
    		switch patchType {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/customresourcedefinition.go

    	List(ctx context.Context, opts v1.ListOptions) (*v1beta1.CustomResourceDefinitionList, error)
    	Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
    	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.CustomResourceDefinition, err error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/example.go

    	List(ctx context.Context, opts metav1.ListOptions) (*v1.ExampleList, error)
    	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
    	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Example, err error)
    	Apply(ctx context.Context, example *crv1.ExampleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Example, err error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top