mirror of https://github.com/docker/cli.git
update to support new target in swarmkit
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
parent
6bbc35a743
commit
2b0fa52c09
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue