Skip to content

Commit

Permalink
fix some nit issue
Browse files Browse the repository at this point in the history
  • Loading branch information
googs1025 committed May 1, 2024
1 parent 907232f commit 38e37d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func setupFakeDiscoveryWithPolicyResource(fake *coretesting.Fake) {
})
}

func setupNodeMetrics(t *testing.T, koordClientSet koordinatorclientset.Interface, nodes []*corev1.Node, pods []*corev1.Pod, podMetrics map[types.NamespacedName]*slov1alpha1.ResourceMap) {
func setupNodeMetrics(koordClientSet koordinatorclientset.Interface, nodes []*corev1.Node, pods []*corev1.Pod, podMetrics map[types.NamespacedName]*slov1alpha1.ResourceMap) {
nodeMetrics := map[string]*slov1alpha1.NodeMetric{}
if len(pods) > 0 {
if podMetrics == nil {
Expand Down Expand Up @@ -995,7 +995,7 @@ func TestLowNodeLoad(t *testing.T) {
evictionLimiter := evictions.NewEvictionLimiter(nil, nil)

koordClientSet := koordfake.NewSimpleClientset()
setupNodeMetrics(t, koordClientSet, tt.nodes, tt.pods, tt.podMetrics)
setupNodeMetrics(koordClientSet, tt.nodes, tt.pods, tt.podMetrics)

fh, err := frameworktesting.NewFramework(
[]frameworktesting.RegisterPluginFunc{
Expand Down
2 changes: 1 addition & 1 deletion pkg/features/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const (
// ElasticQuotaValidatingWebhook enables validating webhook for ElasticQuotas creations or updates
ElasticQuotaValidatingWebhook featuregate.Feature = "ElasticValidatingWebhook"

// NodeValidatingWebhook enables mutating webhook for Node Creation or updates
// NodeMutatingWebhook enables mutating webhook for Node Creation or updates
NodeMutatingWebhook featuregate.Feature = "NodeMutatingWebhook"

// NodeValidatingWebhook enables validating webhook for Node Creation or updates
Expand Down

0 comments on commit 38e37d3

Please sign in to comment.