Fix play kube command in pod yaml

Signed-off-by: Chen Zhiwei <zhiweik@gmail.com>
This commit is contained in:
Chen Zhiwei
2019-08-14 07:13:24 +00:00
parent ce64c1403d
commit fb9e1d7d9f
2 changed files with 26 additions and 0 deletions

View File

@ -707,6 +707,8 @@ func kubeContainerToCreateConfig(ctx context.Context, containerYAML v1.Container
return nil, errors.Errorf("No command specified in container YAML or as CMD or ENTRYPOINT in this image for %s", containerConfig.Name)
}
containerConfig.UserCommand = containerConfig.Command
containerConfig.StopSignal = 15
// If the user does not pass in ID mappings, just set to basics