Documentation ¶
Overview ¶
Package namespace holds the Admitters and Validator for webhook validation of requests modifying namespace objects.
Index ¶
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) Admitters ¶
Admitters returns the psaAdmitter and the projectNamespaceAdmitter for namespaces.
func (*Validator) GVR ¶
func (v *Validator) GVR() schema.GroupVersionResource
GVR returns the GroupVersionKind for this CRD.
func (*Validator) Operations ¶
func (v *Validator) Operations() []admissionv1.OperationType
Operations returns list of operations handled by this validator.
func (*Validator) ValidatingWebhook ¶
func (v *Validator) ValidatingWebhook(clientConfig admissionv1.WebhookClientConfig) []admissionv1.ValidatingWebhook
ValidatingWebhook returns the ValidatingWebhook used for this CRD.
Click to show internal directories.
Click to hide internal directories.