Skip to content

Commit c318e97

Browse files
committed
update kubebuilder comment
1 parent 39e5cb6 commit c318e97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/webhook/manifests.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
apiVersion: admissionregistration.k8s.io/v1
32
kind: MutatingWebhookConfiguration
43
metadata:
@@ -12,7 +11,7 @@ webhooks:
1211
name: webhook-service
1312
namespace: system
1413
path: /mutate-v1-pod
15-
failurePolicy: Fail
14+
failurePolicy: Ignore
1615
name: mpod.elbv2.k8s.aws
1716
rules:
1817
- apiGroups:

webhooks/core/pod_mutator.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package core
22

33
import (
44
"context"
5+
56
corev1 "k8s.io/api/core/v1"
67
"k8s.io/apimachinery/pkg/runtime"
78
inject "sigs.k8s.io/aws-load-balancer-controller/pkg/inject"
@@ -43,7 +44,7 @@ func (m *podMutator) MutateUpdate(ctx context.Context, obj runtime.Object, oldOb
4344
return obj, nil
4445
}
4546

46-
// +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
47+
// +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
4748

4849
func (m *podMutator) SetupWithManager(mgr ctrl.Manager) {
4950
mgr.GetWebhookServer().Register(apiPathMutatePod, webhook.MutatingWebhookForMutator(m))

0 commit comments

Comments
 (0)