mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 05:36:12 +00:00
cleanup req.Context() and ResponseWrapper
This commit is contained in:
@@ -174,7 +174,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().Context(ctx).Body(review).Do(context.TODO())
|
||||
return a.webhook.RestClient.Post().Body(review).Do(ctx)
|
||||
})
|
||||
|
||||
if err := result.Error(); err != nil {
|
||||
|
Reference in New Issue
Block a user