package util

import "k8s.io/apiserver/pkg/admission/plugin/webhook/util"

Index

Functions

func HasAdmissionReviewVersion

func HasAdmissionReviewVersion(a string, w webhook.WebhookAccessor) bool

HasAdmissionReviewVersion check whether a version is accepted by a given webhook.

func HookClientConfigForWebhook

func HookClientConfigForWebhook(w webhook.WebhookAccessor) webhookutil.ClientConfig

HookClientConfigForWebhook construct a webhookutil.ClientConfig using a WebhookAccessor to access v1beta1.MutatingWebhook and v1beta1.ValidatingWebhook API objects. webhookutil.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.

Source Files

client_config.go

Version
v0.15.7
Published
Dec 11, 2019
Platform
darwin/amd64
Imports
2 packages
Last checked
9 seconds ago

Tools for package owners.