- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ShouldReinvokeWebhook (0.29 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/reinvocationcontext.go
previouslyInvokedReinvocableWebhooks sets.String // reinvokeWebhooks holds the set of webhooks that should be reinvoked reinvokeWebhooks sets.String } func (rc *webhookReinvokeContext) ShouldReinvokeWebhook(webhook string) bool { return rc.reinvokeWebhooks.Has(webhook) } func (rc *webhookReinvokeContext) IsOutputChangedSinceLastWebhookInvocation(object runtime.Object) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 21:31:09 UTC 2019 - 2.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin_test.go
for webhook, expectReinvoke := range tt.ExpectReinvokeWebhooks { shouldReinvoke := reinvocationCtx.Value(PluginName).(*webhookReinvokeContext).ShouldReinvokeWebhook(fmt.Sprintf("test-webhooks/%s/0", webhook)) if expectReinvoke != shouldReinvoke { t.Errorf("expected reinvocationContext.ShouldReinvokeWebhook(%s)=%t, but got %t", webhook, expectReinvoke, shouldReinvoke) } } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:52 UTC 2024 - 11K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go
// skipped in the first round because of mismatching labels, // even if the labels become matching, the webhook does not // get called during reinvocation. if reinvokeCtx.IsReinvoke() && !webhookReinvokeCtx.ShouldReinvokeWebhook(invocation.Webhook.GetUID()) { continue } versionedAttr, err := v.VersionedAttribute(invocation.Kind) if err != nil { return apierrors.NewInternalError(err) } t := time.Now()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 19.6K bytes - Viewed (0)