Commit Graph

2 Commits

Author SHA1 Message Date
Martin Gencur c1d6e0d598 Define ProfilingPort and make profiling server use it (#599)
* Define ProfilingPort and make profiling server use it

* Fix typ

* Move ProfilingPort to server.go
2019-08-28 19:18:43 -07:00
Martin Gencur 366ab85660 Profiling support (#562)
* Profiling support

* Move ProfilingPort to profiling package

* Fix golint errors

* Refactor watcher to accept variable length observers

* Cleaner happy path

* Remove profiling handlers argument

* use :8008 string as const

* Make the profiling port package private

* Make UpdateFromConfigMap member of profiling handler

* use mutex when accessing the enabled flag
* test the server as well

* Fixes

* Initialize profiling from configMap at startup

* Use httptest.ResponseRecorder to make the test more lightweight

* Fixes

* Do not initialize from configmap at startup
2019-08-22 08:17:33 -07:00