feat(chalice): fixed custom namespaces
This commit is contained in:
parent
da6d5ae011
commit
681dbf3fc1
2 changed files with 2 additions and 6 deletions
|
|
@ -10,9 +10,7 @@ from chalicelib.utils import pg_client
|
|||
def app_connection_string(name, port, path):
|
||||
namespace = config("POD_NAMESPACE", default="app")
|
||||
conn_string = config("CLUSTER_URL", default="svc.cluster.local")
|
||||
return (
|
||||
"http://" + name + "." + namespace + "." + conn_string + ":" + port + "/" + path
|
||||
)
|
||||
return f"http://{name}.{namespace}.{conn_string}:{port}/{path}"
|
||||
|
||||
|
||||
HEALTH_ENDPOINTS = {
|
||||
|
|
|
|||
|
|
@ -11,9 +11,7 @@ from chalicelib.utils import pg_client, ch_client
|
|||
def app_connection_string(name, port, path):
|
||||
namespace = config("POD_NAMESPACE", default="app")
|
||||
conn_string = config("CLUSTER_URL", default="svc.cluster.local")
|
||||
return (
|
||||
"http://" + name + "." + namespace + "." + conn_string + ":" + port + "/" + path
|
||||
)
|
||||
return f"http://{name}.{namespace}.{conn_string}:{port}/{path}"
|
||||
|
||||
|
||||
HEALTH_ENDPOINTS = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue