Documentation ¶
Overview ¶
Package podsecurityadmissionconfigurationtemplate is used for validating podsecurityadmissionconfigurationtemplate admission requests.
Index ¶
- type Validator
- func (v *Validator) Admit(req *admission.Request) (*admissionv1.AdmissionResponse, error)
- func (v *Validator) GVR() schema.GroupVersionResource
- func (v *Validator) Operations() []admissionregistrationv1.OperationType
- func (v *Validator) ValidatingWebhook(clientConfig admissionregistrationv1.WebhookClientConfig) []admissionregistrationv1.ValidatingWebhook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct { ManagementClusterCache v3.ClusterCache // contains filtered or unexported fields }
Validator validates the PodSecurityAdmissionConfigurationTemplate admission request.
func NewValidator ¶
func NewValidator(managementCache v3.ClusterCache, provisioningCache v1.ClusterCache) *Validator
NewValidator returns a validator for PodSecurityAdmissionConfigurationTemplates
func (*Validator) Admit ¶
func (v *Validator) Admit(req *admission.Request) (*admissionv1.AdmissionResponse, error)
Admit handles the webhook admission request sent to this webhook.
func (*Validator) GVR ¶
func (v *Validator) GVR() schema.GroupVersionResource
GVR returns the GroupVersionKind for this CRD.
func (*Validator) Operations ¶
func (v *Validator) Operations() []admissionregistrationv1.OperationType
Operations returns list of operations handled by this validator.
func (*Validator) ValidatingWebhook ¶
func (v *Validator) ValidatingWebhook(clientConfig admissionregistrationv1.WebhookClientConfig) []admissionregistrationv1.ValidatingWebhook
ValidatingWebhook returns the ValidatingWebhook used for this CRD.
Click to show internal directories.
Click to hide internal directories.