Commit Graph

13 Commits

Author SHA1 Message Date
gkGaneshR
25b6c169a2 Unit testing for SetNodeNameOrDie in package cmd/options
1. Why is this change necessary ?
fixes: kubernetes/node-problem-detector#161

2. How does this change address the issue ?
Under package cmd/options, the testing for SetNodeNameOrDie need
to decide Nodename based on environment variable "NODE_NAME" or
hostname or hostnameoverride variable.

3. How to verify this change ?
Run "go test" with admin privilege

Signed-off-by: gkGaneshR <gkganesh126@gmail.com>
2018-03-02 21:03:59 +05:30
Andy Xie
10dbfef1a8 add custom problem detector plugin 2017-11-22 10:14:09 +08:00
Ajit Kumar
5cfe97cd15 change NPD port 2017-07-20 10:36:41 -07:00
Andy Xie
0a914cae09 refactor options pkg 2017-02-23 08:23:52 +08:00
Random-Liu
6170b0c87f Add multiple log monitoring support. 2017-02-15 13:15:18 -08:00
Random-Liu
10fc831409 Change kernel specific name in code base and change syslog to filelog. 2017-02-15 13:07:01 -08:00
Random-Liu
ee2a5b1a5f Create a goroutine for the http server. 2017-02-07 19:12:47 -08:00
Andy Xie
d0e0a8c765 add options pkg 2017-02-07 18:44:21 +08:00
Andy Xie
b28c622d83 change flag to pflag 2017-02-07 10:31:19 +08:00
Random-Liu
20ffe37cea Add NPD endpoints: /debug/pprof, /healthz, /conditions. 2017-02-03 11:07:06 -08:00
Random-Liu
c15d463ad5 Finish the journald support 2017-01-19 01:59:09 -08:00
Andy Xie
7302c70143 add -hostname-override 2017-01-18 23:45:30 +08:00
Random-Liu
aedb371d06 Add --version flag. 2017-01-12 02:07:25 -08:00