Merge pull request #110493 from xiaomudk/remove-parentheses

clean: remove useless parentheses
This commit is contained in:
Kubernetes Prow Robot 2022-06-13 06:44:22 -07:00 committed by GitHub
commit df92c0a6fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 19 deletions

View File

@ -43,10 +43,8 @@ import (
"k8s.io/kubernetes/pkg/scheduler/util"
)
const (
// Name of the plugin used in the plugin registry and configurations.
Name = names.DefaultPreemption
)
// Name of the plugin used in the plugin registry and configurations.
const Name = names.DefaultPreemption
// DefaultPreemption is a PostFilter plugin implements the preemption logic.
type DefaultPreemption struct {

View File

@ -30,10 +30,8 @@ import (
"k8s.io/kubernetes/pkg/scheduler/framework/plugins/names"
)
const (
// Name is the name of the plugin used in the plugin registry and configurations.
Name = names.InterPodAffinity
)
// Name is the name of the plugin used in the plugin registry and configurations.
const Name = names.InterPodAffinity
var _ framework.PreFilterPlugin = &InterPodAffinity{}
var _ framework.FilterPlugin = &InterPodAffinity{}

View File

@ -24,9 +24,7 @@ import (
"k8s.io/kubernetes/pkg/scheduler/framework/plugins/helper"
)
const (
maxUtilization = 100
)
const maxUtilization = 100
// buildRequestedToCapacityRatioScorerFunction allows users to apply bin packing
// on core resources like CPU, Memory as well as extended resources like accelerators.

View File

@ -72,10 +72,8 @@ var _ framework.PreScorePlugin = &PodTopologySpread{}
var _ framework.ScorePlugin = &PodTopologySpread{}
var _ framework.EnqueueExtensions = &PodTopologySpread{}
const (
// Name is the name of the plugin used in the plugin registry and configurations.
Name = names.PodTopologySpread
)
// Name is the name of the plugin used in the plugin registry and configurations.
const Name = names.PodTopologySpread
// Name returns name of the plugin. It is used in logs, etc.
func (pl *PodTopologySpread) Name() string {

View File

@ -226,10 +226,8 @@ type FitError struct {
Diagnosis Diagnosis
}
const (
// NoNodeAvailableMsg is used to format message when no nodes available.
NoNodeAvailableMsg = "0/%v nodes are available"
)
// NoNodeAvailableMsg is used to format message when no nodes available.
const NoNodeAvailableMsg = "0/%v nodes are available"
// Error returns detailed information of why the pod failed to fit on each node
func (f *FitError) Error() string {