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

Commit

Permalink
Merge pull request #15 from cybozu-go/rename-webhooks
Browse files Browse the repository at this point in the history
Rename webhooks
  • Loading branch information
zeroalphat authored Apr 9, 2024
2 parents b09b87a + b77ce6b commit d4a750d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
selector:
matchLabels:
control-plane: controller-manager
replicas: 1
replicas: 2
template:
metadata:
annotations:
Expand Down
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 d4a750d

Please sign in to comment.