@@ -60,7 +60,7 @@ func NewReconciler() *Reconciler {
6060// It returns the full hostname for the given instance that can be used for DNS records.
6161// If the default gateway is not found, it will requeue after a predefined interval.
6262func (r * Reconciler ) ReconcileGateway (ctx context.Context , instance * Instance , targetCluster * clusters.Cluster ) (GatewayReconcileResult , error ) {
63- log := logging .FromContextOrPanic (ctx )
63+ log := logging .FromContextOrDiscard (ctx )
6464
6565 var err error
6666
@@ -164,7 +164,7 @@ func (r *Reconciler) ReconcileTLSRoute(ctx context.Context, instance *Instance,
164164
165165// IsTLSRouteReady checks if the TLSRoute for the given instance is accepted by the default gateway.
166166func (r * Reconciler ) IsTLSRouteReady (ctx context.Context , instance * Instance , targetCluster * clusters.Cluster ) (bool , error ) {
167- log := logging .FromContextOrPanic (ctx )
167+ log := logging .FromContextOrDiscard (ctx )
168168
169169 var err error
170170
@@ -192,7 +192,7 @@ func (r *Reconciler) IsTLSRouteReady(ctx context.Context, instance *Instance, ta
192192
193193// DeleteTLSRoute deletes the TLSRoute for the given instance.
194194func (r * Reconciler ) DeleteTLSRoute (ctx context.Context , instance * Instance , targetCluster * clusters.Cluster ) error {
195- log := logging .FromContextOrPanic (ctx )
195+ log := logging .FromContextOrDiscard (ctx )
196196
197197 tlsRoute := & gatewayv1alpha2.TLSRoute {}
198198 tlsRoute .SetName (instance .Name )
0 commit comments