Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidateLeaseUpdate (0.88 sec)

  1. pkg/apis/coordination/validation/validation.go

    	allErrs = append(allErrs, ValidateLeaseSpec(&lease.Spec, field.NewPath("spec"))...)
    	return allErrs
    }
    
    // ValidateLeaseUpdate validates an update of Lease object.
    func ValidateLeaseUpdate(lease, oldLease *coordination.Lease) field.ErrorList {
    	allErrs := validation.ValidateObjectMetaUpdate(&lease.ObjectMeta, &oldLease.ObjectMeta, field.NewPath("metadata"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 03 17:25:43 UTC 2022
    - 2K bytes
    - Viewed (0)
  2. pkg/apis/coordination/validation/validation_test.go

    		},
    		Spec: coordination.LeaseSpec{
    			HolderIdentity:       &oldHolder,
    			LeaseDurationSeconds: &oldLeaseDuration,
    			LeaseTransitions:     &oldLeaseTransitions,
    		},
    	}
    	errs := ValidateLeaseUpdate(lease, oldLease)
    	if len(errs) != 3 {
    		t.Errorf("unexpected list of errors: %#v", errs.ToAggregate().Error())
    	}
    
    	validLeaseDuration := int32(10)
    	validLeaseTransitions := int32(20)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 02 02:22:52 UTC 2018
    - 2.9K bytes
    - Viewed (0)
  3. pkg/registry/coordination/lease/strategy.go

    	return true
    }
    
    // ValidateUpdate is the default update validation for an end user.
    func (leaseStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
    	return validation.ValidateLeaseUpdate(obj.(*coordination.Lease), old.(*coordination.Lease))
    }
    
    // WarningsOnUpdate returns warnings for the given update.
    func (leaseStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 14:42:36 UTC 2021
    - 2.8K bytes
    - Viewed (0)
Back to top