// secretToIngressController maps a secret to a slice of reconcile requests,
// one request per ingresscontroller that references the secret.
secretToIngressController maps a secret to a slice of reconcile requests,
one request per ingresscontroller that references the secret.
// secretToIngressController maps a secret to a slice of reconcile requests // one request per ingresscontroller that references the secret .
func (r *reconciler) secretToIngressController(o handler.MapObject) []reconcile.Request {
	requests := []reconcile.Request{}
	controllers, err := r.ingressControllersWithSecret(o.Meta.GetName())
	if err != nil {
		log.Error(err, "failed to list ingresscontrollers for secret", "related", o.Meta.GetSelfLink())
		return requests
	}
	for _, ic := range controllers {
		log.Info("queueing ingresscontroller", "name", ic.Name, "related", o.Meta.GetSelfLink())
		request := reconcile.Request{
			NamespacedName: types.NamespacedName{
				Namespace: ic.Namespace,
				Name:      ic.Name,
			},
		}
		requests = append(requests, request)
	}
	return requests
}
func ( r * reconciler ) secretToIngressController ( o handler . MapObject ) [ ] reconcile . Request { requests := [ ] reconcile . Request { } controllers , err := r . ingressControllersWithSecret ( o . Meta . GetName ( ) ) if err != nil { log . Error ( err , " " , " " , o . Meta . GetSelfLink ( ) ) return requests } for _ , ic := range controllers { log . Info ( " " , " " , ic . Name , " " , o . Meta . GetSelfLink ( ) ) request := reconcile . Request { NamespacedName : types . NamespacedName { Namespace : ic . Namespace , Name : ic . Name , } , } requests = append ( requests , request ) } return requests }
secretToIngressController maps a secret to a slice of reconcile requests,
one request per ingresscontroller that references the secret.
secretToIngressController maps a secret to a slice of reconcile requests one request per ingresscontroller that references the secret .