Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ValidateLeaseSpec (0.56 sec)

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

    	allErrs = append(allErrs, ValidateLeaseSpec(&lease.Spec, field.NewPath("spec"))...)
    	return allErrs
    }
    
    // ValidateLeaseSpec validates spec of Lease.
    func ValidateLeaseSpec(spec *coordination.LeaseSpec, fldPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    
    	if spec.LeaseDurationSeconds != nil && *spec.LeaseDurationSeconds <= 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 03 17:25:43 UTC 2022
    - 2K bytes
    - Viewed (0)
Back to top