INNER CODE UNIT · Go
ok
inlets/inlets-operator · controller.go:242
if roll, ok = obj.(*inletsv1alpha1.Tunnel); !ok {
return inletsv1alpha1.Tunnel{}, false
}
return *roll, true
}
// enqueueInletsLoadBalancer takes a InletsLoadBalancer resource and converts it into a namespace/name
// string which is then put onto the work queue. This method should *not* be
// passed resources of any type other than InletsLoadBalancer.
func (c *Controller) enqueueService(obj interface{}) {
var key string
var err error
if key, err = cache.MetaNamespaceKeyFunc(obj); err != nil {
utilruntime.HandleError(err)
return
}
c.workqueue.AddRateLimited(key)
}