Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 105 for PatchType (0.16 sec)

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

    			}
    			if patchType != tc.expectedPatchType {
    				t.Errorf("expected patch type: %v, got: %v", tc.expectedPatchType, patchType)
    			}
    		})
    	}
    }
    
    func TestCreatePatchSet(t *testing.T) {
    	tests := []struct {
    		name             string
    		targetName       string
    		patchType        types.PatchType
    		expectedPatchSet *patchSet
    		data             string
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 09 14:24:11 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/types/patch.go

    // dedicated to.
    type PatchType string
    
    const (
    	JSONPatchType           PatchType = "application/json-patch+json"
    	MergePatchType          PatchType = "application/merge-patch+json"
    	StrategicMergePatchType PatchType = "application/strategic-merge-patch+json"
    	ApplyPatchType          PatchType = "application/apply-patch+yaml"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 04 21:51:48 UTC 2019
    - 1K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/envoyfilter/monitoring.go

    	Applied Result = "applied"
    )
    
    type PatchType string
    
    const (
    	Cluster        PatchType = "cluster"
    	Listener       PatchType = "listener"
    	ListenerFilter PatchType = "listenerfilter"
    	FilterChain    PatchType = "filterchain"
    	NetworkFilter  PatchType = "networkfilter"
    	// nolint
    	HttpFilter  PatchType = "httpfilter"
    	Route       PatchType = "route"
    	VirtualHost PatchType = "vhost"
    )
    
    var (
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/request/admissionreview.go

    			}
    			patch = r.Response.Patch
    			if r.Response.PatchType != nil {
    				patchType = *r.Response.PatchType
    				if len(patchType) == 0 {
    					return nil, fmt.Errorf("webhook returned invalid response.patchType of %q", patchType)
    				}
    			}
    		} else {
    			// Ensure a validating webhook doesn't return patch or patchType
    			if len(r.Response.Patch) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 16:56:12 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. pkg/kube/adapter.go

    				DryRun:             arRequest.DryRun,
    				Options:            arRequest.Options,
    			}
    		}
    		if arResponse != nil {
    			var patchType *kubeApiAdmissionv1beta1.PatchType
    			if arResponse.PatchType != nil {
    				patchType = (*kubeApiAdmissionv1beta1.PatchType)(arResponse.PatchType)
    			}
    			arv1beta1.Response = &kubeApiAdmissionv1beta1.AdmissionResponse{
    				UID:              arResponse.UID,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 10 16:40:00 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  8. pkg/apis/admission/types.go

    	// Warnings over 256 characters and large numbers of warnings may be truncated.
    	// +optional
    	Warnings []string
    }
    
    // PatchType is the type of patch being used to represent the mutated object
    type PatchType string
    
    // PatchType constants.
    const (
    	PatchTypeJSONPatch PatchType = "JSONPatch"
    )
    
    // Operation is the type of resource operation being checked for admission control
    type Operation string
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 01 16:14:06 UTC 2020
    - 7.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/admission/v1beta1/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: Wed Jul 01 16:14:06 UTC 2020
    - 9.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/request/admissionreview_test.go

    	v1beta1JSONPatch := admissionv1beta1.PatchTypeJSONPatch
    	v1JSONPatch := admissionv1.PatchTypeJSONPatch
    
    	emptyv1beta1Patch := admissionv1beta1.PatchType("")
    	emptyv1Patch := admissionv1.PatchType("")
    
    	invalidv1beta1Patch := admissionv1beta1.PatchType("Foo")
    	invalidv1Patch := admissionv1.PatchType("Foo")
    
    	testcases := []struct {
    		name     string
    		uid      types.UID
    		mutating bool
    		review   runtime.Object
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 16:56:12 UTC 2023
    - 20.1K bytes
    - Viewed (0)
Back to top