mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 01:40:13 +00:00
Merge pull request #110493 from xiaomudk/remove-parentheses
clean: remove useless parentheses
This commit is contained in:
commit
df92c0a6fb
@ -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 {
|
||||
|
@ -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{}
|
||||
|
@ -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.
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user