package approval
import "k8s.io/kubernetes/plugin/pkg/admission/certificates/approval"
Index ¶
Constants ¶
const PluginName = "CertificateApproval"
PluginName is a string with the name of the plugin
Functions ¶
func Register ¶
Register registers a plugin
Types ¶
type Plugin ¶
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 ¶
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 ¶
ValidateInitialization ensures an authorizer is set.
Source Files ¶
admission.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 5 hours ago –
Tools for package owners.