Documentation ¶
Overview ¶
Package clusterroletemplatebinding is used for validating clusterroletemplatebing admission request.
Index ¶
- 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 Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator conforms to the webhook.Handler interface and is used for validating request for clusteroletemplatebindings.
func NewValidator ¶
func NewValidator(crtb *resolvers.CRTBRuleResolver, defaultResolver k8validation.AuthorizationRuleResolver, roleTemplateResolver *auth.RoleTemplateResolver) *Validator
NewValidator will create a newly allocated Validator.
func (*Validator) Admit ¶
func (v *Validator) Admit(request *admission.Request) (*admissionv1.AdmissionResponse, error)
Admit is the entrypoint for the validator. Admit will return an error if it unable to process the request. If this function is called without NewValidator(..) calls will panic.
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.