Skip to content

Commit

Permalink
fix: include auth in compute/orchestrator migration (#4583)
Browse files Browse the repository at this point in the history
Co-authored-by: frrist <[email protected]>
  • Loading branch information
frrist and frrist authored Oct 4, 2024
1 parent 16b7a36 commit 44b44ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/config/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func MigrateV1(in v1types.BacalhauConfig) (types.Bacalhau, error) {
VisibilityTimeout: types.Duration(in.Node.Requester.EvaluationBroker.EvalBrokerVisibilityTimeout),
MaxRetryCount: in.Node.Requester.EvaluationBroker.EvalBrokerMaxRetryCount,
},
Auth: types.OrchestratorAuth{Token: in.Node.Network.AuthSecret},
},
Compute: types.Compute{
Enabled: slices.ContainsFunc(in.Node.Type, func(s string) bool {
Expand All @@ -42,6 +43,7 @@ func MigrateV1(in v1types.BacalhauConfig) (types.Bacalhau, error) {
InfoUpdateInterval: types.Duration(in.Node.Compute.ControlPlaneSettings.InfoUpdateFrequency),
},
AllowListedLocalPaths: in.Node.AllowListedLocalPaths,
Auth: types.ComputeAuth{Token: in.Node.Network.AuthSecret},
},
Labels: in.Node.Labels,
WebUI: types.WebUI{
Expand Down

0 comments on commit 44b44ef

Please sign in to comment.