const PluginName … // Register registers a plugin func Register(plugins *admission.Plugins) { … } type alwaysAdmit … var _ … var _ … // Admit makes an admission decision based on the request attributes func (alwaysAdmit) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) (err error) { … } // Validate makes an admission decision based on the request attributes. It is NOT allowed to mutate. func (alwaysAdmit) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) (err error) { … } // Handles returns true if this admission controller can handle the given operation // where operation can be one of CREATE, UPDATE, DELETE, or CONNECT func (alwaysAdmit) Handles(operation admission.Operation) bool { … } // NewAlwaysAdmit creates a new always admit admission handler func NewAlwaysAdmit() admission.Interface { … }