From 3e9d88b0ff38bec43c520f200a8f04a2cd2adce2 Mon Sep 17 00:00:00 2001 From: Kensei Nakada Date: Sat, 26 Oct 2024 22:48:02 +0900 Subject: [PATCH] fix: register ResourceSlice to allResources --- pkg/scheduler/framework/types.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/scheduler/framework/types.go b/pkg/scheduler/framework/types.go index a5bf5e15a4d..552afc99459 100644 --- a/pkg/scheduler/framework/types.go +++ b/pkg/scheduler/framework/types.go @@ -45,7 +45,7 @@ var generation int64 type ActionType int64 // Constants for ActionTypes. -// Note: When you add a new ActionType, you must update the following: +// CAUTION for contributors: When you add a new ActionType, you must update the following: // - The list of basic, podOnly, and nodeOnly. // - String() method. const ( @@ -145,6 +145,8 @@ type EventResource string // Constants for GVKs. // +// CAUTION for contributors: When you add a new EventResource, you must register a new one to allResources. +// // Note: // - UpdatePodXYZ or UpdateNodeXYZ: triggered by updating particular parts of a Pod or a Node, e.g. updatePodLabel. // Use specific events rather than general ones (updatePodLabel vs update) can make the requeueing process more efficient @@ -219,6 +221,7 @@ var ( CSIStorageCapacity, StorageClass, ResourceClaim, + ResourceSlice, DeviceClass, } )