Documentation ¶
Index ¶
- type Factory
- type Webhook
- func (w *Webhook) Handle(ctx context.Context, req *admissionv1.AdmissionRequest) (*admissionv1.AdmissionResponse, error)
- func (w *Webhook) Name() string
- func (w *Webhook) Path() string
- func (w *Webhook) Ready() bool
- func (w *Webhook) Shutdown(_ context.Context)
- func (w *Webhook) Start(ctx context.Context) error
- func (w *Webhook) Validate(req *admissionv1.AdmissionRequest, oldRjc, rjc *executionv1alpha1.JobConfig) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct{}
func NewFactory ¶
func NewFactory() *Factory
func (*Factory) New ¶
func (f *Factory) New(ctrlContext controllercontext.Context) (controllermanager.Webhook, error)
type Webhook ¶
type Webhook struct {
controllercontext.Context
}
func NewWebhook ¶
func NewWebhook(ctrlContext controllercontext.Context) (*Webhook, error)
func (*Webhook) Handle ¶
func (w *Webhook) Handle( ctx context.Context, req *admissionv1.AdmissionRequest, ) (*admissionv1.AdmissionResponse, error)
func (*Webhook) Validate ¶
func (w *Webhook) Validate(req *admissionv1.AdmissionRequest, oldRjc, rjc *executionv1alpha1.JobConfig) field.ErrorList
Validate the incoming admission request for a JobConfig and return an ErrorList of aggregated errors. nolint:lll
Click to show internal directories.
Click to hide internal directories.