Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/go_modules/golang.org/x/time-0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wdbaruni authored Sep 11, 2024
2 parents 8527104 + 3dc220f commit 570d993
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cmd/cli/serve/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ func serve(cmd *cobra.Command, cfg types.Bacalhau, fsRepo *repo.FsRepo) error {
isRequesterNode := cfg.Orchestrator.Enabled
isComputeNode := cfg.Compute.Enabled

if !(isComputeNode || isRequesterNode) {
log.Warn().Msg("neither --compute nor --orchestrator were provided, defaulting to orchestrator node.")
isRequesterNode = true
}

networkConfig, err := getNetworkConfig(cfg)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/types/default_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var Default = Bacalhau{
},
NameProvider: "puuid",
Orchestrator: Orchestrator{
Enabled: true,
Enabled: false,
Host: "0.0.0.0",
Port: 4222,
NodeManager: NodeManager{
Expand Down
2 changes: 2 additions & 0 deletions pkg/setup/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ func SetupBacalhauRepoForTesting(t testing.TB) (*repo.FsRepo, types.Bacalhau) {
t.Setenv(config.KeyAsEnvVar(types.UpdateConfigIntervalKey), "0")
cfgValues := map[string]any{
types.DataDirKey: path,
// callers of this method currently assume it creates an orchestrator node.
types.OrchestratorEnabledKey: true,
}

// the BACALHAU_NODE_IPFS_CONNECT env var is only bound if it's corresponding flags are registered.
Expand Down

0 comments on commit 570d993

Please sign in to comment.