Support deploy update_config (#1232)

This commit is contained in:
Hang Yan authored and GitHub committed 2020-01-05 19:30:41 +08:00
1 parent 4d864a9aab
commit e7f05588bf
17 files changed
+602 -538

No files matched your search

+4
View File
@@ -351,6 +351,10 @@ func dockerComposeToKomposeMapping(composeObject *types.Config) (kobject.Kompose
// placement:
serviceConfig.Placement = loadV3Placement(composeServiceConfig.Deploy.Placement.Constraints)
if composeServiceConfig.Deploy.UpdateConfig != nil {
serviceConfig.DeployUpdateConfig = *composeServiceConfig.Deploy.UpdateConfig
}
// TODO: Build is not yet supported, see:
// https://github.com/docker/cli/blob/master/cli/compose/types/types.go#L9
// We will have to *manually* add this / parse.