mirror of
https://github.com/kubernetes/client-go.git
synced 2026-07-25 05:41:54 +00:00
DRA: generated codes from FractionalCapacityRange
Signed-off-by: Sunyanan Choochotkaew <sunyanan.choochotkaew1@ibm.com> Kubernetes-commit: 9f2643c6b8835dd87acc614c66e52fac3a15e569
This commit is contained in:
committed by
Kubernetes Publisher
parent
4e89d98b95
commit
c7a90e2021
@@ -27,6 +27,13 @@ import (
|
||||
//
|
||||
// CapacityRequestPolicyRange defines a valid range for consumable capacity values.
|
||||
//
|
||||
// If the DRAFractionalCapacityRange feature gate is
|
||||
// enabled and at least one of Min, Max, or Step is a fractional quantity (i.e.
|
||||
// its value is not an integer), milli-unit arithmetic is used instead,
|
||||
// supporting values with up to 3 decimal places (e.g. 100m = 0.1).
|
||||
// The largest supported value then is 1000 times smaller compared to using 64-bit integers.
|
||||
// Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value().
|
||||
//
|
||||
// - If the requested amount is less than Min, it is rounded up to the Min value.
|
||||
// - If Step is set and the requested amount is between Min and Max but not aligned with Step,
|
||||
// it will be rounded up to the next value equal to Min + (n * Step).
|
||||
|
||||
@@ -27,6 +27,13 @@ import (
|
||||
//
|
||||
// CapacityRequestPolicyRange defines a valid range for consumable capacity values.
|
||||
//
|
||||
// If the DRAFractionalCapacityRange feature gate is
|
||||
// enabled and at least one of Min, Max, or Step is a fractional quantity (i.e.
|
||||
// its value is not an integer), milli-unit arithmetic is used instead,
|
||||
// supporting values with up to 3 decimal places (e.g. 100m = 0.1).
|
||||
// The largest supported value then is 1000 times smaller compared to using 64-bit integers.
|
||||
// Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value().
|
||||
//
|
||||
// - If the requested amount is less than Min, it is rounded up to the Min value.
|
||||
// - If Step is set and the requested amount is between Min and Max but not aligned with Step,
|
||||
// it will be rounded up to the next value equal to Min + (n * Step).
|
||||
|
||||
@@ -27,6 +27,13 @@ import (
|
||||
//
|
||||
// CapacityRequestPolicyRange defines a valid range for consumable capacity values.
|
||||
//
|
||||
// If the DRAFractionalCapacityRange feature gate is
|
||||
// enabled and at least one of Min, Max, or Step is a fractional quantity (i.e.
|
||||
// its value is not an integer), milli-unit arithmetic is used instead,
|
||||
// supporting values with up to 3 decimal places (e.g. 100m = 0.1).
|
||||
// The largest supported value then is 1000 times smaller compared to using 64-bit integers.
|
||||
// Otherwise, all comparisons use 64-bit integer arithmetic via resource.Quantity.Value().
|
||||
//
|
||||
// - If the requested amount is less than Min, it is rounded up to the Min value.
|
||||
// - If Step is set and the requested amount is between Min and Max but not aligned with Step,
|
||||
// it will be rounded up to the next value equal to Min + (n * Step).
|
||||
|
||||
Reference in New Issue
Block a user