Dont show DB containers with .ambassador in the name
This commit is contained in:
2
app.py
2
app.py
@@ -426,7 +426,7 @@ def collect_admin_data():
|
||||
"logs": get_container_logs(name, lines=50),
|
||||
"detail": get_container_detail(name)
|
||||
})
|
||||
elif classify_infra(name) and ("postgres" in name or "mysql" in name):
|
||||
elif classify_infra(name) and ("postgres" in name or "mysql" in name) and not name.endswith(".ambassador"):
|
||||
databases.append({
|
||||
"name": name,
|
||||
"type": "postgres" if "postgres" in name else "mysql"
|
||||
|
||||
Reference in New Issue
Block a user