Skip to content

Commit

Permalink
Add reinvocationPolicy (kyma-project#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 authored Oct 17, 2024
1 parent c1e9026 commit d578074
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ webhooks:
namespaceSelector:
matchLabels:
namespaces.warden.kyma-project.io/validate: enabled

reinvocationPolicy: IfNeeded
2 changes: 1 addition & 1 deletion internal/webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func createMutatingWebhookConfiguration(config WebhookConfig) *admissionregistra
func getFunctionMutatingWebhookCfg(config WebhookConfig) admissionregistrationv1.MutatingWebhook {
failurePolicy := admissionregistrationv1.Ignore
matchPolicy := admissionregistrationv1.Exact
reinvocationPolicy := admissionregistrationv1.NeverReinvocationPolicy
reinvocationPolicy := admissionregistrationv1.IfNeededReinvocationPolicy
scope := admissionregistrationv1.AllScopes
sideEffects := admissionregistrationv1.SideEffectClassNone

Expand Down

0 comments on commit d578074

Please sign in to comment.