Make admission webhooks not ignore scheme

pull/6/head
jennybuckley 2018-03-08 11:35:13 -08:00
parent d112ffc2eb
commit 7d5696eb6d
1 changed files with 1 additions and 1 deletions

View File

@ -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)