X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5bc5b8c150860a22d7a66b14aedddf30e270c7b6..42bf31f017a009585eaac2fe44a83b2596b3e5c8:/lib/dispatchcloud/worker/runner.go diff --git a/lib/dispatchcloud/worker/runner.go b/lib/dispatchcloud/worker/runner.go index 4752121342..0fd99aeeef 100644 --- a/lib/dispatchcloud/worker/runner.go +++ b/lib/dispatchcloud/worker/runner.go @@ -8,6 +8,7 @@ import ( "bytes" "encoding/json" "fmt" + "net" "syscall" "time" @@ -48,6 +49,8 @@ func newRemoteRunner(uuid string, wkr *worker) *remoteRunner { "ARVADOS_API_HOST": wkr.wp.arvClient.APIHost, "ARVADOS_API_TOKEN": wkr.wp.arvClient.AuthToken, "InstanceType": instJSON.String(), + "GatewayAddress": net.JoinHostPort(wkr.instance.Address(), "0"), + "GatewayAuthSecret": wkr.wp.gatewayAuthSecret(uuid), } if wkr.wp.arvClient.Insecure { env["ARVADOS_API_HOST_INSECURE"] = "1"