From 7d5696eb6d98a0ce76e4fe18c3e37aec05060b46 Mon Sep 17 00:00:00 2001 From: jennybuckley Date: Thu, 8 Mar 2018 11:35:13 -0800 Subject: [PATCH] Make admission webhooks not ignore scheme --- .../apiserver/pkg/admission/plugin/webhook/config/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/config/client.go b/staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/config/client.go index 808ef944ffe..80a3f0dba25 100644 --- a/staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/config/client.go +++ b/staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/config/client.go @@ -168,7 +168,7 @@ func (cm *ClientManager) HookClient(h *v1beta1.Webhook) (*rest.RESTClient, error } cfg := rest.CopyConfig(restConfig) - cfg.Host = u.Host + cfg.Host = u.Scheme + "://" + u.Host cfg.APIPath = u.Path return complete(cfg)