Reset clusterHealth when autopilot starts

This commit is contained in:
Kyle Havlovitz 2018-01-23 12:52:17 -08:00
parent 504b55e370
commit 0e76d62846
No known key found for this signature in database
GPG Key ID: 8A5E6B173056AD6C
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ func NewAutopilot(logger *log.Logger, delegate Delegate, interval, healthInterva
func (a *Autopilot) Start() { func (a *Autopilot) Start() {
a.shutdownCh = make(chan struct{}) a.shutdownCh = make(chan struct{})
a.waitGroup = sync.WaitGroup{} a.waitGroup = sync.WaitGroup{}
a.clusterHealth = OperatorHealthReply{}
a.waitGroup.Add(2) a.waitGroup.Add(2)
go a.run() go a.run()