package subjectrestriction
import "k8s.io/kubernetes/plugin/pkg/admission/certificates/subjectrestriction"
Index ¶
Constants ¶
const PluginName = "CertificateSubjectRestriction"
PluginName is a string with the name of the plugin
Functions ¶
func Register ¶
Register registers the plugin
Types ¶
type Plugin ¶
Plugin holds state for and implements the admission plugin.
func NewPlugin ¶
func NewPlugin() *Plugin
NewPlugin constructs a new instance of the CertificateSubjectRestrictions admission interface.
func (*Plugin) Validate ¶
func (p *Plugin) Validate(_ context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error
Validate ensures that if the signerName on a CSR is set to `kubernetes.io/kube-apiserver-client`, that its organization (group) attribute is not set to `system:masters`.
func (*Plugin) ValidateInitialization ¶
ValidateInitialization always returns nil.
Source Files ¶
admission.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 3 hours ago –
Tools for package owners.