- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 96 for PatchType (0.15 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation_test.go
opts metav1.PatchOptions patchType types.PatchType }{{ opts: metav1.PatchOptions{ Force: boolPtr(true), FieldManager: "kubectl", }, patchType: types.ApplyPatchType, }, { opts: metav1.PatchOptions{ FieldManager: "kubectl", }, patchType: types.ApplyPatchType, }, { opts: metav1.PatchOptions{}, patchType: types.MergePatchType, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 02 07:48:42 UTC 2023 - 15.2K bytes - Viewed (0)