Skip to content

Commit

Permalink
Removing update op from pod-mutator webhook (kubeflow#3163)
Browse files Browse the repository at this point in the history
Signed-off-by: Rachit Chauhan <rachitchauhan43@gmail.com>
  • Loading branch information
rachitchauhan43 authored Oct 5, 2023
1 parent ece9de0 commit f8fc0fa
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ webhooks:
- v1
operations:
- CREATE
- UPDATE
resources:
- pods

Expand Down
1 change: 0 additions & 1 deletion config/webhook/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ webhooks:
- v1
operations:
- CREATE
- UPDATE
resources:
- pods

Expand Down
2 changes: 1 addition & 1 deletion pkg/webhook/admission/pod/mutator.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/webhook/admission"
)

// +kubebuilder:webhook:path=/mutate-pods,mutating=true,failurePolicy=fail,groups="",resources=pods,verbs=create;update,versions=v1,name=inferenceservice.kserve-webhook-server.pod-mutator
// +kubebuilder:webhook:path=/mutate-pods,mutating=true,failurePolicy=fail,groups="",resources=pods,verbs=create,versions=v1,name=inferenceservice.kserve-webhook-server.pod-mutator
var log = logf.Log.WithName(constants.PodMutatorWebhookName)

// Mutator is a webhook that injects incoming pods
Expand Down

0 comments on commit f8fc0fa

Please sign in to comment.