kubernetes: k8s.io/kubernetes/plugin/pkg/admission/certificates/approval Index | Files

package approval

import "k8s.io/kubernetes/plugin/pkg/admission/certificates/approval"


Package Files



const PluginName = "CertificateApproval"

PluginName is a string with the name of the plugin

func Register Uses

func Register(plugins *admission.Plugins)

Register registers a plugin

type Plugin Uses

type Plugin struct {
    // contains filtered or unexported fields

Plugin holds state for and implements the admission plugin.

func NewPlugin Uses

func NewPlugin() *Plugin

NewPlugin creates a new CSR approval admission plugin

func (*Plugin) SetAuthorizer Uses

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

SetAuthorizer sets the authorizer.

func (*Plugin) Validate Uses

func (p *Plugin) Validate(ctx context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error

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

func (*Plugin) ValidateInitialization Uses

func (p *Plugin) ValidateInitialization() error

ValidateInitialization ensures an authorizer is set.

Package approval imports 9 packages (graph) and is imported by 19 packages. Updated 2020-06-11. Refresh now. Tools for package owners.