mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +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"
|
"k8s.io/kubernetes/pkg/scheduler/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
// Name of the plugin used in the plugin registry and configurations.
|
||||||
// Name of the plugin used in the plugin registry and configurations.
|
const Name = names.DefaultPreemption
|
||||||
Name = names.DefaultPreemption
|
|
||||||
)
|
|
||||||
|
|
||||||
// DefaultPreemption is a PostFilter plugin implements the preemption logic.
|
// DefaultPreemption is a PostFilter plugin implements the preemption logic.
|
||||||
type DefaultPreemption struct {
|
type DefaultPreemption struct {
|
||||||
|
@ -30,10 +30,8 @@ import (
|
|||||||
"k8s.io/kubernetes/pkg/scheduler/framework/plugins/names"
|
"k8s.io/kubernetes/pkg/scheduler/framework/plugins/names"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
// Name is the name of the plugin used in the plugin registry and configurations.
|
||||||
// Name is the name of the plugin used in the plugin registry and configurations.
|
const Name = names.InterPodAffinity
|
||||||
Name = names.InterPodAffinity
|
|
||||||
)
|
|
||||||
|
|
||||||
var _ framework.PreFilterPlugin = &InterPodAffinity{}
|
var _ framework.PreFilterPlugin = &InterPodAffinity{}
|
||||||
var _ framework.FilterPlugin = &InterPodAffinity{}
|
var _ framework.FilterPlugin = &InterPodAffinity{}
|
||||||
|
@ -24,9 +24,7 @@ import (
|
|||||||
"k8s.io/kubernetes/pkg/scheduler/framework/plugins/helper"
|
"k8s.io/kubernetes/pkg/scheduler/framework/plugins/helper"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const maxUtilization = 100
|
||||||
maxUtilization = 100
|
|
||||||
)
|
|
||||||
|
|
||||||
// buildRequestedToCapacityRatioScorerFunction allows users to apply bin packing
|
// buildRequestedToCapacityRatioScorerFunction allows users to apply bin packing
|
||||||
// on core resources like CPU, Memory as well as extended resources like accelerators.
|
// 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.ScorePlugin = &PodTopologySpread{}
|
||||||
var _ framework.EnqueueExtensions = &PodTopologySpread{}
|
var _ framework.EnqueueExtensions = &PodTopologySpread{}
|
||||||
|
|
||||||
const (
|
// Name is the name of the plugin used in the plugin registry and configurations.
|
||||||
// Name is the name of the plugin used in the plugin registry and configurations.
|
const Name = names.PodTopologySpread
|
||||||
Name = names.PodTopologySpread
|
|
||||||
)
|
|
||||||
|
|
||||||
// Name returns name of the plugin. It is used in logs, etc.
|
// Name returns name of the plugin. It is used in logs, etc.
|
||||||
func (pl *PodTopologySpread) Name() string {
|
func (pl *PodTopologySpread) Name() string {
|
||||||
|
@ -226,10 +226,8 @@ type FitError struct {
|
|||||||
Diagnosis Diagnosis
|
Diagnosis Diagnosis
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
// NoNodeAvailableMsg is used to format message when no nodes available.
|
||||||
// NoNodeAvailableMsg is used to format message when no nodes available.
|
const NoNodeAvailableMsg = "0/%v nodes are available"
|
||||||
NoNodeAvailableMsg = "0/%v nodes are available"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Error returns detailed information of why the pod failed to fit on each node
|
// Error returns detailed information of why the pod failed to fit on each node
|
||||||
func (f *FitError) Error() string {
|
func (f *FitError) Error() string {
|
||||||
|
Loading…
Reference in New Issue
Block a user