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
memoriav
Memobase 2020
services
Import Process
Import API
Commits
1f8c06a1
Commit
1f8c06a1
authored
Sep 21, 2021
by
Jonas Waeber
Browse files
Add namespace env variable.
parent
85f0c35e
Pipeline
#33429
passed with stages
in 1 minute and 54 seconds
Changes
3
Pipelines
2
Show whitespace changes
Inline
Side-by-side
helm-charts/templates/configmap.yml
View file @
1f8c06a1
...
@@ -15,3 +15,4 @@ data:
...
@@ -15,3 +15,4 @@ data:
TOPIC_DRUPAL_EXPORT
:
{{
.Values.topicDrupalExport
}}
TOPIC_DRUPAL_EXPORT
:
{{
.Values.topicDrupalExport
}}
CLEAR_CACHE_URL
:
{{
.Values.clearCacheUrl
}}
CLEAR_CACHE_URL
:
{{
.Values.clearCacheUrl
}}
LOG_LEVEL
:
"
{{
.Values.logLevel
}}"
LOG_LEVEL
:
"
{{
.Values.logLevel
}}"
NAMESPACE
:
"
{{
.Values.namespace
}}"
helm-charts/values.yaml
View file @
1f8c06a1
...
@@ -14,6 +14,7 @@ k8sLimitsCpu: placeholder
...
@@ -14,6 +14,7 @@ k8sLimitsCpu: placeholder
k8sLimitsMemory
:
placeholder
k8sLimitsMemory
:
placeholder
logLevel
:
placeholder
logLevel
:
placeholder
namespace
:
memobase
drupalApiCredentials
:
placeholder
drupalApiCredentials
:
placeholder
sftpConfigs
:
placeholder
sftpConfigs
:
placeholder
...
...
import_api_app/wsgi.py
View file @
1f8c06a1
...
@@ -65,6 +65,7 @@ try:
...
@@ -65,6 +65,7 @@ try:
app
.
config
[
'tfv-topic-name'
]
=
os
.
environ
[
'TFV_TOPIC_NAME'
]
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-reporting-topic-name'
]
=
os
.
environ
[
'TFV_REPORTING_TOPIC_NAME'
]
app
.
config
[
'env'
]
=
os
.
environ
[
'ENV'
]
app
.
config
[
'env'
]
=
os
.
environ
[
'ENV'
]
app
.
config
[
'NAMESPACE'
]
=
os
.
environ
[
'NAMESPACE'
]
app
.
config
[
'SWAGGER'
]
=
{
app
.
config
[
'SWAGGER'
]
=
{
'title'
:
'Memobase Import API'
,
'title'
:
'Memobase Import API'
,
...
...
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