Commit 7d5696eb authored by jennybuckley's avatar jennybuckley

Make admission webhooks not ignore scheme

parent d112ffc2
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment