admission

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package admission handles kubernetes admissions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admitter

type Admitter struct {
	// contains filtered or unexported fields
}

Admitter admits a pod into the review process.

func New

func New(request *admissionv1.AdmissionRequest, mutations []mutate.MutationFunc) *Admitter

New builds a new Admitter.

func (Admitter) Review

func (a Admitter) Review() (*admissionv1.AdmissionReview, error)

Review filters for resources that should be mutated by this mutating webhook. Specifically, any resource who has the label `"webhook":"enabled"`, will be mutated by this webhook.

Jump to

Keyboard shortcuts

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