Resolve some FIXME

This commit is contained in:
Tomasz Sęk
2021-01-27 10:33:38 +01:00
parent 524d0b861f
commit 363b9e0fc0
8 changed files with 29 additions and 12 deletions
+5 -3
View File
@@ -2,7 +2,9 @@ package controllers
import (
"fmt"
"reflect"
"github.com/jenkinsci/kubernetes-operator/api/v1alpha2"
"github.com/jenkinsci/kubernetes-operator/pkg/constants"
"github.com/jenkinsci/kubernetes-operator/pkg/log"
@@ -10,6 +12,7 @@ import (
"k8s.io/apimachinery/pkg/types"
"k8s.io/client-go/util/workqueue"
"sigs.k8s.io/controller-runtime/pkg/event"
"sigs.k8s.io/controller-runtime/pkg/handler"
"sigs.k8s.io/controller-runtime/pkg/reconcile"
)
@@ -72,8 +75,7 @@ func (e *enqueueRequestForJenkins) getOwnerReconcileRequests(object metav1.Objec
return nil
}
// FIXME unused
/*type jenkinsDecorator struct {
type jenkinsDecorator struct {
handler handler.EventHandler
}
@@ -95,4 +97,4 @@ func (e *jenkinsDecorator) Delete(evt event.DeleteEvent, q workqueue.RateLimitin
func (e *jenkinsDecorator) Generic(evt event.GenericEvent, q workqueue.RateLimitingInterface) {
e.handler.Generic(evt, q)
}*/
}