injector

package
v0.0.0-...-73a4147 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0, MIT Imports: 15 Imported by: 0

Documentation

Overview

Package injector handles mutating webhook operations.

Index

Constants

View Source
const (
	// Name is the name of the admission webhook service. The admission
	// webhook must be exposed in the following service; this is mainly for
	// the server certificate.
	Name = "gvisor-injection-admission-webhook"
)

Variables

This section is empty.

Functions

func Admit

func Admit(writer http.ResponseWriter, req *http.Request)

Admit performs admission checks and mutations on Pods.

func CreateConfiguration

func CreateConfiguration(clientset kubeclientset.Interface, selector *metav1.LabelSelector) error

CreateConfiguration creates MutatingWebhookConfiguration and registers the webhook admission controller with the kube-apiserver. The webhook will only take effect on pods in the namespaces selected by `podNsSelector`. If `podNsSelector` is empty, the webhook will take effect on all pods.

func GetTLSConfig

func GetTLSConfig() *tls.Config

GetTLSConfig retrieves the CA cert that signed the cert used by the webhook.

Types

This section is empty.

Jump to

Keyboard shortcuts

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