From d2a0332e755d9d0f7206e1fcceede0a2a46bd415 Mon Sep 17 00:00:00 2001 From: goofy-z <1141000259@qq.com> Date: Sat, 9 Oct 2021 14:26:09 +0800 Subject: [PATCH] update extension point PostFilter comment --- pkg/scheduler/apis/config/types.go | 2 +- staging/src/k8s.io/kube-scheduler/config/v1beta2/types.go | 2 +- staging/src/k8s.io/kube-scheduler/config/v1beta3/types.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/scheduler/apis/config/types.go b/pkg/scheduler/apis/config/types.go index 0ec488195c1..41fb7d92d41 100644 --- a/pkg/scheduler/apis/config/types.go +++ b/pkg/scheduler/apis/config/types.go @@ -136,7 +136,7 @@ type Plugins struct { // Filter is a list of plugins that should be invoked when filtering out nodes that cannot run the Pod. Filter PluginSet - // PostFilter is a list of plugins that are invoked after filtering phase, no matter whether filtering succeeds or not. + // PostFilter is a list of plugins that are invoked after filtering phase, but only when no feasible nodes were found for the pod. PostFilter PluginSet // PreScore is a list of plugins that are invoked before scoring. diff --git a/staging/src/k8s.io/kube-scheduler/config/v1beta2/types.go b/staging/src/k8s.io/kube-scheduler/config/v1beta2/types.go index 5eac53052fc..bbe77cad20d 100644 --- a/staging/src/k8s.io/kube-scheduler/config/v1beta2/types.go +++ b/staging/src/k8s.io/kube-scheduler/config/v1beta2/types.go @@ -167,7 +167,7 @@ type Plugins struct { // Filter is a list of plugins that should be invoked when filtering out nodes that cannot run the Pod. Filter PluginSet `json:"filter,omitempty"` - // PostFilter is a list of plugins that are invoked after filtering phase, no matter whether filtering succeeds or not. + // PostFilter is a list of plugins that are invoked after filtering phase, but only when no feasible nodes were found for the pod. PostFilter PluginSet `json:"postFilter,omitempty"` // PreScore is a list of plugins that are invoked before scoring. diff --git a/staging/src/k8s.io/kube-scheduler/config/v1beta3/types.go b/staging/src/k8s.io/kube-scheduler/config/v1beta3/types.go index 64038aa9937..21c3c18c146 100644 --- a/staging/src/k8s.io/kube-scheduler/config/v1beta3/types.go +++ b/staging/src/k8s.io/kube-scheduler/config/v1beta3/types.go @@ -160,7 +160,7 @@ type Plugins struct { // Filter is a list of plugins that should be invoked when filtering out nodes that cannot run the Pod. Filter PluginSet `json:"filter,omitempty"` - // PostFilter is a list of plugins that are invoked after filtering phase, no matter whether filtering succeeds or not. + // PostFilter is a list of plugins that are invoked after filtering phase, but only when no feasible nodes were found for the pod. PostFilter PluginSet `json:"postFilter,omitempty"` // PreScore is a list of plugins that are invoked before scoring.