Documentation
¶
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 PacketCapture admission requests.
func NewValidator ¶
func NewValidator(client kubernetes.Interface, fileServerAuthNamespace string) *Validator
NewValidator returns a Validator for PacketCapture CRs. fileServerAuthNamespace is the Namespace where the file server authentication Secret lives (the Antrea Namespace).
func (*Validator) Validate ¶
func (v *Validator) Validate(review *admv1.AdmissionReview) *admv1.AdmissionResponse
Click to show internal directories.
Click to hide internal directories.