summaryrefslogtreecommitdiffstats
path: root/src/monitor/pkg/controller/resourcebundlestate/handler.go
blob: b84af69c7fc2f0e15c41db088fb4ef4a745c8ef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package resourcebundlestate

import (
	"k8s.io/client-go/util/workqueue"
	"sigs.k8s.io/controller-runtime/pkg/event"
	"sigs.k8s.io/controller-runtime/pkg/handler"
)

// EventHandler adds some specific handling for certain types of events
// related to the ResourceBundleState CR.
type EventHandler struct {
	handler.EnqueueRequestForObject
}

// Delete ignores any delete operations on a ResourceBundleState CR
func (p *EventHandler) Delete(evt event.DeleteEvent, q workqueue.RateLimitingInterface) {
	return
}

// Update ignores any update operations on a ResourceBundleState CR
func (p *EventHandler) Update(evt event.UpdateEvent, q workqueue.RateLimitingInterface) {
	return
}

// Generic ignores any generic operations on a ResourceBundleState CR
func (p *EventHandler) Generic(evt event.GenericEvent, q workqueue.RateLimitingInterface) {
	return
}