Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlwaysDeny ¶ added in v1.9.0
type AlwaysDeny struct{}
AlwaysDeny is an implementation of admission.Interface which always says no to an admission request. It is useful in unit tests to force an operation to be forbidden.
func NewAlwaysDeny ¶
func NewAlwaysDeny() *AlwaysDeny
NewAlwaysDeny creates an always deny admission handler
func (AlwaysDeny) Admit ¶ added in v1.9.0
func (AlwaysDeny) Admit(a admission.Attributes) (err error)
Admit makes an admission decision based on the request attributes.
Click to show internal directories.
Click to hide internal directories.