From 11ec058b3b910f96f5bc6e4504c54dba0eb79599 Mon Sep 17 00:00:00 2001 From: Mikolaj Pawlikowski Date: Thu, 14 Mar 2019 11:27:49 +0000 Subject: [PATCH] Add PING_NUMBER envvar support Signed-off-by: Mikolaj Pawlikowski --- pkg/goldpinger/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/goldpinger/config.go b/pkg/goldpinger/config.go index 4015c6b..d46aaf0 100644 --- a/pkg/goldpinger/config.go +++ b/pkg/goldpinger/config.go @@ -25,7 +25,7 @@ var GoldpingerConfig = struct { RefreshInterval int `long:"refresh-interval" description:"If > 0, will create a thread and collect stats every n seconds" env:"REFRESH_INTERVAL" default:"30"` Hostname string `long:"hostname" description:"Hostname to use" env:"HOSTNAME"` PodIP string `long:"pod-ip" description:"Pod IP to use" env:"POD_IP"` - PingNumber uint `long:"ping-number" description:"Number of peers to ping. A value of 0 indicates all peers should be pinged." default:"0"` + PingNumber uint `long:"ping-number" description:"Number of peers to ping. A value of 0 indicates all peers should be pinged." default:"0" env:"PING_NUMBER"` Port int `long:"client-port-override" description:"(for testing) use this port when calling other instances" env:"CLIENT_PORT_OVERRIDE"` UseHostIP bool `long:"use-host-ip" description:"When making the calls, use host ip (defaults to pod ip)" env:"USE_HOST_IP"` LabelSelector string `long:"label-selector" description:"label selector to use to discover goldpinger pods in the cluster" env:"LABEL_SELECTOR" default:"app=goldpinger"`