Skip to content

Commit

Permalink
Initialize NSXLB controllers and services
Browse files Browse the repository at this point in the history
Signed-off-by: gran <gran@vmware.com>
  • Loading branch information
gran-vmv committed May 30, 2024
1 parent c55f0ad commit 34e3ae9
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ func main() {
os.Exit(1)
}

if cf.EnableNSXLBIntegration {

}

log.Info("starting manager")
if err := mgr.Start(ctrl.SetupSignalHandler()); err != nil {
log.Error(err, "failed to start manager")
Expand Down
2 changes: 2 additions & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ type DefaultConfig struct {
type CoeConfig struct {
Cluster string `ini:"cluster"`
EnableVPCNetwork bool `ini:"enable_vpc_network"`

EnableNSXLBIntegration bool `ini:"enable_nsx_lb_integration"`
}

type NsxConfig struct {
Expand Down
4 changes: 4 additions & 0 deletions pkg/controllers/endpoints/endpoints_lb_controller.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* Copyright © 2024 Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0 */

package endpoints
4 changes: 4 additions & 0 deletions pkg/nsx/services/lb/l4/l4_service.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* Copyright © 2024 Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0 */

package l4
4 changes: 4 additions & 0 deletions pkg/nsx/services/lb/l7/l7_service.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* Copyright © 2024 Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0 */

package l7
4 changes: 4 additions & 0 deletions pkg/nsx/services/lb/scalemanager/scale_manager.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* Copyright © 2024 Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0 */

package scalemanager

0 comments on commit 34e3ae9

Please sign in to comment.