mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Fix comment in mutating webhook dispatcher
This commit is contained in:
parent
1ad6fd7a0f
commit
1031e07e83
@ -190,7 +190,7 @@ func (a *mutatingDispatcher) Dispatch(ctx context.Context, attr admission.Attrib
|
|||||||
admissionmetrics.Metrics.ObserveWebhook(ctx, hook.Name, time.Since(t), rejected, versionedAttr.Attributes, "admit", 200)
|
admissionmetrics.Metrics.ObserveWebhook(ctx, hook.Name, time.Since(t), rejected, versionedAttr.Attributes, "admit", 200)
|
||||||
}
|
}
|
||||||
if changed {
|
if changed {
|
||||||
// Patch had changed the object. Prepare to reinvoke all previous webhooks that are eligible for re-invocation.
|
// Patch had changed the object. Prepare to reinvoke all previous mutations that are eligible for re-invocation.
|
||||||
webhookReinvokeCtx.RequireReinvokingPreviouslyInvokedPlugins()
|
webhookReinvokeCtx.RequireReinvokingPreviouslyInvokedPlugins()
|
||||||
reinvokeCtx.SetShouldReinvoke()
|
reinvokeCtx.SetShouldReinvoke()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user