Skip to content

Commit

Permalink
update kubebuilder comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mikutas committed Oct 27, 2024
1 parent 0601ed3 commit 6da1dc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions config/webhook/manifests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
Expand All @@ -11,7 +10,7 @@ webhooks:
name: webhook-service
namespace: system
path: /mutate-v1-pod
failurePolicy: Fail
failurePolicy: Ignore
name: mpod.elbv2.k8s.aws
rules:
- apiGroups:
Expand Down
2 changes: 1 addition & 1 deletion webhooks/core/pod_mutator.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (m *podMutator) MutateUpdate(ctx context.Context, obj runtime.Object, oldOb
return obj, nil
}

// +kubebuilder:webhook:path=/mutate-v1-pod,mutating=true,failurePolicy=fail,groups="",resources=pods,verbs=create,versions=v1,name=mpod.elbv2.k8s.aws,sideEffects=None,webhookVersions=v1,admissionReviewVersions=v1beta1
// +kubebuilder:webhook:path=/mutate-v1-pod,mutating=true,failurePolicy=Ignore,groups="",resources=pods,verbs=create,versions=v1,name=mpod.elbv2.k8s.aws,sideEffects=None,webhookVersions=v1,admissionReviewVersions=v1beta1

func (m *podMutator) SetupWithManager(mgr ctrl.Manager) {
mgr.GetWebhookServer().Register(apiPathMutatePod, webhook.MutatingWebhookForMutator(m, mgr.GetScheme()))
Expand Down

0 comments on commit 6da1dc4

Please sign in to comment.