- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ValidatePositiveIntOrPercent (0.26 sec)
-
pkg/apis/policy/validation/validation.go
if spec.MinAvailable != nil { allErrs = append(allErrs, appsvalidation.ValidatePositiveIntOrPercent(*spec.MinAvailable, fldPath.Child("minAvailable"))...) allErrs = append(allErrs, appsvalidation.IsNotMoreThan100Percent(*spec.MinAvailable, fldPath.Child("minAvailable"))...) } if spec.MaxUnavailable != nil { allErrs = append(allErrs, appsvalidation.ValidatePositiveIntOrPercent(*spec.MaxUnavailable, fldPath.Child("maxUnavailable"))...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 07 20:44:13 UTC 2023 - 5.2K bytes - Viewed (0) -
pkg/apis/apps/validation/validation.go
var allErrs field.ErrorList // Validate both fields are positive ints or have a percentage value allErrs = append(allErrs, ValidatePositiveIntOrPercent(rollingUpdate.MaxUnavailable, fldPath.Child("maxUnavailable"))...) allErrs = append(allErrs, ValidatePositiveIntOrPercent(rollingUpdate.MaxSurge, fldPath.Child("maxSurge"))...) // Validate that MaxUnavailable and MaxSurge are not more than 100%.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 06 22:11:20 UTC 2024 - 41.4K bytes - Viewed (0)