// secretIsInUse returns true if the given secret is referenced by some
// ingresscontroller.
secretIsInUse returns true if the given secret is referenced by some
ingresscontroller.
// secretIsInUse returns true if the given secret is referenced by some // ingresscontroller .
func (r *reconciler) secretIsInUse(meta metav1.Object) bool {
	controllers, err := r.ingressControllersWithSecret(meta.GetName())
	if err != nil {
		log.Error(err, "failed to list ingresscontrollers for secret", "related", meta.GetSelfLink())
		return false
	}
	return len(controllers) > 0
}
func ( r * reconciler ) secretIsInUse ( meta metav1 . Object ) bool { controllers , err := r . ingressControllersWithSecret ( meta . GetName ( ) ) if err != nil { log . Error ( err , " " , " " , meta . GetSelfLink ( ) ) return false } return len ( controllers ) > 0 }
secretIsInUse returns true if the given secret is referenced by some
ingresscontroller.
secretIsInUse returns true if the given secret is referenced by some ingresscontroller .