diff --git a/cmd/main.go b/cmd/main.go index 1abec4603..832582309 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -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") diff --git a/pkg/config/config.go b/pkg/config/config.go index 2710b69c9..42fd9d4ae 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -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 { diff --git a/pkg/controllers/endpoints/endpoints_lb_controller.go b/pkg/controllers/endpoints/endpoints_lb_controller.go new file mode 100644 index 000000000..e89cf9afa --- /dev/null +++ b/pkg/controllers/endpoints/endpoints_lb_controller.go @@ -0,0 +1,4 @@ +/* Copyright © 2024 Broadcom, Inc. All Rights Reserved. + SPDX-License-Identifier: Apache-2.0 */ + +package endpoints diff --git a/pkg/nsx/services/lb/l4/l4_service.go b/pkg/nsx/services/lb/l4/l4_service.go new file mode 100644 index 000000000..bf53b08d9 --- /dev/null +++ b/pkg/nsx/services/lb/l4/l4_service.go @@ -0,0 +1,4 @@ +/* Copyright © 2024 Broadcom, Inc. All Rights Reserved. + SPDX-License-Identifier: Apache-2.0 */ + +package l4 diff --git a/pkg/nsx/services/lb/l7/l7_service.go b/pkg/nsx/services/lb/l7/l7_service.go new file mode 100644 index 000000000..6166190ae --- /dev/null +++ b/pkg/nsx/services/lb/l7/l7_service.go @@ -0,0 +1,4 @@ +/* Copyright © 2024 Broadcom, Inc. All Rights Reserved. + SPDX-License-Identifier: Apache-2.0 */ + +package l7 diff --git a/pkg/nsx/services/lb/scalemanager/scale_manager.go b/pkg/nsx/services/lb/scalemanager/scale_manager.go new file mode 100644 index 000000000..003b40c74 --- /dev/null +++ b/pkg/nsx/services/lb/scalemanager/scale_manager.go @@ -0,0 +1,4 @@ +/* Copyright © 2024 Broadcom, Inc. All Rights Reserved. + SPDX-License-Identifier: Apache-2.0 */ + +package scalemanager