nomad: associate alloc with eval
This commit is contained in:
parent
aadecdd805
commit
6738e9fe08
|
@ -232,10 +232,6 @@ const (
|
|||
type VersionResponse struct {
|
||||
Build string
|
||||
Versions map[string]int
|
||||
ProtocolVersion int
|
||||
APIMajorVersion int
|
||||
APIMinorVersion int
|
||||
Flags map[string]int
|
||||
QueryMeta
|
||||
}
|
||||
|
||||
|
@ -372,6 +368,9 @@ type Node struct {
|
|||
// Status of this node
|
||||
Status string
|
||||
|
||||
// StatusDescription is meant to provide more human useful information
|
||||
StatusDescription string
|
||||
|
||||
// Raft Indexes
|
||||
CreateIndex uint64
|
||||
ModifyIndex uint64
|
||||
|
@ -545,6 +544,9 @@ type Job struct {
|
|||
// Job status
|
||||
Status string
|
||||
|
||||
// StatusDescription is meant to provide more human useful information
|
||||
StatusDescription string
|
||||
|
||||
// Raft Indexes
|
||||
CreateIndex uint64
|
||||
ModifyIndex uint64
|
||||
|
@ -624,6 +626,9 @@ type Allocation struct {
|
|||
// ID of the allocation (UUID)
|
||||
ID string
|
||||
|
||||
// ID of the evaluation that generated this allocation
|
||||
EvalID string
|
||||
|
||||
// Name is a logical name of the allocation.
|
||||
Name string
|
||||
|
||||
|
@ -646,6 +651,9 @@ type Allocation struct {
|
|||
// Status of the allocation
|
||||
Status string
|
||||
|
||||
// StatusDescription is meant to provide more human useful information
|
||||
StatusDescription string
|
||||
|
||||
// Raft Indexes
|
||||
CreateIndex uint64
|
||||
ModifyIndex uint64
|
||||
|
@ -773,6 +781,9 @@ type Evaluation struct {
|
|||
// Status of the evaluation
|
||||
Status string
|
||||
|
||||
// StatusDescription is meant to provide more human useful information
|
||||
StatusDescription string
|
||||
|
||||
// Raft Indexes
|
||||
CreateIndex uint64
|
||||
ModifyIndex uint64
|
||||
|
|
|
@ -205,6 +205,7 @@ func (s *GenericScheduler) computePlacements(job *structs.Job, place []allocTupl
|
|||
// Create an allocation for this
|
||||
alloc := &structs.Allocation{
|
||||
ID: mock.GenerateUUID(),
|
||||
EvalID: s.eval.ID,
|
||||
Name: missing.Name,
|
||||
NodeID: option.Node.ID,
|
||||
JobID: job.ID,
|
||||
|
|
Loading…
Reference in New Issue