Add Annotations to Task definition

This fix is related to docker pull request:
https://github.com/docker/docker/pull/24850

and swarmkit pull request:
https://github.com/docker/swarmkit/pull/1193

Basically, this fix adds Annotations to Task definition so that
Task name could be saved. The Task name is defined as
<ServiceName>.<Slot>.<TaskID>

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang 2016-08-04 11:50:26 -07:00
Родитель 16c66e864c
Коммит 65747baa28
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -38,6 +38,7 @@ const (
type Task struct { type Task struct {
ID string ID string
Meta Meta
Annotations
Spec TaskSpec `json:",omitempty"` Spec TaskSpec `json:",omitempty"`
ServiceID string `json:",omitempty"` ServiceID string `json:",omitempty"`