Skip to content

Commit

Permalink
move controllers back to core
Browse files Browse the repository at this point in the history
  • Loading branch information
rschalo committed Sep 30, 2024
1 parent 054d066 commit 4e2dc94
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/controllers/controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ import (
"github.com/awslabs/operatorpkg/controller"
"github.com/awslabs/operatorpkg/status"
"sigs.k8s.io/controller-runtime/pkg/manager"
karpv1 "sigs.k8s.io/karpenter/pkg/apis/v1"
"sigs.k8s.io/karpenter/pkg/cloudprovider"
migrationcrd "sigs.k8s.io/karpenter/pkg/controllers/migration/crd"
migration "sigs.k8s.io/karpenter/pkg/controllers/migration/resource"

v1 "github.com/aws/karpenter-provider-aws/pkg/apis/v1"
Expand Down Expand Up @@ -73,10 +71,7 @@ func NewControllers(ctx context.Context, mgr manager.Manager, sess *session.Sess
status.NewController[*v1.EC2NodeClass](kubeClient, mgr.GetEventRecorderFor("karpenter")),
}
if !karpoptions.FromContext(ctx).DisableWebhook {
controllers = append(controllers, migration.NewController[*karpv1.NodeClaim](kubeClient))
controllers = append(controllers, migration.NewController[*karpv1.NodePool](kubeClient))
controllers = append(controllers, migration.NewController[*v1.EC2NodeClass](kubeClient))
controllers = append(controllers, migrationcrd.NewController(kubeClient, cloudProvider))
}
if options.FromContext(ctx).InterruptionQueue != "" {
sqsapi := servicesqs.New(sess)
Expand Down

0 comments on commit 4e2dc94

Please sign in to comment.