Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
Rename webhooks
Browse files Browse the repository at this point in the history
Signed-off-by: zeroalphat <taichi-takemura@cybozu.co.jp>
  • Loading branch information
zeroalphat committed Apr 8, 2024
1 parent 69f0e99 commit f89434b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/webhook/ignore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: MutatingWebhookConfiguration
metadata:
name: mutating-webhook-configuration
webhooks:
- name: mpod.kb.io
- name: pod.cat-gate.cybozu.io
namespaceSelector:
matchExpressions:
- key: kubernetes.io/metadata.name
Expand Down
2 changes: 1 addition & 1 deletion config/webhook/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ webhooks:
namespace: system
path: /mutate--v1-pod
failurePolicy: Fail
name: mpod.kb.io
name: pod.cat-gate.cybozu.io
rules:
- apiGroups:
- ""
Expand Down
2 changes: 1 addition & 1 deletion hooks/pod_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func SetupPodWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

//+kubebuilder:webhook:path=/mutate--v1-pod,mutating=true,failurePolicy=fail,sideEffects=None,groups=core,resources=pods,verbs=create,versions=v1,name=mpod.kb.io,admissionReviewVersions=v1
//+kubebuilder:webhook:path=/mutate--v1-pod,mutating=true,failurePolicy=fail,sideEffects=None,groups=core,resources=pods,verbs=create,versions=v1,name=pod.cat-gate.cybozu.io,admissionReviewVersions=v1

type PodDefaulter struct{}

Expand Down

0 comments on commit f89434b

Please sign in to comment.