code: func HookClientConfigForWebhook(w *v1beta1.Webhook) webhook.ClientConfig {
  	ret := webhook.ClientConfig{Name: w.Name, CABundle: w.ClientConfig.CABundle}
  	if w.ClientConfig.URL != nil {
  		ret.URL = *w.ClientConfig.URL
  	}
  	if w.ClientConfig.Service != nil {
  		ret.Service = &webhook.ClientConfigService{
  			Name:      w.ClientConfig.Service.Name,
  			Namespace: w.ClientConfig.Service.Namespace,
  		}
  		if w.ClientConfig.Service.Port != nil {
  			ret.Service.Port = *w.ClientConfig.Service.Port
  		} else {
  			ret.Service.Port = 443
  		}
  		if w.ClientConfig.Service.Path != nil {
  			ret.Service.Path = *w.ClientConfig.Service.Path
  		}
  	}
  	return ret
  }
docs: // HookClientConfigForWebhook construct a webhook.ClientConfig using a v1beta1.Webhook API object.
  // webhook.ClientConfig is used to create a HookClient and the purpose of the config struct is to
  // share that with other packages that need to create a HookClient.