Skip to content

Commit 7c56aa5

Browse files
authored
Merge pull request kubernetes#128353 from sanposhiho/patch-13
fix: register ResourceSlice to allResources
2 parents 5d35341 + 3e9d88b commit 7c56aa5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/scheduler/framework/types.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var generation int64
4545
type ActionType int64
4646

4747
// Constants for ActionTypes.
48-
// Note: When you add a new ActionType, you must update the following:
48+
// CAUTION for contributors: When you add a new ActionType, you must update the following:
4949
// - The list of basic, podOnly, and nodeOnly.
5050
// - String() method.
5151
const (
@@ -145,6 +145,8 @@ type EventResource string
145145

146146
// Constants for GVKs.
147147
//
148+
// CAUTION for contributors: When you add a new EventResource, you must register a new one to allResources.
149+
//
148150
// Note:
149151
// - UpdatePodXYZ or UpdateNodeXYZ: triggered by updating particular parts of a Pod or a Node, e.g. updatePodLabel.
150152
// Use specific events rather than general ones (updatePodLabel vs update) can make the requeueing process more efficient
@@ -221,6 +223,7 @@ var (
221223
StorageClass,
222224
VolumeAttachment,
223225
ResourceClaim,
226+
ResourceSlice,
224227
DeviceClass,
225228
}
226229
)

0 commit comments

Comments
 (0)