Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for deepCopy (0.13 sec)

  1. pkg/registry/core/service/storage/storage_test.go

    	*REST
    }
    
    func (f *wrapperRESTForTests) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error) {
    	// Making a DeepCopy here ensures that any in-place mutations of the input
    	// are not going to propagate to verification code, which used to happen
    	// resulting in tests that passed when they shouldn't have.
    	obj = obj.DeepCopyObject()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 440.2K bytes
    - Viewed (0)
  2. pkg/apis/core/validation/validation.go

    	allErrs := ValidateObjectMetaUpdate(&newPvc.ObjectMeta, &oldPvc.ObjectMeta, field.NewPath("metadata"))
    	allErrs = append(allErrs, ValidatePersistentVolumeClaim(newPvc, opts)...)
    	newPvcClone := newPvc.DeepCopy()
    	oldPvcClone := oldPvc.DeepCopy()
    
    	// PVController needs to update PVC.Spec w/ VolumeName.
    	// Claims are immutable in order to enforce quota, range limits, etc. without gaming the system.
    	if len(oldPvc.Spec.VolumeName) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
  3. pkg/proxy/iptables/proxier_test.go

    	}
    
    	// Change an endpoint of an existing service. This will cause its SVC and SEP
    	// chains to be rewritten.
    	eps3update := eps3.DeepCopy()
    	eps3update.Endpoints[0].Addresses[0] = "10.0.3.2"
    	fp.OnEndpointSliceUpdate(eps3, eps3update)
    	fp.syncProxyRules()
    
    	expected = dedent.Dedent(`
    		*filter
    		:KUBE-NODEPORTS - [0:0]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 249.9K bytes
    - Viewed (0)
Back to top