mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-25 12:17:52 +00:00
Plumb context to webhook calls
This commit is contained in:
@@ -175,7 +175,7 @@ func (a *Plugin) admitPod(ctx context.Context, pod *api.Pod, attributes admissio
|
||||
review.Status = entry.(v1alpha1.ImageReviewStatus)
|
||||
} else {
|
||||
result := a.webhook.WithExponentialBackoff(ctx, func() rest.Result {
|
||||
return a.webhook.RestClient.Post().Body(review).Do()
|
||||
return a.webhook.RestClient.Post().Context(ctx).Body(review).Do()
|
||||
})
|
||||
|
||||
if err := result.Error(); err != nil {
|
||||
|
Reference in New Issue
Block a user