feat(tfstated): bootstrap webui listening on a second port
This commit is contained in:
parent
99ff8441da
commit
24bca7067b
4 changed files with 78 additions and 2 deletions
12
pkg/webui/healthz.go
Normal file
12
pkg/webui/healthz.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package webui
|
||||
|
||||
import "net/http"
|
||||
|
||||
func handleHealthz() http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Cache-Control", "no-store, no-cache")
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.WriteHeader(http.StatusOK)
|
||||
_, _ = w.Write([]byte("{}"))
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue