diff options
author | Chen Zhiwei <zhiweik@gmail.com> | 2019-08-14 07:13:24 +0000 |
---|---|---|
committer | Chen Zhiwei <zhiweik@gmail.com> | 2019-08-14 09:22:29 -0400 |
commit | fb9e1d7d9f332e513d392c7b8ccf1093807bb1a0 (patch) | |
tree | 2404cf3100c07e22d9357f0570c42783bc7db251 /pkg | |
parent | ce64c1403df0e4ca75be50e4a835cc0889b0c8ac (diff) | |
download | podman-fb9e1d7d9f332e513d392c7b8ccf1093807bb1a0.tar.gz podman-fb9e1d7d9f332e513d392c7b8ccf1093807bb1a0.tar.bz2 podman-fb9e1d7d9f332e513d392c7b8ccf1093807bb1a0.zip |
Fix play kube command in pod yaml
Signed-off-by: Chen Zhiwei <zhiweik@gmail.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/adapter/pods.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/adapter/pods.go b/pkg/adapter/pods.go index e25238956..2743dfdc6 100644 --- a/pkg/adapter/pods.go +++ b/pkg/adapter/pods.go @@ -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 |