const PluginName … // Register registers a plugin func Register(plugins *admission.Plugins) { … } // NewPlugin creates a new NodeTaint admission plugin. // This plugin identifies requests from nodes func NewPlugin() *Plugin { … } type Plugin … var _ … var nodeResource … // Admit is the main function that checks node identity and adds taints as needed. func (p *Plugin) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error { … } func addNotReadyTaint(node *api.Node) { … }