From be5dc4d760d3b8948cea443014749c9905c1db54 Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Tue, 17 Apr 2018 11:25:26 -0400 Subject: [PATCH] Log webhook request error Kubernetes-commit: 55c66f79a6ab71fd2eaa5574bb13a2632236e640 --- plugin/pkg/authenticator/token/webhook/webhook.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/pkg/authenticator/token/webhook/webhook.go b/plugin/pkg/authenticator/token/webhook/webhook.go index b1f6420ea..c735a0aa4 100644 --- a/plugin/pkg/authenticator/token/webhook/webhook.go +++ b/plugin/pkg/authenticator/token/webhook/webhook.go @@ -21,6 +21,8 @@ import ( "fmt" "time" + "github.com/golang/glog" + authentication "k8s.io/api/authentication/v1beta1" "k8s.io/apimachinery/pkg/apimachinery/registered" "k8s.io/apimachinery/pkg/runtime/schema" @@ -84,6 +86,8 @@ func (w *WebhookTokenAuthenticator) AuthenticateToken(token string) (user.Info, return err }) if err != nil { + // An error here indicates bad configuration or an outage. Log for debugging. + glog.Errorf("Failed to make webhook authenticator request: %v", err) return nil, false, err } r.Status = result.Status