Skip to content

Commit 3ecbb38

Browse files
mfojtikopenshift-cherrypick-robot
authored andcommitted
OCPBUGS-13635: make webhook connection failure a warning in log
1 parent 6644665 commit 3ecbb38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/operator/webhooksupportabilitycontroller/degraded_webhook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ func (c *webhookSupportabilityController) assertConnect(ctx context.Context, web
131131
conn, err = dialer.DialContext(ctx, "tcp", net.JoinHostPort(host, port))
132132
if err != nil {
133133
if i != 2 {
134-
// log err since only last one is reported
135-
runtime.HandleError(fmt.Errorf("%s: %v", webhookName, err))
134+
// log warning since only last one is reported
135+
klog.Warningf("failed to connect to webhook %q via service %q: %v", webhookName, net.JoinHostPort(host, port), err)
136136
}
137137
continue
138138
}

0 commit comments

Comments
 (0)