make cloud build

This commit is contained in:
Pascal Fischer
2025-06-10 13:15:27 +02:00
parent 2a030a91f0
commit cd16bec1f5
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ import (
"github.com/spf13/cobra"
"github.com/netbirdio/management-cloud-refactor/integrations"
"github.com/netbirdio/management-refactor/internals/server"
"github.com/netbirdio/management-refactor/pkg/logging"
)
@@ -23,7 +24,7 @@ var mgmtCmd = &cobra.Command{
log.Debugf("Failed to init logging: %v", err)
}
srv := server.NewServer()
srv := integrations.InitCloud(server.NewServer())
go func() {
log.Info("Starting server on :8080")
+2 -2
View File
@@ -24,7 +24,7 @@ type BaseServer struct {
var log = logging.LoggerForThisPackage()
// NewServer initializes and configures a new Server instance
func NewServer() Server {
func NewServer() *BaseServer {
return &BaseServer{
// @todo shared config
container: make(map[string]any),
@@ -60,5 +60,5 @@ func (s *BaseServer) SetContainer(key string, container any) {
return
}
s.container[key] = container
log.Infof("container with key %s set successfully", key)
log.Tracef("container with key %s set successfully", key)
}