From 8640d177605c0e754df9c0b4dfa2d7b4584eeb70 Mon Sep 17 00:00:00 2001 From: SataQiu Date: Mon, 3 Oct 2022 16:30:38 +0800 Subject: [PATCH] scheduler: cleanup the unused event types about Service --- pkg/scheduler/framework/types.go | 1 - pkg/scheduler/internal/queue/events.go | 6 ------ 2 files changed, 7 deletions(-) diff --git a/pkg/scheduler/framework/types.go b/pkg/scheduler/framework/types.go index 6537007ae43..6fea6334af1 100644 --- a/pkg/scheduler/framework/types.go +++ b/pkg/scheduler/framework/types.go @@ -64,7 +64,6 @@ const ( Node GVK = "Node" PersistentVolume GVK = "PersistentVolume" PersistentVolumeClaim GVK = "PersistentVolumeClaim" - Service GVK = "Service" StorageClass GVK = "storage.k8s.io/StorageClass" CSINode GVK = "storage.k8s.io/CSINode" CSIDriver GVK = "storage.k8s.io/CSIDriver" diff --git a/pkg/scheduler/internal/queue/events.go b/pkg/scheduler/internal/queue/events.go index 3aa5e6f2488..44f8922968e 100644 --- a/pkg/scheduler/internal/queue/events.go +++ b/pkg/scheduler/internal/queue/events.go @@ -80,12 +80,6 @@ var ( CSIStorageCapacityAdd = framework.ClusterEvent{Resource: framework.CSIStorageCapacity, ActionType: framework.Add, Label: "CSIStorageCapacityAdd"} // CSIStorageCapacityUpdate is the event when a CSI storage capacity is updated in the cluster. CSIStorageCapacityUpdate = framework.ClusterEvent{Resource: framework.CSIStorageCapacity, ActionType: framework.Update, Label: "CSIStorageCapacityUpdate"} - // ServiceAdd is the event when a service is added in the cluster. - ServiceAdd = framework.ClusterEvent{Resource: framework.Service, ActionType: framework.Add, Label: "ServiceAdd"} - // ServiceUpdate is the event when a service is updated in the cluster. - ServiceUpdate = framework.ClusterEvent{Resource: framework.Service, ActionType: framework.Update, Label: "ServiceUpdate"} - // ServiceDelete is the event when a service is deleted in the cluster. - ServiceDelete = framework.ClusterEvent{Resource: framework.Service, ActionType: framework.Delete, Label: "ServiceDelete"} // WildCardEvent semantically matches all resources on all actions. WildCardEvent = framework.ClusterEvent{Resource: framework.WildCard, ActionType: framework.All, Label: "WildCardEvent"} // UnschedulableTimeout is the event when a pod stays in unschedulable for longer than timeout.