diff --git a/charts/karpenter/templates/clusterrole-core.yaml b/charts/karpenter/templates/clusterrole-core.yaml index 5fe85325ce85..9ef0dc300d5b 100644 --- a/charts/karpenter/templates/clusterrole-core.yaml +++ b/charts/karpenter/templates/clusterrole-core.yaml @@ -70,7 +70,7 @@ rules: verbs: ["delete"] - apiGroups: ["apiextensions.k8s.io"] resources: ["customresourcedefinitions/status"] - resourceNames: ["ec2nodeclass.karpenter.k8s.aws", "nodepools.karpenter.sh", "nodeclaims.karpenter.sh"] + resourceNames: ["ec2nodeclasses.karpenter.k8s.aws", "nodepools.karpenter.sh", "nodeclaims.karpenter.sh"] verbs: ["patch"] {{- if .Values.webhook.enabled }} - apiGroups: ["apiextensions.k8s.io"] diff --git a/test/suites/integration/migration_test.go b/test/suites/integration/migration_test.go index a53097f5e6eb..9257df0da6c7 100644 --- a/test/suites/integration/migration_test.go +++ b/test/suites/integration/migration_test.go @@ -17,13 +17,14 @@ package integration_test import ( "time" - "github.com/aws/karpenter-provider-aws/pkg/apis" - v1 "github.com/aws/karpenter-provider-aws/pkg/apis/v1" - "github.com/aws/karpenter-provider-aws/pkg/test" "github.com/awslabs/operatorpkg/object" "github.com/samber/lo" apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" + "github.com/aws/karpenter-provider-aws/pkg/apis" + v1 "github.com/aws/karpenter-provider-aws/pkg/apis/v1" + "github.com/aws/karpenter-provider-aws/pkg/test" + . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega"