banflunder

package
v0.30.4 Latest Latest
Warning

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

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

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
}

DisallowFlunder is a ban flunder admission plugin

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