register UpdatePodOther to a general Update

This commit is contained in:
Kensei Nakada 2024-07-18 22:46:51 +09:00
parent 066826d476
commit e46fe0b673
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ const (
All ActionType = 1<<iota - 1
// Use the general Update type if you don't either know or care the specific sub-Update type to use.
Update = UpdateNodeAllocatable | UpdateNodeLabel | UpdateNodeTaint | UpdateNodeCondition | UpdateNodeAnnotation | UpdatePodLabel | UpdatePodRequest
Update = UpdateNodeAllocatable | UpdateNodeLabel | UpdateNodeTaint | UpdateNodeCondition | UpdateNodeAnnotation | UpdatePodLabel | UpdatePodRequest | UpdatePodOther
)
// GVK is short for group/version/kind, which can uniquely represent a particular API resource.

View File

@ -363,7 +363,7 @@ func Test_podSchedulingPropertiesChange(t *testing.T) {
name: "untracked properties of pod is updated",
newPod: st.MakePod().Annotation("foo", "bar").Obj(),
oldPod: st.MakePod().Annotation("foo", "bar2").Obj(),
want: []framework.ClusterEvent{AssignedPodUpdate},
want: []framework.ClusterEvent{AssignedPodOtherUpdate},
},
}
for _, tt := range tests {