From 0e58d6e9d3f96c4b629da07f9bf3c0a6253613f0 Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Mon, 18 Jul 2022 21:15:16 +0200 Subject: [PATCH] Temporal namespace should be passed to peridotbuilder --- peridot/builder/v1/workflow/infrastructure.go | 4 ++++ temporalutils/client.go | 1 + 2 files changed, 5 insertions(+) diff --git a/peridot/builder/v1/workflow/infrastructure.go b/peridot/builder/v1/workflow/infrastructure.go index d5f6647..6f1ac38 100644 --- a/peridot/builder/v1/workflow/infrastructure.go +++ b/peridot/builder/v1/workflow/infrastructure.go @@ -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"), diff --git a/temporalutils/client.go b/temporalutils/client.go index 157d29c..ee57b06 100644 --- a/temporalutils/client.go +++ b/temporalutils/client.go @@ -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) }