From 44b44efed9ce84043db9be7b9365e98113b2014a Mon Sep 17 00:00:00 2001 From: Forrest <6546409+frrist@users.noreply.github.com> Date: Fri, 4 Oct 2024 13:59:33 -0700 Subject: [PATCH] fix: include auth in compute/orchestrator migration (#4583) Co-authored-by: frrist --- pkg/config/migrate.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/config/migrate.go b/pkg/config/migrate.go index ae8326819f..f2c0dc7c2e 100644 --- a/pkg/config/migrate.go +++ b/pkg/config/migrate.go @@ -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 { @@ -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{