Skip to content

Commit

Permalink
Merge pull request #1743 from loft-sh/thomaskosiewski/eng-3625-move-p…
Browse files Browse the repository at this point in the history
…latform-access-controller-to-leader-only
  • Loading branch information
ThomasK33 authored May 6, 2024
2 parents 95c686a + 92fd47f commit a0a6ff0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/pro/controllers.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package pro

import "github.com/loft-sh/vcluster/pkg/config"

var RegisterProControllers = func(*config.ControllerContext) error {
return nil
}
5 changes: 5 additions & 0 deletions pkg/setup/controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ func StartControllers(controllerContext *config.ControllerContext) error {
}
}

// register pro controllers
if err := pro.RegisterProControllers(controllerContext); err != nil {
return fmt.Errorf("register pro controllers: %w", err)
}

// write the kube config to secret
go func() {
wait.Until(func() {
Expand Down

0 comments on commit a0a6ff0

Please sign in to comment.