Temporal namespace should be passed to peridotbuilder

This commit is contained in:
Mustafa Gezen 2022-07-18 21:15:16 +02:00
parent 361a9378aa
commit 0e58d6e9d3
Signed by untrusted user who does not match committer: mustafa
GPG Key ID: DCDF010D946438C1
2 changed files with 5 additions and 0 deletions

View File

@ -578,6 +578,10 @@ func (c *Controller) CreateK8sPodActivity(ctx context.Context, req *ProvisionWor
Name: "REAL_BUILD_ARCH",
Value: imageArch,
},
{
Name: "TEMPORAL_NAMESPACE",
Value: viper.GetString("temporal.namespace"),
},
{
Name: "KEYKEEPER_GRPC_ENDPOINT_OVERRIDE",
Value: os.Getenv("KEYKEEPER_GRPC_ENDPOINT_OVERRIDE"),

View File

@ -95,6 +95,7 @@ func NewClient(opts client.Options) (client.Client, error) {
return nil, err
}
opts.Namespace = bycNs
viper.Set("temporal.namespace", bycNs)
return client.NewClient(opts)
}