diff --git a/charts/karpenter/templates/clusterrole-core.yaml b/charts/karpenter/templates/clusterrole-core.yaml index 1ef8b9534d87..400b87a6257d 100644 --- a/charts/karpenter/templates/clusterrole-core.yaml +++ b/charts/karpenter/templates/clusterrole-core.yaml @@ -63,7 +63,6 @@ rules: - apiGroups: [""] resources: ["pods/eviction"] verbs: ["create"] - resourceNames: ["validation.webhook.karpenter.sh", "validation.webhook.config.karpenter.sh"] - apiGroups: ["apiextensions.k8s.io"] resources: ["customresourcedefinitions"] verbs: ["update"] diff --git a/pkg/webhooks/webhooks.go b/pkg/webhooks/webhooks.go index 7305cb8e2909..95b08b2e8581 100644 --- a/pkg/webhooks/webhooks.go +++ b/pkg/webhooks/webhooks.go @@ -50,7 +50,7 @@ func NewWebhooks() []knativeinjection.ControllerConstructor { func NewCRDConversionWebhook(ctx context.Context, _ configmap.Watcher) *controller.Impl { return conversion.NewConversionController(ctx, - "/conversion/karpenter.sh", + "/conversion/karpenter.k8s.aws", ConversionResource, func(ctx context.Context) context.Context { return ctx }, )