util

package
v0.0.0-...-d8a8f93 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWebHookClient

func NewWebHookClient(apiEndpoint string) (string, *http.Client)

NewWebHookClient takes URLs of the form http://foo.com, or unix:///absolute/path/to/socket, and returns a base URL and http client that can be used to communicate with the endpoint over IP or unix domain socket.

func PatchMutatingWebhookConfig

func PatchMutatingWebhookConfig(client admissionregistrationv1beta1client.MutatingWebhookConfigurationInterface,
	webhookConfigName, webhookName string, caBundle []byte) error

PatchMutatingWebhookConfig patches a CA bundle into the specified webhook config.

func PatchValidatingWebhookConfig

func PatchValidatingWebhookConfig(client admissionregistrationv1beta1client.ValidatingWebhookConfigurationInterface,
	webhookConfigName string, webhookNames []string, caBundle []byte) error

PatchValidatingWebhookConfig patches a CA bundle into the specified webhook config.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL