admission

package
v0.0.0-...-5dbe1bd Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package admission handles kubernetes admissions, it takes admission requests and returns admission reviews;

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admitter

type Admitter struct {
	Logger  *logrus.Entry
	Request *admissionv1.AdmissionRequest
}

Admitter is a container for admission business

func (Admitter) MutateServiceReview

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

MutateServiceReview takes an admission request and mutates the service within, it returns an admission review with mutations as a json patch (if any)

func (Admitter) Service

func (a Admitter) Service() (*corev1.Service, error)

Service extracts a service from an admission request

Jump to

Keyboard shortcuts

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