Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Commit 81e8a04

Browse files
committed
uncomment add function
1 parent 0e6568d commit 81e8a04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kubernetes.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ func (e *K8sPool) start() error {
9595
)
9696

9797
e.informer.AddEventHandler(cache.ResourceEventHandlerFuncs{
98-
/*AddFunc: func(obj interface{}) {
98+
AddFunc: func(obj interface{}) {
9999
key, err := cache.MetaNamespaceKeyFunc(obj)
100100
logrus.Debugf("Queue (Add) '%s' - %s", key, err)
101101
if err != nil {
102102
logrus.Errorf("while calling MetaNamespaceKeyFunc(): %s", err)
103103
return
104104
}
105-
},*/
105+
},
106106
UpdateFunc: func(obj, new interface{}) {
107107
key, err := cache.MetaNamespaceKeyFunc(obj)
108108
logrus.Debugf("Queue (Update) '%s' - %s", key, err)

0 commit comments

Comments
 (0)