Merge pull request 'add podStatus' (#27) from issue-24-liveness-page into testing
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: #27
This commit is contained in:
2023-03-23 22:59:03 +00:00

View File

@@ -71,6 +71,16 @@ def forbidden(e):
def ISEerror(e):
return render_template('errors/500.html', NODE_NAME=NODE_NAME, POD_NAME=POD_NAME), 500
# Pod Status route
@app.route('/podStatus')
def podStatus():
blankPage = ""
try:
db.engine.connect().close()
return blankPage, 200
except:
return blankPage, 500
# Index route
@app.route('/')
def index():