Skip to content

Commit e46fe0b

Browse files
committed
register UpdatePodOther to a general Update
1 parent 066826d commit e46fe0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/scheduler/framework/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const (
7878
All ActionType = 1<<iota - 1
7979

8080
// Use the general Update type if you don't either know or care the specific sub-Update type to use.
81-
Update = UpdateNodeAllocatable | UpdateNodeLabel | UpdateNodeTaint | UpdateNodeCondition | UpdateNodeAnnotation | UpdatePodLabel | UpdatePodRequest
81+
Update = UpdateNodeAllocatable | UpdateNodeLabel | UpdateNodeTaint | UpdateNodeCondition | UpdateNodeAnnotation | UpdatePodLabel | UpdatePodRequest | UpdatePodOther
8282
)
8383

8484
// GVK is short for group/version/kind, which can uniquely represent a particular API resource.

pkg/scheduler/internal/queue/events_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ func Test_podSchedulingPropertiesChange(t *testing.T) {
363363
name: "untracked properties of pod is updated",
364364
newPod: st.MakePod().Annotation("foo", "bar").Obj(),
365365
oldPod: st.MakePod().Annotation("foo", "bar2").Obj(),
366-
want: []framework.ClusterEvent{AssignedPodUpdate},
366+
want: []framework.ClusterEvent{AssignedPodOtherUpdate},
367367
},
368368
}
369369
for _, tt := range tests {

0 commit comments

Comments
 (0)