Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Webhook ¶
type Webhook struct { Webhook webhook.Webhook WebhookName string ReviewKind metrics.ReviewKind MetricsRecorder metrics.Recorder Tracer opentracing.Tracer }
Webhook is a webhook wrapper that instruments the webhook with metrics and tracing. To the end user this webhook is transparent but internally instrumenting as a webhook wrapper we split responsibility.
func (*Webhook) Review ¶
func (w *Webhook) Review(ctx context.Context, ar *admissionv1beta1.AdmissionReview) *admissionv1beta1.AdmissionResponse
Review will review using the webhook wrapping it with instrumentation.
Click to show internal directories.
Click to hide internal directories.