diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index 9481bcd..9c06d71 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -28,7 +28,7 @@ spec: selector: matchLabels: control-plane: controller-manager - replicas: 1 + replicas: 2 template: metadata: annotations: diff --git a/config/webhook/ignore.yaml b/config/webhook/ignore.yaml index cf78900..b381cfc 100644 --- a/config/webhook/ignore.yaml +++ b/config/webhook/ignore.yaml @@ -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 diff --git a/config/webhook/manifests.yaml b/config/webhook/manifests.yaml index 8bfacef..a5cf9be 100644 --- a/config/webhook/manifests.yaml +++ b/config/webhook/manifests.yaml @@ -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: - "" diff --git a/hooks/pod_webhook.go b/hooks/pod_webhook.go index 0e52a4e..c6a8b24 100644 --- a/hooks/pod_webhook.go +++ b/hooks/pod_webhook.go @@ -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{}