- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ValidateResourceQuantityValue (0.39 sec)
-
pkg/apis/core/v1/validation/validation.go
return append(allErrs, field.Invalid(fldPath, value, "doesn't follow extended resource name standard")) } } return allErrs } // ValidateResourceQuantityValue enforces that specified quantity is valid for specified resource func ValidateResourceQuantityValue(resource core.ResourceName, value resource.Quantity, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 28 07:31:28 UTC 2023 - 6.7K bytes - Viewed (0) -
pkg/apis/core/validation/validation.go
resPath := field.NewPath("status", "capacity", string(k)) allErrs = append(allErrs, ValidateResourceQuantityValue(k, v, resPath)...) } // Validate resource quantities in allocatable. for k, v := range node.Status.Allocatable { resPath := field.NewPath("status", "allocatable", string(k)) allErrs = append(allErrs, ValidateResourceQuantityValue(k, v, resPath)...) } return allErrs }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 349.5K bytes - Viewed (0)