Skip to content

Commit 2734421

Browse files
authored
Merge pull request kubernetes#112827 from SataQiu/clean-scheduler-20221003
scheduler: cleanup the unused event types about Service
2 parents 3ef7784 + 8640d17 commit 2734421

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

Diff for: pkg/scheduler/framework/types.go

-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ const (
6464
Node GVK = "Node"
6565
PersistentVolume GVK = "PersistentVolume"
6666
PersistentVolumeClaim GVK = "PersistentVolumeClaim"
67-
Service GVK = "Service"
6867
StorageClass GVK = "storage.k8s.io/StorageClass"
6968
CSINode GVK = "storage.k8s.io/CSINode"
7069
CSIDriver GVK = "storage.k8s.io/CSIDriver"

Diff for: pkg/scheduler/internal/queue/events.go

-6
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,6 @@ var (
8080
CSIStorageCapacityAdd = framework.ClusterEvent{Resource: framework.CSIStorageCapacity, ActionType: framework.Add, Label: "CSIStorageCapacityAdd"}
8181
// CSIStorageCapacityUpdate is the event when a CSI storage capacity is updated in the cluster.
8282
CSIStorageCapacityUpdate = framework.ClusterEvent{Resource: framework.CSIStorageCapacity, ActionType: framework.Update, Label: "CSIStorageCapacityUpdate"}
83-
// ServiceAdd is the event when a service is added in the cluster.
84-
ServiceAdd = framework.ClusterEvent{Resource: framework.Service, ActionType: framework.Add, Label: "ServiceAdd"}
85-
// ServiceUpdate is the event when a service is updated in the cluster.
86-
ServiceUpdate = framework.ClusterEvent{Resource: framework.Service, ActionType: framework.Update, Label: "ServiceUpdate"}
87-
// ServiceDelete is the event when a service is deleted in the cluster.
88-
ServiceDelete = framework.ClusterEvent{Resource: framework.Service, ActionType: framework.Delete, Label: "ServiceDelete"}
8983
// WildCardEvent semantically matches all resources on all actions.
9084
WildCardEvent = framework.ClusterEvent{Resource: framework.WildCard, ActionType: framework.All, Label: "WildCardEvent"}
9185
// UnschedulableTimeout is the event when a pod stays in unschedulable for longer than timeout.

0 commit comments

Comments
 (0)