update to support new target in swarmkit

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2016-11-01 18:11:43 -04:00
parent 6bbc35a743
commit 2b0fa52c09
1 changed files with 7 additions and 2 deletions

View File

@ -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 {