mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Update pkg/apis/coordination/validation/validation.go
Co-authored-by: Katrina Verey <kn.verey@gmail.com>
This commit is contained in:
parent
8e9ea7b481
commit
efdfaab301
@ -46,7 +46,7 @@ func ValidateLeaseSpec(spec *coordination.LeaseSpec, fldPath *field.Path) field.
|
||||
}
|
||||
if spec.LeaseTransitions != nil && *spec.LeaseTransitions < 0 {
|
||||
fld := fldPath.Child("leaseTransitions")
|
||||
allErrs = append(allErrs, field.Invalid(fld, spec.LeaseTransitions, "must be greater or equal than 0"))
|
||||
allErrs = append(allErrs, field.Invalid(fld, spec.LeaseTransitions, "must be greater than or equal to 0"))
|
||||
}
|
||||
return allErrs
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user