highlander

package module
v0.0.0-...-9cfe339 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 12 Imported by: 1

README

Highlander

A simple admission webhook that ensures only one instance of a resource can be created per namespace.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrThereCanBeOnlyOne = errors.New(
	"there can be only one instance of this object per namespace")

Functions

This section is empty.

Types

type Webhook

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

func NewFor

func NewFor(apiType client.Object) *Webhook

func (*Webhook) Handle

func (*Webhook) SetupWithManager

func (w *Webhook) SetupWithManager(mgr manager.Manager) error

func (*Webhook) ValidateCreate

func (w *Webhook) ValidateCreate() error

Jump to

Keyboard shortcuts

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