admission

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package admission provides helpers for admission webhook builder and server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MutatingWebhook

type MutatingWebhook struct {
	// Name of the mutating webhook.
	Name string
	// Namespace where the mutating webhook is deployed.
	Namespace string
	// ServerName is the name of the admission webhook server.
	ServerName string
	// ServiceName is the Service for the webhook endpoints.
	ServiceName string
	// ServiceSelector is the label selector used by Service to select the pods.
	ServiceSelector map[string]string
	// Port is the port at which the webhook server runs.
	Port int32
	// Operations are the admission operation events to listen for.
	Operations []admissionregistrationv1beta1.OperationType
	// Manager is a controller manager.
	Manager manager.Manager
	// ObjectType is the type of the k8s object to mutate.
	ObjectType runtime.Object
	// Handlers are the webhook handlers.
	Handlers []admission.Handler
	// DisableConfigInstaller can be used to disable automated installation and
	// update of the mutating webhook configuration.
	DisableConfigInstaller *bool
}

MutatingWebhook is a mutating admission webhook.

func (MutatingWebhook) SetupWebhook

func (w MutatingWebhook) SetupWebhook() error

SetupWebhook setsup the webhook by building a mutating webhook, creating a server at a given port, a service, mutating webhook configuration and registering the created webhook with the created server.

Directories

Path Synopsis
Package scheduler contains mutating admission controller webhook handlers for pod scheduler.
Package scheduler contains mutating admission controller webhook handlers for pod scheduler.

Jump to

Keyboard shortcuts

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