Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for PatchOptions (0.14 sec)

  1. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation_test.go

    	tests := []struct {
    		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)
  2. cni/pkg/nodeagent/informers_test.go

    		constants.DataplaneModeLabel, constants.DataplaneModeAmbient))
    	_, err := client.Kube().CoreV1().Namespaces().Patch(ctx, ns.Name,
    		types.MergePatchType, labelsPatch, metav1.PatchOptions{})
    	assert.NoError(t, err)
    
    	waitForMockCalls()
    
    	assertPodAnnotated(t, client, pod)
    
    	// Assert expected calls actually made
    	fs.AssertExpectations(t)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go

    			err := errors.NewInvalid(schema.GroupKind{Group: metav1.GroupName, Kind: "PatchOptions"}, "", errs)
    			scope.err(err, w, req)
    			return
    		}
    		options.TypeMeta.SetGroupVersionKind(metav1.SchemeGroupVersion.WithKind("PatchOptions"))
    
    		admit = admission.WithAudit(admit)
    
    		audit.LogRequestPatch(req.Context(), patchBytes)
    		span.AddEvent("Recorded the audit event")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/test/integration/subresources_test.go

    			if err == nil {
    				t.Fatalf("unexpected non-error: strategic merge patch is not supported for custom resources")
    			}
    
    			_, err = noxuResourceClient.Patch(context.TODO(), "foo", types.StrategicMergePatchType, patch, metav1.PatchOptions{}, "scale")
    			if err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 12 17:35:34 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  5. pkg/volume/util/resize_util.go

    	}
    
    	updatedPV, err := kubeClient.CoreV1().PersistentVolumes().Patch(context.TODO(), oldPV.Name, types.StrategicMergePatchType, patchBytes, metav1.PatchOptions{})
    	if err != nil {
    		return oldPV, fmt.Errorf("error Patching PV %q with error : %v", oldPV.Name, err)
    	}
    	return updatedPV, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 17 19:30:35 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  6. 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)
  7. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go

    func (in *PatchOptions) DeepCopy() *PatchOptions {
    	if in == nil {
    		return nil
    	}
    	out := new(PatchOptions)
    	in.DeepCopyInto(out)
    	return out
    }
    
    // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    func (in *PatchOptions) DeepCopyObject() runtime.Object {
    	if c := in.DeepCopy(); c != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 10:00:25 UTC 2023
    - 32.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.conversion.go

    	}); err != nil {
    		return err
    	}
    	if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*PatchOptions)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_url_Values_To_v1_PatchOptions(a.(*url.Values), b.(*PatchOptions), scope)
    	}); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 10:00:25 UTC 2023
    - 21.6K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top