mirror of https://github.com/k3s-io/k3s
Make admission webhooks not ignore scheme
parent
d112ffc2eb
commit
7d5696eb6d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue