- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for SetIsReinvoke (0.15 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/reinvocation.go
if mutator, ok := r.admissionChain.(MutationInterface); ok { err := mutator.Admit(ctx, a, o) if err != nil { return err } s := a.GetReinvocationContext() if s.ShouldReinvoke() { s.SetIsReinvoke() // Calling admit a second time will reinvoke all in-tree plugins // as well as any webhook plugins that need to be reinvoked based on the // reinvocation policy. return mutator.Admit(ctx, a, o) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 20 15:11:00 UTC 2019 - 2.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/interfaces.go
type ReinvocationContext interface { // IsReinvoke returns true if the current admission check is a re-invocation. IsReinvoke() bool // SetIsReinvoke sets the current admission check as a re-invocation. SetIsReinvoke() // ShouldReinvoke returns true if any plugin has requested a re-invocation. ShouldReinvoke() bool // SetShouldReinvoke signals that a re-invocation is desired. SetShouldReinvoke()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 28 14:03:18 UTC 2021 - 8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/attributes.go
// values stores reinvoke context values per plugin. values map[string]interface{} } func (rc *reinvocationContext) IsReinvoke() bool { return rc.isReinvoke } func (rc *reinvocationContext) SetIsReinvoke() { rc.isReinvoke = true } func (rc *reinvocationContext) ShouldReinvoke() bool { return rc.reinvokeRequested } func (rc *reinvocationContext) SetShouldReinvoke() { rc.reinvokeRequested = true
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 07 17:53:14 UTC 2019 - 6.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin_test.go
} reinvocationCtx := fakeAttr.Attributes.GetReinvocationContext() reinvocationCtx.SetIsReinvoke() for webhook, expectReinvoke := range tt.ExpectReinvokeWebhooks { shouldReinvoke := reinvocationCtx.Value(PluginName).(*webhookReinvokeContext).ShouldReinvokeWebhook(fmt.Sprintf("test-webhooks/%s/0", webhook))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:52 UTC 2024 - 11K bytes - Viewed (0)