Use default namespace if not specified for Temporal in non-Helm mode

Signed-off-by: Mustafa Gezen <mustafa@ctrliq.com>
This commit is contained in:
Mustafa Gezen 2022-07-30 00:34:51 +02:00
parent d0460edd69
commit dfe1fb4bd3
Signed by untrusted user who does not match committer: mustafa
GPG Key ID: DCDF010D946438C1
1 changed files with 10 additions and 4 deletions

View File

@ -2,8 +2,14 @@ local utils = import 'ci/utils.jsonnet';
{
hostport: if utils.local_image then 'temporal-frontend.default.svc.cluster.local:7233' else 'workflow-temporal-frontend.workflow.svc.cluster.local:7233',
kube_env(prefix): {
name: '%s_TEMPORAL_HOSTPORT' % prefix,
value: $.hostport,
}
kube_env(prefix): [
{
name: '%s_TEMPORAL_HOSTPORT' % prefix,
value: $.hostport,
}
{
name: 'TEMPORAL_NAMESPACE',
value: if utils.helm_mode then '{{ .Values.temporalNamespace | default !"!" }}' else 'default',
},
],
}