package util
import "k8s.io/apiserver/pkg/admission/plugin/webhook/util"
Index ¶
- func HasAdmissionReviewVersion(a string, w webhook.WebhookAccessor) bool
- func HookClientConfigForWebhook(w webhook.WebhookAccessor) webhookutil.ClientConfig
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.12
- Published
- May 7, 2020
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 6 seconds ago –
Tools for package owners.