Documentation ¶
Index ¶
- type Factory
- type Webhook
- func (w *Webhook) Handle(_ context.Context, req *admissionv1.AdmissionRequest) (*admissionv1.AdmissionResponse, error)
- func (w *Webhook) Name() string
- func (w *Webhook) Patch(req *admissionv1.AdmissionRequest, oldRj, rj *executionv1alpha1.Job) *webhook.Result
- func (w *Webhook) Path() string
- func (w *Webhook) Ready() bool
- func (w *Webhook) Shutdown(ctx context.Context)
- func (w *Webhook) Start(ctx context.Context) error
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 // contains filtered or unexported fields }
func NewWebhook ¶
func NewWebhook(ctrlContext controllercontext.Context) (*Webhook, error)
func (*Webhook) Handle ¶
func (w *Webhook) Handle( _ context.Context, req *admissionv1.AdmissionRequest, ) (*admissionv1.AdmissionResponse, error)
func (*Webhook) Patch ¶
func (w *Webhook) Patch(req *admissionv1.AdmissionRequest, oldRj, rj *executionv1alpha1.Job) *webhook.Result
Patch returns the result after mutating a Job in-place.
Click to show internal directories.
Click to hide internal directories.