Make admission webhooks not ignore scheme

This commit is contained in:
jennybuckley 2018-03-08 11:35:13 -08:00
parent d112ffc2eb
commit 7d5696eb6d

View File

@ -168,7 +168,7 @@ func (cm *ClientManager) HookClient(h *v1beta1.Webhook) (*rest.RESTClient, error
} }
cfg := rest.CopyConfig(restConfig) cfg := rest.CopyConfig(restConfig)
cfg.Host = u.Host cfg.Host = u.Scheme + "://" + u.Host
cfg.APIPath = u.Path cfg.APIPath = u.Path
return complete(cfg) return complete(cfg)