Initial implementation

This commit is contained in:
Alex Dadgar
2018-03-23 10:56:00 -07:00
committed by Preetha Appan
parent f92d3641aa
commit 15c3abf816
14 changed files with 503 additions and 180 deletions

View File

@@ -577,7 +577,9 @@ func (r *AllocRunner) Alloc() *structs.Allocation {
// The health has been set
if r.allocHealth != nil {
if alloc.DeploymentStatus == nil {
alloc.DeploymentStatus = &structs.AllocDeploymentStatus{}
alloc.DeploymentStatus = &structs.AllocDeploymentStatus{
Timestamp: time.Now(),
}
}
alloc.DeploymentStatus.Healthy = helper.BoolToPtr(*r.allocHealth)
}