Merge pull request #21 from mstg/change-temporal-kubeenv-array

Change temporal.kube_env to append
This commit is contained in:
Mustafa Gezen 2022-07-30 01:02:05 +02:00 committed by GitHub
commit c5ad1e5742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 12 deletions

View File

@ -6,7 +6,7 @@ local utils = import 'ci/utils.jsonnet';
{
name: '%s_TEMPORAL_HOSTPORT' % prefix,
value: $.hostport,
}
},
{
name: 'TEMPORAL_NAMESPACE',
value: if utils.helm_mode then '{{ .Values.temporalNamespace | default !"!" }}' else 'default',

View File

@ -81,7 +81,6 @@ bycdeploy.new({
name: 'KEYKEEPER_S3_BUCKET',
value: 'resf-peridot-prod',
},
temporal.kube_env('KEYKEEPER'),
$.dsn,
],
] + temporal.kube_env('KEYKEEPER'),
})

View File

@ -107,10 +107,6 @@ bycdeploy.new({
name: 'YUMREPOFS_HTTP_ENDPOINT_OVERRIDE',
value: 'https://yumrepofs.build.resf.org',
},
if site == 'extarches' then {
name: 'PERIDOTEPHEMERAL_TEMPORAL_HOSTPORT',
value: 'temporal.corp.build.resf.org:443',
} else temporal.kube_env('PERIDOTEPHEMERAL'),
if site == 'extarches' then {
name: 'PERIDOTEPHEMERAL_PROVISION_ONLY',
value: 'true',
@ -136,7 +132,16 @@ bycdeploy.new({
},
},
$.dsn,
],
] + if site == 'extarches' then [
{
name: 'PERIDOTEPHEMERAL_TEMPORAL_HOSTPORT',
value: 'temporal.corp.build.resf.org:443',
},
{
name: 'TEMPORAL_NAMESPACE',
value: 'default',
},
] else temporal.kube_env('PERIDOTEPHEMERAL'),
custom_job_items(metadata, extra): [
provisionWorkerRole(metadata),
kubernetes.bind_to_role_sa(provisionWorkerRole(metadata), extra.service_account_name)

View File

@ -50,7 +50,6 @@ bycdeploy.new({
name: 'PERIDOT_PRODUCTION',
value: if kubernetes.dev() then 'false' else 'true',
},
temporal.kube_env('PERIDOT'),
$.dsn,
],
] + temporal.kube_env('PERIDOT'),
})

View File

@ -68,7 +68,6 @@ bycdeploy.new({
name: 'YUMREPOFSUPDATER_S3_BUCKET',
value: 'resf-peridot-prod',
},
temporal.kube_env('YUMREPOFSUPDATER'),
$.dsn,
],
] + temporal.kube_env('YUMREPOFSUPDATER'),
})