Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 53 for PatchOptions (0.28 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go

    	tests := []struct {
    		name        string
    		converterFn func(po *metav1.PatchOptions) interface{}
    	}{
    		{
    			name: "patchToUpdateOptions",
    			converterFn: func(patch *metav1.PatchOptions) interface{} {
    				return patchToUpdateOptions(patch)
    			},
    		},
    		{
    			name: "patchToCreateOptions",
    			converterFn: func(patch *metav1.PatchOptions) interface{} {
    				return patchToCreateOptions(patch)
    			},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/example.go

    	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)
    	ExampleExpansion
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. pkg/config/schema/codegen/templates/crdclient.go.tmpl

    				return nil, err
    		}
    		return c.{{.ClientGetter}}().{{ .ClientGroupPath }}().{{ .ClientTypePath }}({{if not .Resource.ClusterScoped}}orig.Namespace{{end}}).
    				Patch(context.TODO(), orig.Name, typ, patchBytes, metav1.PatchOptions{FieldManager: "pilot-discovery"})
    	{{- end }}
    {{- end }}
    	default:
    		return nil, fmt.Errorf("unsupported type: %v", orig.GroupVersionKind)
    	}
    }
    
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 13:57:51 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/customresourcedefinition.go

    	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)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/customresourcedefinition.go

    	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.CustomResourceDefinition, err error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 12K bytes
    - Viewed (0)
  6. tests/integration/ambient/waypoint_test.go

    			if service {
    				_, err := c.Kube().CoreV1().Services(ns).Patch(context.TODO(), name, types.MergePatchType, label, metav1.PatchOptions{})
    				return err
    			}
    			_, err := c.Istio().NetworkingV1beta1().ServiceEntries(ns).Patch(context.TODO(), name, types.MergePatchType, label, metav1.PatchOptions{})
    			return err
    		}
    
    		if err := setWaypoint(waypoint); err != nil {
    			t.Fatal(err)
    		}
    		t.Cleanup(func() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/test/integration/basic_test.go

    	}
    
    	t.Logf("Patching .num.num2 to 999")
    	patch := []byte(`{"num": {"num2":999}}`)
    	patchedNoxuInstance, err := noxuNamespacedResourceClient.Patch(context.TODO(), "foo", types.MergePatchType, patch, metav1.PatchOptions{})
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	expectInt64(t, patchedNoxuInstance.UnstructuredContent(), 999, "num", "num2")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 11:35:33 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/fake/fake_example.go

    	return err
    }
    
    // Patch applies the patch and returns the patched example.
    func (c *FakeExamples) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Example, err error) {
    	emptyResult := &v1.Example{}
    	obj, err := c.Fake.
    		Invokes(testing.NewPatchSubresourceAction(examplesResource, c.ns, name, pt, data, subresources...), emptyResult)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. pkg/controller/storageversionmigrator/storageversionmigrator.go

    		if err != nil {
    			return err
    		}
    
    		_, err = svmc.dynamicClient.Resource(gvr).
    			Namespace(namespace).
    			Patch(ctx,
    				name,
    				types.ApplyPatchType,
    				data,
    				metav1.PatchOptions{
    					FieldManager: svmc.controllerName,
    				},
    			)
    		if err != nil {
    			// in case of NotFound or Conflict, we can stop processing migration for that resource
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/fake/fake_customresourcedefinition.go

    	return err
    }
    
    // Patch applies the patch and returns the patched customResourceDefinition.
    func (c *FakeCustomResourceDefinitions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CustomResourceDefinition, err error) {
    	emptyResult := &v1.CustomResourceDefinition{}
    	obj, err := c.Fake.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top