diff --git a/pkg/scheduler/apis/config/types_pluginargs.go b/pkg/scheduler/apis/config/types_pluginargs.go index 4759d8fedee..30e9542edd9 100644 --- a/pkg/scheduler/apis/config/types_pluginargs.go +++ b/pkg/scheduler/apis/config/types_pluginargs.go @@ -134,7 +134,7 @@ type RequestedToCapacityRatioArgs struct { Shape []UtilizationShapePoint // Resources to be considered when scoring. // The default resource set includes "cpu" and "memory" with an equal weight. - // Allowed weights go from 1 to 100. + // Weights should be larger than 0. Resources []ResourceSpec } diff --git a/pkg/scheduler/apis/config/validation/validation_pluginargs.go b/pkg/scheduler/apis/config/validation/validation_pluginargs.go index 182f616bf10..41804fe9793 100644 --- a/pkg/scheduler/apis/config/validation/validation_pluginargs.go +++ b/pkg/scheduler/apis/config/validation/validation_pluginargs.go @@ -240,7 +240,7 @@ func validateFunctionShape(shape []config.UtilizationShapePoint, path *field.Pat return allErrs } -// TODO potentially replace with validateResources +// weight of resource is allowed to exceed 100, this is only applicable to `RequestedToCapacityRatio` plugin for backwards compatibility reason. func validateResourcesNoMax(resources []config.ResourceSpec, p *field.Path) field.ErrorList { var allErrs field.ErrorList for i, r := range resources {