Skip to content

Commit 6da1dc4

Browse files
committed
update kubebuilder comment
1 parent 0601ed3 commit 6da1dc4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-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:
@@ -11,7 +10,7 @@ webhooks:
1110
name: webhook-service
1211
namespace: system
1312
path: /mutate-v1-pod
14-
failurePolicy: Fail
13+
failurePolicy: Ignore
1514
name: mpod.elbv2.k8s.aws
1615
rules:
1716
- apiGroups:

webhooks/core/pod_mutator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func (m *podMutator) MutateUpdate(ctx context.Context, obj runtime.Object, oldOb
4444
return obj, nil
4545
}
4646

47-
// +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
4848

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

0 commit comments

Comments
 (0)