We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1143da commit b95191fCopy full SHA for b95191f
pkg/scheduler/eventhandlers_test.go
@@ -180,6 +180,27 @@ func TestSkipPodUpdate(t *testing.T) {
180
},
181
expected: false,
182
183
+ {
184
+ name: "with changes on Finalizers",
185
+ pod: &v1.Pod{
186
+ ObjectMeta: metav1.ObjectMeta{
187
+ Name: "pod-0",
188
+ Finalizers: []string{"a", "b"},
189
+ },
190
191
+ isAssumedPodFunc: func(*v1.Pod) bool {
192
+ return true
193
194
+ getPodFunc: func(*v1.Pod) *v1.Pod {
195
+ return &v1.Pod{
196
197
198
+ Finalizers: []string{"c", "d"},
199
200
+ }
201
202
+ expected: true,
203
204
} {
205
t.Run(test.name, func(t *testing.T) {
206
c := &Scheduler{
0 commit comments