Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ToPatchOptions (0.2 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/customresourcedefinition.go

    	if customResourceDefinition == nil {
    		return nil, fmt.Errorf("customResourceDefinition provided to Apply must not be nil")
    	}
    	patchOpts := opts.ToPatchOptions()
    	data, err := json.Marshal(customResourceDefinition)
    	if err != nil {
    		return nil, err
    	}
    	name := customResourceDefinition.Name
    	if name == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/customresourcedefinition.go

    	if customResourceDefinition == nil {
    		return nil, fmt.Errorf("customResourceDefinition provided to Apply must not be nil")
    	}
    	patchOpts := opts.ToPatchOptions()
    	data, err := json.Marshal(customResourceDefinition)
    	if err != nil {
    		return nil, err
    	}
    	name := customResourceDefinition.Name
    	if name == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. pkg/controller/testutil/test_utils.go

    // Apply applies a NodeApplyConfiguration to a Node in the fake store.
    func (m *FakeNodeHandler) Apply(ctx context.Context, node *v1apply.NodeApplyConfiguration, opts metav1.ApplyOptions) (*v1.Node, error) {
    	patchOpts := opts.ToPatchOptions()
    	data, err := json.Marshal(node)
    	if err != nil {
    		return nil, err
    	}
    	name := node.Name
    	if name == nil {
    		return nil, fmt.Errorf("deployment.Name must be provided to Apply")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top