Documentation ¶
Index ¶
- type ProvisioningClusterValidator
- func (p *ProvisioningClusterValidator) Admit(request *admission.Request) (*admissionv1.AdmissionResponse, error)
- func (p *ProvisioningClusterValidator) GVR() schema.GroupVersionResource
- func (p *ProvisioningClusterValidator) Operations() []admissionregistrationv1.OperationType
- func (p *ProvisioningClusterValidator) ValidatingWebhook(clientConfig admissionregistrationv1.WebhookClientConfig) *admissionregistrationv1.ValidatingWebhook
- type Validator
- func (v *Validator) Admit(request *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 ProvisioningClusterValidator ¶ added in v0.3.2
type ProvisioningClusterValidator struct {
// contains filtered or unexported fields
}
func NewProvisioningClusterValidator ¶
func NewProvisioningClusterValidator(client *clients.Clients) *ProvisioningClusterValidator
NewValidator returns a new validator for provisioning clusters
func (*ProvisioningClusterValidator) Admit ¶ added in v0.3.2
func (p *ProvisioningClusterValidator) Admit(request *admission.Request) (*admissionv1.AdmissionResponse, error)
Admit handles the webhook admission request sent to this webhook.
func (*ProvisioningClusterValidator) GVR ¶ added in v0.3.2
func (p *ProvisioningClusterValidator) GVR() schema.GroupVersionResource
GVR returns the GroupVersionKind for this CRD.
func (*ProvisioningClusterValidator) Operations ¶ added in v0.3.2
func (p *ProvisioningClusterValidator) Operations() []admissionregistrationv1.OperationType
Operations returns list of operations handled by this validator.
func (*ProvisioningClusterValidator) ValidatingWebhook ¶ added in v0.3.2
func (p *ProvisioningClusterValidator) ValidatingWebhook(clientConfig admissionregistrationv1.WebhookClientConfig) *admissionregistrationv1.ValidatingWebhook
ValidatingWebhook returns the ValidatingWebhook used for this CRD.
type Validator ¶ added in v0.3.2
type Validator struct {
// contains filtered or unexported fields
}
Validator ValidatingWebhook for management clusters.
func NewValidator ¶
func NewValidator(sar authorizationv1.SubjectAccessReviewInterface, cache v3.PodSecurityAdmissionConfigurationTemplateCache) *Validator
NewValidator returns a new validator for management clusters.
func (*Validator) Admit ¶ added in v0.3.2
func (v *Validator) Admit(request *admission.Request) (*admissionv1.AdmissionResponse, error)
Admit handles the webhook admission request sent to this webhook.
func (*Validator) GVR ¶ added in v0.3.2
func (v *Validator) GVR() schema.GroupVersionResource
GVR returns the GroupVersionKind for this CRD.
func (*Validator) Operations ¶ added in v0.3.2
func (v *Validator) Operations() []admissionregistrationv1.OperationType
Operations returns list of operations handled by this validator.
func (*Validator) ValidatingWebhook ¶ added in v0.3.2
func (v *Validator) ValidatingWebhook(clientConfig admissionregistrationv1.WebhookClientConfig) *admissionregistrationv1.ValidatingWebhook
ValidatingWebhook returns the ValidatingWebhook used for this CRD.