apiserver/pkg/util/webhook
Monis Khan 2d35015235 webhook: use rest.Config instead of kubeconfig file as input
This change updates the generic webhook logic to use a rest.Config
as its input instead of a kubeconfig file.  This exposes all of the
rest.Config knobs to the caller instead of the more limited set
available through the kubeconfig format.  This is useful when this
code is being used as a library outside of core Kubernetes. For
example, a downstream consumer may want to override the webhook's
internals such as its TLS configuration.

Signed-off-by: Monis Khan <mok@vmware.com>

Kubernetes-commit: fef7d0ef1e1fbff65e8d445256036704bb9dbcbd
2021-07-23 11:15:47 -04:00
..
authentication.go add tracing to webhook requests 2021-07-08 20:13:33 -07:00
authentication_test.go Search client auth with and without port 2019-09-02 22:38:55 -04:00
certs_test.go client-go transport: assert that final CA data is valid 2021-05-03 10:11:54 -04:00
client.go switch from golang-lru to the one in k8s.io/utils 2021-07-07 13:45:07 -04:00
error.go Add a new webhook metric tracking request totals. 2021-06-22 22:32:47 +00:00
gencerts.sh webhooks,aggregation: add metrics to count certs missing SAN 2020-10-06 13:02:52 +02:00
metrics.go webhooks,aggregation: add metrics to count certs missing SAN 2020-10-06 13:02:52 +02:00
serviceresolver.go Add port to ServiceResolvers 2019-03-01 16:32:50 -08:00
serviceresolver_test.go Add port to ServiceResolvers 2019-03-01 16:32:50 -08:00
validation.go Add port to ServiceResolvers 2019-03-01 16:32:50 -08:00
webhook.go webhook: use rest.Config instead of kubeconfig file as input 2021-07-23 11:15:47 -04:00
webhook_test.go webhook: use rest.Config instead of kubeconfig file as input 2021-07-23 11:15:47 -04:00