Commit f04f85df authored by Yuri Konotopov's avatar Yuri Konotopov

openshift: use ConfigMap instead of direct variables

parent 81010c92
......@@ -28,8 +28,10 @@
"name": "${NAME}"
},
"data": {
"allowed-host": "${APPLICATION_DOMAIN}",
"media-root": "/extensions-web/www/uploaded-files",
"static-root": "/extensions-web/www/static-files"
"static-root": "/extensions-web/www/static-files",
"xapian-db": "/extensions-web/data/xapian.db"
}
},
{
......@@ -377,11 +379,21 @@
},
{
"name": "EGO_ALLOWED_HOST",
"value": "${APPLICATION_DOMAIN}"
"valueFrom": {
"configMapKeyRef": {
"name": "${NAME}",
"key": "allowed-host"
}
}
},
{
"name": "EGO_XAPIAN_DB",
"value": "${EGO_XAPIAN_DB}"
"valueFrom": {
"configMapKeyRef": {
"name": "${NAME}",
"key": "xapian-db"
}
}
}
],
"volumeMounts": [
......@@ -502,11 +514,21 @@
},
{
"name": "EGO_ALLOWED_HOST",
"value": "${APPLICATION_DOMAIN}"
"valueFrom": {
"configMapKeyRef": {
"name": "${NAME}",
"key": "allowed-host"
}
}
},
{
"name": "EGO_XAPIAN_DB",
"value": "${EGO_XAPIAN_DB}"
"valueFrom": {
"configMapKeyRef": {
"name": "${NAME}",
"key": "xapian-db"
}
}
}
]
}
......@@ -582,11 +604,21 @@
},
{
"name": "EGO_ALLOWED_HOST",
"value": "${APPLICATION_DOMAIN}"
"valueFrom": {
"configMapKeyRef": {
"name": "${NAME}",
"key": "allowed-host"
}
}
},
{
"name": "EGO_XAPIAN_DB",
"value": "${EGO_XAPIAN_DB}"
"valueFrom": {
"configMapKeyRef": {
"name": "${NAME}",
"key": "xapian-db"
}
}
}
],
"volumeMounts": [
......@@ -669,12 +701,6 @@
"description": "Django secret key.",
"value": ""
},
{
"name": "EGO_XAPIAN_DB",
"displayName": "Xapian database path",
"description": "Path to Xapian database.",
"value": ""
},
{
"name": "WEBHOOK_SECRET_KEY",
"displayName": "WebHook secret key",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment