Skip to content

Commit

Permalink
Make sure to set the driver name if specified
Browse files Browse the repository at this point in the history
Signed-off-by: Sune Keller <absukl@almbrand.dk>
  • Loading branch information
sirlatrom committed Mar 28, 2019
1 parent b95df6c commit def397a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli/compose/convert/compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ func Secrets(namespace Namespace, secrets map[string]composetypes.SecretConfig)
return nil, err
}
spec := swarm.SecretSpec{Annotations: obj.Annotations, Data: obj.Data}
if secret.Driver != "" {
spec.Driver = &swarm.Driver{
Name: secret.Driver,
}
}
if secret.TemplateDriver != "" {
spec.Templating = &swarm.Driver{
Name: secret.TemplateDriver,
Expand Down

0 comments on commit def397a

Please sign in to comment.