Skip to content

Commit

Permalink
register direct controllers for kccmanager test
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmahou committed Aug 16, 2024
1 parent 9c57062 commit 1e4f7c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion config/tests/samples/create/samples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ import (
testgcp "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/test/gcp"
testmain "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/test/main"

_ "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/controller/direct/register"
"golang.org/x/sync/semaphore"
klog "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/manager"

// Register direct controllers
_ "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/controller/direct/register"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/kccmanager/kccmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/manager"

// Register direct controllers
_ "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/controller/direct"
_ "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/controller/direct/register"
)

type Config struct {
Expand Down

0 comments on commit 1e4f7c3

Please sign in to comment.