// hasSecret returns true if the effective default certificate secret for the
// given ingresscontroller exists, false otherwise.
hasSecret returns true if the effective default certificate secret for the
given ingresscontroller exists, false otherwise.
// hasSecret returns true if the effective default certificate secret for the // given ingresscontroller exists false otherwise .
func (r *reconciler) hasSecret(meta metav1.Object, o runtime.Object) bool {
	ic := o.(*operatorv1.IngressController)
	secretName := controller.RouterEffectiveDefaultCertificateSecretName(ic, r.operandNamespace)
	secret := &corev1.Secret{}
	if err := r.client.Get(context.Background(), secretName, secret); err != nil {
		if errors.IsNotFound(err) {
			return false
		}
		log.Error(err, "failed to look up secret for ingresscontroller", "name", secretName, "related", meta.GetSelfLink())
	}
	return true
}
func ( r * reconciler ) hasSecret ( meta metav1 . Object , o runtime . Object ) bool { ic := o . ( * operatorv1 . IngressController ) secretName := controller . RouterEffectiveDefaultCertificateSecretName ( ic , r . operandNamespace ) secret := & corev1 . Secret { } if err := r . client . Get ( context . Background ( ) , secretName , secret ) ; err != nil { if errors . IsNotFound ( err ) { return false } log . Error ( err , " " , " " , secretName , " " , meta . GetSelfLink ( ) ) } return true }
hasSecret returns true if the effective default certificate secret for the
given ingresscontroller exists, false otherwise.
hasSecret returns true if the effective default certificate secret for the given ingresscontroller exists false otherwise .