banflunder

package
v0.0.0-...-5183251 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin

Types

type DisallowFlunder

type DisallowFlunder struct {
	*admission.Handler
	// contains filtered or unexported fields
}

func New

func New() (*DisallowFlunder, error)

New creates a new ban flunder admission plugin

func (*DisallowFlunder) Admit

Admit ensures that the object in-flight is of kind Flunder. In addition checks that the Name is not on the banned list. The list is stored in Fischers API objects.

func (*DisallowFlunder) SetInternalWardleInformerFactory

func (d *DisallowFlunder) SetInternalWardleInformerFactory(f informers.SharedInformerFactory)

SetInternalWardleInformerFactory gets Lister from SharedInformerFactory. The lister knows how to lists Fischers.

func (*DisallowFlunder) ValidateInitialization

func (d *DisallowFlunder) ValidateInitialization() error

ValidateInitialization checks whether the plugin was correctly initialized.

Jump to

Keyboard shortcuts

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