зеркало из https://github.com/docker/engine-api.git
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:
Родитель
16c66e864c
Коммит
65747baa28
|
@ -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"`
|
||||||
|
|
Загрузка…
Ссылка в новой задаче