Skip to content

Commit

Permalink
update to support new target in swarmkit
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Hazlett <[email protected]>
  • Loading branch information
ehazlett committed Nov 9, 2016
1 parent 6bbc35a commit 2b0fa52
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions command/service/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,13 @@ func parseSecrets(client client.APIClient, requestedSecrets []string) ([]*swarmt

secretRef := &swarmtypes.SecretReference{
SecretName: n,
Mode: swarmtypes.SecretReferenceFile,
Target: t,
// TODO (ehazlett): parse these from cli request
Target: swarmtypes.SecretReferenceFileTarget{
Name: t,
UID: "0",
GID: "0",
Mode: 0444,
},
}

if _, exists := secretRefs[t]; exists {
Expand Down

0 comments on commit 2b0fa52

Please sign in to comment.