Create Kubernetes Probes for API Server[VOL-1731]
Change-Id: Ie289ffce77af284f2b8f62603f8570d80a598e50
diff --git a/internal/pkg/afrouter/config.go b/internal/pkg/afrouter/config.go
index 8fdfd41..3a61e63 100644
--- a/internal/pkg/afrouter/config.go
+++ b/internal/pkg/afrouter/config.go
@@ -44,11 +44,8 @@
err := cmdParse.Parse(os.Args[1:])
if err != nil {
- //return err
return nil, errors.New("Error parsing the command line")
}
- //if(!cmdParse.Parsed()) {
- //}
if val, have := os.LookupEnv("HOSTNAME"); have {
config.InstanceID = val
@@ -179,8 +176,10 @@
// Api configuration
type ApiConfig struct {
- Addr string `json:"address"`
- Port uint `json:"port"`
+ Addr string `json:"address"`
+ Port uint `json:"port"`
+ ProbeHost string `json:"probeHost"`
+ ProbePort int `json:"probePort"`
}
func (conf *Configuration) LoadConfig() error {