Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthias
my-test-project-1
Commits
0f34bed7
Commit
0f34bed7
authored
Jun 15, 2021
by
Jonas Waeber
Browse files
Add env to start process for tfv
parent
979cd528
Changes
3
Hide whitespace changes
Inline
Side-by-side
helm-charts/templates/configmap.yml
View file @
0f34bed7
...
...
@@ -4,6 +4,7 @@ metadata:
name
:
{{
.Values.k8sGroupId
}}
-{{ .Values.k8sName }}-{{ .Values.k8sEnvironment}}-config
namespace
:
memobase
data
:
TFV_ENV
:
{{
.Values.k8sEnvironment
}}
TFV_KAFKA_SERVER_CONFIGS
:
{{
.Values.kafkaConfigs
}}
TFV_SFTP_CONFIGS
:
{{
.Values.sftpConfigs
}}
TFV_TOPIC_NAME
:
{{
.Values.tfvTopicName
}}
...
...
import_api_app/__init__.py
View file @
0f34bed7
...
...
@@ -46,6 +46,7 @@ def create_app():
app
.
config
[
'tfv-sftp-configs'
]
=
os
.
environ
[
'TFV_SFTP_CONFIGS'
]
app
.
config
[
'tfv-topic-name'
]
=
os
.
environ
[
'TFV_TOPIC_NAME'
]
app
.
config
[
'tfv-reporting-topic-name'
]
=
os
.
environ
[
'TFV_REPORTING_TOPIC_NAME'
]
app
.
config
[
'tfv-env'
]
=
os
.
environ
[
'TFV_ENV'
]
app
.
config
[
'SWAGGER'
]
=
{
'title'
:
'Memobase Import API'
,
...
...
import_api_app/resources/ImportProcessStart.py
View file @
0f34bed7
...
...
@@ -53,7 +53,9 @@ class ImportProcessStart(Resource):
'kafkaConfigs'
:
current_app
.
config
[
'tfv-kafka-configs'
],
'sftpConfigs'
:
current_app
.
config
[
'tfv-sftp-configs'
],
'topicName'
:
current_app
.
config
[
'tfv-topic-name'
],
'reportingTopicName'
:
current_app
.
config
[
'tfv-reporting-topic-name'
]}
'reportingTopicName'
:
current_app
.
config
[
'tfv-reporting-topic-name'
],
'env'
:
current_app
.
config
[
'tfv-env'
]
}
if
'xmlRecordTag'
in
job_parameters
:
body
[
'xmlRecordTag'
]
=
job_parameters
[
'xmlRecordTag'
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment