aboutsummaryrefslogtreecommitdiffstats
path: root/src/k8splugin/api/healthcheckhandler.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/k8splugin/api/healthcheckhandler.go')
-rw-r--r--src/k8splugin/api/healthcheckhandler.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/k8splugin/api/healthcheckhandler.go b/src/k8splugin/api/healthcheckhandler.go
index 896c6df0..2b338b94 100644
--- a/src/k8splugin/api/healthcheckhandler.go
+++ b/src/k8splugin/api/healthcheckhandler.go
@@ -31,5 +31,10 @@ func healthCheckHandler(w http.ResponseWriter, r *http.Request) {
return
}
+ err = db.Etcd.HealthCheck()
+ if err != nil {
+ http.Error(w, err.Error(), http.StatusInternalServerError)
+ return
+ }
w.WriteHeader(http.StatusOK)
}