Documentation ¶
Overview ¶
Package namespace holds the Admit handler for webhook validation of requests modifying namespace objects
Index ¶
- type Validator
- func (v *Validator) Admit(request *admission.Request) (*admissionv1.AdmissionResponse, error)
- func (v *Validator) GVR() schema.GroupVersionResource
- func (v *Validator) Operations() []admv1.OperationType
- func (v *Validator) ValidatingWebhook(clientConfig admv1.WebhookClientConfig) []admv1.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 validates the namespace admission request.
func NewValidator ¶
func NewValidator(sar authorizationv1.SubjectAccessReviewInterface) *Validator
NewValidator returns a new validator used for validation of namespace requests.
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 is unable to process the request.
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() []admv1.OperationType
Operations returns list of operations handled by this validator.
func (*Validator) ValidatingWebhook ¶ added in v0.3.2
func (v *Validator) ValidatingWebhook(clientConfig admv1.WebhookClientConfig) []admv1.ValidatingWebhook
ValidatingWebhook returns the ValidatingWebhook used for this CRD.
Click to show internal directories.
Click to hide internal directories.