Documentation ¶
Index ¶
- Constants
- type Webhook
- func (w *Webhook) Handle(ctx context.Context, req admission.Request) admission.Response
- func (w *Webhook) InjectAPIReader(r client.Reader) error
- func (w *Webhook) InjectCache(c cache.Cache) error
- func (w *Webhook) InjectDecoder(d *admission.Decoder) error
- func (w *Webhook) SetupWithManager(mgr ctrl.Manager) error
- func (w *Webhook) Start(stop <-chan struct{}) error
Constants ¶
View Source
const WebhookPath = "/webhook"
WebhookPath is the path under which the webhook will be registered.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Webhook ¶
type Webhook struct {
// contains filtered or unexported fields
}
Webhook is the implementation for all the webhooks required for kupid.
func NewDefaultWebhook ¶
NewDefaultWebhook creates a Webhook instance with the default eet of processor factories registered.
func NewWebhookWithProcessorFactories ¶
NewWebhookWithProcessorFactories creates a Webhook instance with the supplied processor factories registered.
func (*Webhook) InjectAPIReader ¶ added in v0.1.2
InjectAPIReader injects a direct client.Reader into the webhook.
func (*Webhook) InjectCache ¶
InjectCache injects a cache into the webhook.
func (*Webhook) InjectDecoder ¶
InjectDecoder injects the decoder into a webhook.
func (*Webhook) SetupWithManager ¶
SetupWithManager sets up the webhook to inject applicable podschedulingpolicies and clusterpodschedulingpolicies.
Source Files ¶
- cluster_pod_scheduling_policy_processor.go
- cronjob_processor.go
- daemonset_processor.go
- deployment_processor.go
- injector.go
- job_processor.go
- pod_processor.go
- pod_scheduling_policy_configuration_processor.go
- pod_scheduling_policy_processor.go
- processor.go
- replicaset_processor.go
- replicationcontroller_processor.go
- statefulset_processor.go
- webhook.go
Click to show internal directories.
Click to hide internal directories.