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, oldRjc, rjc *executionv1alpha1.JobConfig) *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
}
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, oldRjc, rjc *executionv1alpha1.JobConfig) *webhook.Result
Patch returns the result after mutating a JobConfig in-place.
Click to show internal directories.
Click to hide internal directories.