package deny
import "k8s.io/kubernetes/plugin/pkg/admission/deny"
Index ¶
Functions ¶
func Register ¶
Register registers a plugin
Types ¶
type AlwaysDeny ¶
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 ¶
func (AlwaysDeny) Admit(a admission.Attributes) (err error)
Admit makes an admission decision based on the request attributes.
func (AlwaysDeny) Handles ¶
func (AlwaysDeny) Handles(operation admission.Operation) bool
Handles returns true if this admission controller can handle the given operation where operation can be one of CREATE, UPDATE, DELETE, or CONNECT
func (AlwaysDeny) Validate ¶
func (AlwaysDeny) Validate(a admission.Attributes) (err error)
Validate makes an admission decision based on the request attributes. It is NOT allowed to mutate.
Source Files ¶
admission.go
- Version
- v1.9.8
- Published
- May 19, 2018
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 6 minutes ago –
Tools for package owners.