浏览代码

Merge pull request #28025 from vdemeester/swarm-mode-templating

Add support for swarm mode templating
Victor Vieux 8 年之前
父节点
当前提交
8ffd1a370c

+ 12 - 0
daemon/cluster/executor/container/container.go

@@ -20,6 +20,7 @@ import (
 	"github.com/docker/swarmkit/agent/exec"
 	"github.com/docker/swarmkit/api"
 	"github.com/docker/swarmkit/protobuf/ptypes"
+	"github.com/docker/swarmkit/template"
 )
 
 const (
@@ -68,6 +69,17 @@ func (c *containerConfig) setTask(t *api.Task) error {
 	}
 
 	c.task = t
+
+	if t.Spec.GetContainer() != nil {
+		preparedSpec, err := template.ExpandContainerSpec(t)
+		if err != nil {
+			return err
+		}
+		c.task.Spec.Runtime = &api.TaskSpec_Container{
+			Container: preparedSpec,
+		}
+	}
+
 	return nil
 }
 

+ 23 - 8
integration-cli/docker_cli_swarm_test.go

@@ -118,6 +118,21 @@ func (s *DockerSwarmSuite) TestSwarmNodeListHostname(c *check.C) {
 	c.Assert(strings.Split(out, "\n")[0], checker.Contains, "HOSTNAME")
 }
 
+func (s *DockerSwarmSuite) TestSwarmServiceTemplatingHostname(c *check.C) {
+	d := s.AddDaemon(c, true, true)
+
+	out, err := d.Cmd("service", "create", "--name", "test", "--hostname", "{{.Service.Name}}-{{.Task.Slot}}", "busybox", "top")
+	c.Assert(err, checker.IsNil, check.Commentf(out))
+
+	// make sure task has been deployed.
+	waitAndAssert(c, defaultReconciliationTimeout, d.checkActiveContainerCount, checker.Equals, 1)
+
+	containers := d.activeContainers()
+	out, err = d.Cmd("inspect", "--type", "container", "--format", "{{.Config.Hostname}}", containers[0])
+	c.Assert(err, checker.IsNil, check.Commentf(out))
+	c.Assert(strings.Split(out, "\n")[0], checker.Equals, "test-1", check.Commentf("hostname with templating invalid"))
+}
+
 // Test case for #24270
 func (s *DockerSwarmSuite) TestSwarmServiceListFilter(c *check.C) {
 	d := s.AddDaemon(c, true, true)
@@ -343,17 +358,17 @@ func (s *DockerSwarmSuite) TestSwarmContainerAutoStart(c *check.C) {
 	c.Assert(strings.TrimSpace(out), checker.Not(checker.Equals), "")
 
 	out, err = d.Cmd("run", "-id", "--restart=always", "--net=foo", "--name=test", "busybox", "top")
-	c.Assert(err, checker.IsNil)
+	c.Assert(err, checker.IsNil, check.Commentf(out))
 	c.Assert(strings.TrimSpace(out), checker.Not(checker.Equals), "")
 
 	out, err = d.Cmd("ps", "-q")
-	c.Assert(err, checker.IsNil)
+	c.Assert(err, checker.IsNil, check.Commentf(out))
 	c.Assert(strings.TrimSpace(out), checker.Not(checker.Equals), "")
 
 	d.Restart()
 
 	out, err = d.Cmd("ps", "-q")
-	c.Assert(err, checker.IsNil)
+	c.Assert(err, checker.IsNil, check.Commentf(out))
 	c.Assert(strings.TrimSpace(out), checker.Not(checker.Equals), "")
 }
 
@@ -361,20 +376,20 @@ func (s *DockerSwarmSuite) TestSwarmContainerEndpointOptions(c *check.C) {
 	d := s.AddDaemon(c, true, true)
 
 	out, err := d.Cmd("network", "create", "--attachable", "-d", "overlay", "foo")
-	c.Assert(err, checker.IsNil)
+	c.Assert(err, checker.IsNil, check.Commentf(out))
 	c.Assert(strings.TrimSpace(out), checker.Not(checker.Equals), "")
 
 	_, err = d.Cmd("run", "-d", "--net=foo", "--name=first", "--net-alias=first-alias", "busybox", "top")
-	c.Assert(err, checker.IsNil)
+	c.Assert(err, checker.IsNil, check.Commentf(out))
 
 	_, err = d.Cmd("run", "-d", "--net=foo", "--name=second", "busybox", "top")
-	c.Assert(err, checker.IsNil)
+	c.Assert(err, checker.IsNil, check.Commentf(out))
 
 	// ping first container and its alias
 	_, err = d.Cmd("exec", "second", "ping", "-c", "1", "first")
-	c.Assert(err, check.IsNil)
+	c.Assert(err, check.IsNil, check.Commentf(out))
 	_, err = d.Cmd("exec", "second", "ping", "-c", "1", "first-alias")
-	c.Assert(err, check.IsNil)
+	c.Assert(err, check.IsNil, check.Commentf(out))
 }
 
 func (s *DockerSwarmSuite) TestSwarmContainerAttachByNetworkId(c *check.C) {

+ 1 - 1
vendor.conf

@@ -100,7 +100,7 @@ github.com/docker/containerd 8517738ba4b82aff5662c97ca4627e7e4d03b531
 github.com/tonistiigi/fifo 1405643975692217d6720f8b54aeee1bf2cd5cf4
 
 # cluster
-github.com/docker/swarmkit 29950a4e9912178cadb72abc5a445e3a857cb2b0
+github.com/docker/swarmkit 00890359d8bfba630824b66b848dbf7851149fef
 github.com/golang/mock bd3c8e81be01eef76d4b503f5e687d2d1354d2d9
 github.com/gogo/protobuf v0.3
 github.com/cloudflare/cfssl 7fb22c8cba7ecaf98e4082d22d65800cf45e042a

+ 249 - 245
vendor/github.com/docker/swarmkit/api/types.pb.go

@@ -229,6 +229,7 @@ const (
 	TaskStateShutdown  TaskState = 640
 	TaskStateFailed    TaskState = 704
 	TaskStateRejected  TaskState = 768
+	TaskStateOrphaned  TaskState = 832
 )
 
 var TaskState_name = map[int32]string{
@@ -244,6 +245,7 @@ var TaskState_name = map[int32]string{
 	640: "SHUTDOWN",
 	704: "FAILED",
 	768: "REJECTED",
+	832: "ORPHANED",
 }
 var TaskState_value = map[string]int32{
 	"NEW":       0,
@@ -258,6 +260,7 @@ var TaskState_value = map[string]int32{
 	"SHUTDOWN":  640,
 	"FAILED":    704,
 	"REJECTED":  768,
+	"ORPHANED":  832,
 }
 
 func (x TaskState) String() string {
@@ -13475,251 +13478,252 @@ var (
 func init() { proto.RegisterFile("types.proto", fileDescriptorTypes) }
 
 var fileDescriptorTypes = []byte{
-	// 3932 bytes of a gzipped FileDescriptorProto
+	// 3946 bytes of a gzipped FileDescriptorProto
 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x79, 0x4d, 0x6c, 0x1b, 0x49,
-	0x76, 0xbf, 0xf8, 0x29, 0xf2, 0x91, 0x92, 0xda, 0x65, 0xaf, 0x47, 0xe6, 0x78, 0x24, 0x4e, 0x7b,
-	0xbc, 0xe3, 0xf1, 0xce, 0x9f, 0x63, 0x6b, 0x3e, 0xe0, 0x1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xd5, 0x40, 0x64, 0xb3, 0x7a, 0xf3, 0x9b, 0x6f, 0x37, 0x96, 0x7e, 0xf6, 0xed, 0xc6,
+	0xd2, 0xcf, 0xbf, 0xdd, 0x48, 0x3c, 0x3b, 0xdf, 0x48, 0x7c, 0x73, 0xbe, 0x91, 0xf8, 0xe9, 0xf9,
+	0x46, 0xe2, 0xdf, 0xce, 0x37, 0x12, 0x07, 0x59, 0x11, 0xc2, 0x7c, 0xfc, 0xbf, 0x01, 0x00, 0x00,
+	0xff, 0xff, 0x6b, 0x1c, 0x13, 0xe7, 0x66, 0x26, 0x00, 0x00,
 }

+ 1 - 0
vendor/github.com/docker/swarmkit/api/types.proto

@@ -384,6 +384,7 @@ enum TaskState {
 	SHUTDOWN = 640 [(gogoproto.enumvalue_customname)="TaskStateShutdown"]; // orchestrator requested shutdown
 	FAILED = 704 [(gogoproto.enumvalue_customname)="TaskStateFailed"]; // task execution failed with error
 	REJECTED = 768 [(gogoproto.enumvalue_customname)="TaskStateRejected"]; // task could not be executed here.
+	ORPHANED = 832 [(gogoproto.enumvalue_customname)="TaskStateOrphaned"]; // The node on which this task is scheduled is Down for too long
 
 	// NOTE(stevvooe): The state of a task is actually a lamport clock, in that
 	// given two observations, the greater of the two can be considered

+ 23 - 1
vendor/github.com/docker/swarmkit/manager/controlapi/service.go

@@ -14,6 +14,7 @@ import (
 	"github.com/docker/swarmkit/manager/constraint"
 	"github.com/docker/swarmkit/manager/state/store"
 	"github.com/docker/swarmkit/protobuf/ptypes"
+	"github.com/docker/swarmkit/template"
 	"golang.org/x/net/context"
 	"google.golang.org/grpc"
 	"google.golang.org/grpc/codes"
@@ -168,7 +169,28 @@ func validateTask(taskSpec api.TaskSpec) error {
 		return grpc.Errorf(codes.Unimplemented, "RuntimeSpec: unimplemented runtime in service spec")
 	}
 
-	if err := validateContainerSpec(taskSpec.GetContainer()); err != nil {
+	// Building a empty/dummy Task to validate the templating and
+	// the resulting container spec as well. This is a *best effort*
+	// validation.
+	preparedSpec, err := template.ExpandContainerSpec(&api.Task{
+		Spec:      taskSpec,
+		ServiceID: "serviceid",
+		Slot:      1,
+		NodeID:    "nodeid",
+		Networks:  []*api.NetworkAttachment{},
+		Annotations: api.Annotations{
+			Name: "taskname",
+		},
+		ServiceAnnotations: api.Annotations{
+			Name: "servicename",
+		},
+		Endpoint:  &api.Endpoint{},
+		LogDriver: taskSpec.LogDriver,
+	})
+	if err != nil {
+		return grpc.Errorf(codes.InvalidArgument, err.Error())
+	}
+	if err := validateContainerSpec(preparedSpec); err != nil {
 		return err
 	}
 

+ 86 - 0
vendor/github.com/docker/swarmkit/manager/dispatcher/dispatcher.go

@@ -46,6 +46,11 @@ const (
 
 	modificationBatchLimit = 100
 	batchingWaitTime       = 100 * time.Millisecond
+
+	// defaultNodeDownPeriod specifies the default time period we
+	// wait before moving tasks assigned to down nodes to ORPHANED
+	// state.
+	defaultNodeDownPeriod = 24 * time.Hour
 )
 
 var (
@@ -118,6 +123,8 @@ type Dispatcher struct {
 	nodeUpdates     map[string]nodeUpdate // indexed by node ID
 	nodeUpdatesLock sync.Mutex
 
+	downNodes *nodeStore
+
 	processUpdatesTrigger chan struct{}
 
 	// for waiting for the next task/node batch update
@@ -130,6 +137,7 @@ type Dispatcher struct {
 func New(cluster Cluster, c *Config) *Dispatcher {
 	d := &Dispatcher{
 		nodes:                 newNodeStore(c.HeartbeatPeriod, c.HeartbeatEpsilon, c.GracePeriodMultiplier, c.RateLimitPeriod),
+		downNodes:             newNodeStore(defaultNodeDownPeriod, 0, 1, 0),
 		store:                 cluster.MemoryStore(),
 		cluster:               cluster,
 		taskUpdates:           make(map[string]*api.TaskStatus),
@@ -312,6 +320,16 @@ func (d *Dispatcher) markNodesUnknown(ctx context.Context) error {
 				}
 				// do not try to resurrect down nodes
 				if node.Status.State == api.NodeStatus_DOWN {
+					nodeCopy := node
+					expireFunc := func() {
+						if err := d.moveTasksToOrphaned(nodeCopy.ID); err != nil {
+							log.WithError(err).Error(`failed to move all tasks to "ORPHANED" state`)
+						}
+
+						d.downNodes.Delete(nodeCopy.ID)
+					}
+
+					d.downNodes.Add(nodeCopy, expireFunc)
 					return nil
 				}
 
@@ -371,6 +389,10 @@ func (d *Dispatcher) markNodeReady(nodeID string, description *api.NodeDescripti
 	numUpdates := len(d.nodeUpdates)
 	d.nodeUpdatesLock.Unlock()
 
+	// Node is marked ready. Remove the node from down nodes if it
+	// is there.
+	d.downNodes.Delete(nodeID)
+
 	if numUpdates >= maxBatchItems {
 		select {
 		case d.processUpdatesTrigger <- struct{}{}:
@@ -1135,12 +1157,76 @@ func (d *Dispatcher) Assignments(r *api.AssignmentsRequest, stream api.Dispatche
 	}
 }
 
+func (d *Dispatcher) moveTasksToOrphaned(nodeID string) error {
+	_, err := d.store.Batch(func(batch *store.Batch) error {
+		var (
+			tasks []*api.Task
+			err   error
+		)
+
+		d.store.View(func(tx store.ReadTx) {
+			tasks, err = store.FindTasks(tx, store.ByNodeID(nodeID))
+		})
+		if err != nil {
+			return err
+		}
+
+		for _, task := range tasks {
+			if task.Status.State < api.TaskStateOrphaned {
+				task.Status.State = api.TaskStateOrphaned
+			}
+
+			if err := batch.Update(func(tx store.Tx) error {
+				err := store.UpdateTask(tx, task)
+				if err != nil {
+					return err
+				}
+
+				return nil
+			}); err != nil {
+				return err
+			}
+
+		}
+
+		return nil
+	})
+
+	return err
+}
+
 // markNodeNotReady sets the node state to some state other than READY
 func (d *Dispatcher) markNodeNotReady(id string, state api.NodeStatus_State, message string) error {
 	if err := d.isRunningLocked(); err != nil {
 		return err
 	}
 
+	// Node is down. Add it to down nodes so that we can keep
+	// track of tasks assigned to the node.
+	var (
+		node *api.Node
+		err  error
+	)
+	d.store.View(func(readTx store.ReadTx) {
+		node = store.GetNode(readTx, id)
+		if node == nil {
+			err = fmt.Errorf("could not find node %s while trying to add to down nodes store", id)
+		}
+	})
+	if err != nil {
+		return err
+	}
+
+	expireFunc := func() {
+		if err := d.moveTasksToOrphaned(id); err != nil {
+			log.G(context.TODO()).WithError(err).Error(`failed to move all tasks to "ORPHANED" state`)
+		}
+
+		d.downNodes.Delete(id)
+	}
+
+	d.downNodes.Add(node, expireFunc)
+
 	status := &api.NodeStatus{
 		State:   state,
 		Message: message,

+ 41 - 9
vendor/github.com/docker/swarmkit/manager/orchestrator/taskreaper/task_reaper.go

@@ -6,8 +6,10 @@ import (
 
 	"github.com/docker/go-events"
 	"github.com/docker/swarmkit/api"
+	"github.com/docker/swarmkit/log"
 	"github.com/docker/swarmkit/manager/state"
 	"github.com/docker/swarmkit/manager/state/store"
+	"golang.org/x/net/context"
 )
 
 const (
@@ -30,6 +32,7 @@ type TaskReaper struct {
 	// taskHistory is the number of tasks to keep
 	taskHistory int64
 	dirty       map[instanceTuple]struct{}
+	orphaned    []string
 	watcher     chan events.Event
 	cancelWatch func()
 	stopChan    chan struct{}
@@ -38,7 +41,7 @@ type TaskReaper struct {
 
 // New creates a new TaskReaper.
 func New(store *store.MemoryStore) *TaskReaper {
-	watcher, cancel := state.Watch(store.WatchQueue(), state.EventCreateTask{}, state.EventUpdateCluster{})
+	watcher, cancel := state.Watch(store.WatchQueue(), state.EventCreateTask{}, state.EventUpdateTask{}, state.EventUpdateCluster{})
 
 	return &TaskReaper{
 		store:       store,
@@ -54,13 +57,36 @@ func New(store *store.MemoryStore) *TaskReaper {
 func (tr *TaskReaper) Run() {
 	defer close(tr.doneChan)
 
+	var tasks []*api.Task
 	tr.store.View(func(readTx store.ReadTx) {
+		var err error
+
 		clusters, err := store.FindClusters(readTx, store.ByName(store.DefaultClusterName))
 		if err == nil && len(clusters) == 1 {
 			tr.taskHistory = clusters[0].Spec.Orchestration.TaskHistoryRetentionLimit
 		}
+
+		tasks, err = store.FindTasks(readTx, store.ByTaskState(api.TaskStateOrphaned))
+		if err != nil {
+			log.G(context.TODO()).WithError(err).Error("failed to find Orphaned tasks in task reaper init")
+		}
 	})
 
+	if len(tasks) > 0 {
+		for _, t := range tasks {
+			// Do not reap service tasks immediately
+			if t.ServiceID != "" {
+				continue
+			}
+
+			tr.orphaned = append(tr.orphaned, t.ID)
+		}
+
+		if len(tr.orphaned) > 0 {
+			tr.tick()
+		}
+	}
+
 	timer := time.NewTimer(reaperBatchingInterval)
 
 	for {
@@ -74,15 +100,21 @@ func (tr *TaskReaper) Run() {
 					serviceID: t.ServiceID,
 					nodeID:    t.NodeID,
 				}] = struct{}{}
-				if len(tr.dirty) > maxDirty {
-					timer.Stop()
-					tr.tick()
-				} else {
-					timer.Reset(reaperBatchingInterval)
+			case state.EventUpdateTask:
+				t := v.Task
+				if t.Status.State >= api.TaskStateOrphaned && t.ServiceID == "" {
+					tr.orphaned = append(tr.orphaned, t.ID)
 				}
 			case state.EventUpdateCluster:
 				tr.taskHistory = v.Cluster.Spec.Orchestration.TaskHistoryRetentionLimit
 			}
+
+			if len(tr.dirty)+len(tr.orphaned) > maxDirty {
+				timer.Stop()
+				tr.tick()
+			} else {
+				timer.Reset(reaperBatchingInterval)
+			}
 		case <-timer.C:
 			timer.Stop()
 			tr.tick()
@@ -94,16 +126,16 @@ func (tr *TaskReaper) Run() {
 }
 
 func (tr *TaskReaper) tick() {
-	if len(tr.dirty) == 0 {
+	if len(tr.dirty) == 0 && len(tr.orphaned) == 0 {
 		return
 	}
 
 	defer func() {
 		tr.dirty = make(map[instanceTuple]struct{})
+		tr.orphaned = nil
 	}()
 
-	var deleteTasks []string
-
+	deleteTasks := tr.orphaned
 	tr.store.View(func(tx store.ReadTx) {
 		for dirty := range tr.dirty {
 			service := store.GetService(tx, dirty.serviceID)

+ 10 - 0
vendor/github.com/docker/swarmkit/manager/state/store/by.go

@@ -102,6 +102,16 @@ func ByDesiredState(state api.TaskState) By {
 	return byDesiredState(state)
 }
 
+type byTaskState api.TaskState
+
+func (b byTaskState) isBy() {
+}
+
+// ByTaskState creates an object to pass to Find to select by task state.
+func ByTaskState(state api.TaskState) By {
+	return byTaskState(state)
+}
+
 type byRole api.NodeRole
 
 func (b byRole) isBy() {

+ 7 - 0
vendor/github.com/docker/swarmkit/manager/state/store/memory.go

@@ -27,6 +27,7 @@ const (
 	indexSlot         = "slot"
 	indexCN           = "cn"
 	indexDesiredState = "desiredstate"
+	indexTaskState    = "taskstate"
 	indexRole         = "role"
 	indexMembership   = "membership"
 	indexNetwork      = "network"
@@ -614,6 +615,12 @@ func (tx readTx) findIterators(table string, by By, checkType func(By) error) ([
 			return nil, err
 		}
 		return []memdb.ResultIterator{it}, nil
+	case byTaskState:
+		it, err := tx.memDBTx.Get(table, indexTaskState, strconv.FormatInt(int64(v), 10))
+		if err != nil {
+			return nil, err
+		}
+		return []memdb.ResultIterator{it}, nil
 	case byRole:
 		it, err := tx.memDBTx.Get(table, indexRole, strconv.FormatInt(int64(v), 10))
 		if err != nil {

+ 21 - 1
vendor/github.com/docker/swarmkit/manager/state/store/tasks.go

@@ -47,6 +47,10 @@ func init() {
 					Name:    indexDesiredState,
 					Indexer: taskIndexerByDesiredState{},
 				},
+				indexTaskState: {
+					Name:    indexTaskState,
+					Indexer: taskIndexerByTaskState{},
+				},
 				indexNetwork: {
 					Name:         indexNetwork,
 					AllowMissing: true,
@@ -186,7 +190,7 @@ func GetTask(tx ReadTx, id string) *api.Task {
 func FindTasks(tx ReadTx, by By) ([]*api.Task, error) {
 	checkType := func(by By) error {
 		switch by.(type) {
-		case byName, byNamePrefix, byIDPrefix, byDesiredState, byNode, byService, bySlot, byReferencedNetworkID, byReferencedSecretID:
+		case byName, byNamePrefix, byIDPrefix, byDesiredState, byTaskState, byNode, byService, bySlot, byReferencedNetworkID, byReferencedSecretID:
 			return nil
 		default:
 			return ErrInvalidFindBy
@@ -360,3 +364,19 @@ func (ti taskIndexerBySecret) FromObject(obj interface{}) (bool, [][]byte, error
 
 	return len(secretIDs) != 0, secretIDs, nil
 }
+
+type taskIndexerByTaskState struct{}
+
+func (ts taskIndexerByTaskState) FromArgs(args ...interface{}) ([]byte, error) {
+	return fromArgs(args...)
+}
+
+func (ts taskIndexerByTaskState) FromObject(obj interface{}) (bool, []byte, error) {
+	t, ok := obj.(taskEntry)
+	if !ok {
+		panic("unexpected type passed to FromObject")
+	}
+
+	// Add the null character as a terminator
+	return true, []byte(strconv.FormatInt(int64(t.Status.State), 10) + "\x00"), nil
+}

+ 72 - 0
vendor/github.com/docker/swarmkit/template/context.go

@@ -0,0 +1,72 @@
+package template
+
+import (
+	"bytes"
+	"fmt"
+
+	"github.com/docker/swarmkit/api"
+	"github.com/docker/swarmkit/api/naming"
+)
+
+// Context defines the strict set of values that can be injected into a
+// template expression in SwarmKit data structure.
+type Context struct {
+	Service struct {
+		ID     string
+		Name   string
+		Labels map[string]string
+	}
+
+	Node struct {
+		ID string
+	}
+
+	Task struct {
+		ID   string
+		Name string
+		Slot string
+
+		// NOTE(stevvooe): Why no labels here? Tasks don't actually have labels
+		// (from a user perspective). The labels are part of the container! If
+		// one wants to use labels for templating, use service labels!
+	}
+}
+
+// NewContextFromTask returns a new template context from the data available in
+// task. The provided context can then be used to populate runtime values in a
+// ContainerSpec.
+func NewContextFromTask(t *api.Task) (ctx Context) {
+	ctx.Service.ID = t.ServiceID
+	ctx.Service.Name = t.ServiceAnnotations.Name
+	ctx.Service.Labels = t.ServiceAnnotations.Labels
+
+	ctx.Node.ID = t.NodeID
+
+	ctx.Task.ID = t.ID
+	ctx.Task.Name = naming.Task(t)
+
+	if t.Slot != 0 {
+		ctx.Task.Slot = fmt.Sprint(t.Slot)
+	} else {
+		// fall back to node id for slot when there is no slot
+		ctx.Task.Slot = t.NodeID
+	}
+
+	return
+}
+
+// Expand treats the string s as a template and populates it with values from
+// the context.
+func (ctx *Context) Expand(s string) (string, error) {
+	tmpl, err := newTemplate(s)
+	if err != nil {
+		return s, err
+	}
+
+	var buf bytes.Buffer
+	if err := tmpl.Execute(&buf, ctx); err != nil {
+		return s, err
+	}
+
+	return buf.String(), nil
+}

+ 118 - 0
vendor/github.com/docker/swarmkit/template/expand.go

@@ -0,0 +1,118 @@
+package template
+
+import (
+	"fmt"
+	"strings"
+
+	"github.com/docker/swarmkit/api"
+	"github.com/pkg/errors"
+)
+
+// ExpandContainerSpec expands templated fields in the runtime using the task
+// state. Templating is all evaluated on the agent-side, before execution.
+//
+// Note that these are projected only on runtime values, since active task
+// values are typically manipulated in the manager.
+func ExpandContainerSpec(t *api.Task) (*api.ContainerSpec, error) {
+	container := t.Spec.GetContainer()
+	if container == nil {
+		return nil, errors.Errorf("task missing ContainerSpec to expand")
+	}
+
+	container = container.Copy()
+	ctx := NewContextFromTask(t)
+
+	var err error
+	container.Env, err = expandEnv(ctx, container.Env)
+	if err != nil {
+		return container, errors.Wrap(err, "expanding env failed")
+	}
+
+	// For now, we only allow templating of string-based mount fields
+	container.Mounts, err = expandMounts(ctx, container.Mounts)
+	if err != nil {
+		return container, errors.Wrap(err, "expanding mounts failed")
+	}
+
+	container.Hostname, err = ctx.Expand(container.Hostname)
+	return container, errors.Wrap(err, "expanding hostname failed")
+}
+
+func expandMounts(ctx Context, mounts []api.Mount) ([]api.Mount, error) {
+	if len(mounts) == 0 {
+		return mounts, nil
+	}
+
+	expanded := make([]api.Mount, len(mounts))
+	for i, mount := range mounts {
+		var err error
+		mount.Source, err = ctx.Expand(mount.Source)
+		if err != nil {
+			return mounts, errors.Wrapf(err, "expanding mount source %q", mount.Source)
+		}
+
+		mount.Target, err = ctx.Expand(mount.Target)
+		if err != nil {
+			return mounts, errors.Wrapf(err, "expanding mount target %q", mount.Target)
+		}
+
+		if mount.VolumeOptions != nil {
+			mount.VolumeOptions.Labels, err = expandMap(ctx, mount.VolumeOptions.Labels)
+			if err != nil {
+				return mounts, errors.Wrap(err, "expanding volume labels")
+			}
+
+			if mount.VolumeOptions.DriverConfig != nil {
+				mount.VolumeOptions.DriverConfig.Options, err = expandMap(ctx, mount.VolumeOptions.DriverConfig.Options)
+				if err != nil {
+					return mounts, errors.Wrap(err, "expanding volume driver config")
+				}
+			}
+		}
+
+		expanded[i] = mount
+	}
+
+	return expanded, nil
+}
+
+func expandMap(ctx Context, m map[string]string) (map[string]string, error) {
+	var (
+		n   = make(map[string]string, len(m))
+		err error
+	)
+
+	for k, v := range m {
+		v, err = ctx.Expand(v)
+		if err != nil {
+			return m, errors.Wrapf(err, "expanding map entry %q=%q", k, v)
+		}
+
+		n[k] = v
+	}
+
+	return n, nil
+}
+
+func expandEnv(ctx Context, values []string) ([]string, error) {
+	var result []string
+	for _, value := range values {
+		var (
+			parts = strings.SplitN(value, "=", 2)
+			entry = parts[0]
+		)
+
+		if len(parts) > 1 {
+			expanded, err := ctx.Expand(parts[1])
+			if err != nil {
+				return values, errors.Wrapf(err, "expanding env %q", value)
+			}
+
+			entry = fmt.Sprintf("%s=%s", entry, expanded)
+		}
+
+		result = append(result, entry)
+	}
+
+	return result, nil
+}

+ 18 - 0
vendor/github.com/docker/swarmkit/template/template.go

@@ -0,0 +1,18 @@
+package template
+
+import (
+	"strings"
+	"text/template"
+)
+
+// funcMap defines functions for our template system.
+var funcMap = template.FuncMap{
+	"join": func(s ...string) string {
+		// first arg is sep, remaining args are strings to join
+		return strings.Join(s[1:], s[0])
+	},
+}
+
+func newTemplate(s string) (*template.Template, error) {
+	return template.New("expansion").Option("missingkey=error").Funcs(funcMap).Parse(s)
+}