Documentation

Index

Constants

View Source
const (
	// PluginName is the name of the plugin.
	PluginName = "TaintNodesByCondition"
)

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

    Register registers a plugin

    Types

    type Plugin

    type Plugin struct {
    	*admission.Handler
    }

      Plugin holds state for and implements the admission plugin.

      func NewPlugin

      func NewPlugin() *Plugin

        NewPlugin creates a new NodeTaint admission plugin. This plugin identifies requests from nodes

        func (*Plugin) Admit

          Admit is the main function that checks node identity and adds taints as needed.

          Source Files