peridot/ci/temporal.jsonnet
Mustafa Gezen dfe1fb4bd3
Use default namespace if not specified for Temporal in non-Helm mode
Signed-off-by: Mustafa Gezen <mustafa@ctrliq.com>
2022-07-30 00:40:57 +02:00

16 lines
460 B
Plaintext

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,
}
{
name: 'TEMPORAL_NAMESPACE',
value: if utils.helm_mode then '{{ .Values.temporalNamespace | default !"!" }}' else 'default',
},
],
}