Documentation

Index

Constants

View Source
const PluginName = "CertificateSigning"

PluginName is a string with the name of the plugin

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
	// contains filtered or unexported fields
}

Plugin holds state for and implements the admission plugin.

func NewPlugin

func NewPlugin() *Plugin

NewPlugin creates a new CSR approval admission plugin

func (*Plugin) SetAuthorizer

func (p *Plugin) SetAuthorizer(authz authorizer.Authorizer)

SetAuthorizer sets the authorizer.

func (*Plugin) Validate

Validate verifies that the requesting user has permission to sign CertificateSigningRequests for the specified signerName.

func (*Plugin) ValidateInitialization

func (p *Plugin) ValidateInitialization() error

ValidateInitialization ensures an authorizer is set.

Source Files