package admit
import "k8s.io/kubernetes/plugin/pkg/admission/admit"
Index ¶
Functions ¶
func Register ¶
Register registers a plugin
Types ¶
type AlwaysAdmit ¶
type AlwaysAdmit struct{}
AlwaysAdmit is an implementation of admission.Interface which always says yes to an admit request. It is useful in tests and when using kubernetes in an open manner.
func NewAlwaysAdmit ¶
func NewAlwaysAdmit() *AlwaysAdmit
NewAlwaysAdmit creates a new always admit admission handler
func (AlwaysAdmit) Admit ¶
func (AlwaysAdmit) Admit(a admission.Attributes) (err error)
Admit makes an admission decision based on the request attributes
func (AlwaysAdmit) Handles ¶
func (AlwaysAdmit) 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
Source Files ¶
admission.go
- Version
- v1.9.0-alpha.2
- Published
- Nov 1, 2017
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 26 minutes ago –
Tools for package owners.