forked from LaconicNetwork/kompose
add stdin_open, tty support, add tests, fix #344
This adds supports for stdin_open: bool and tty: bool support for kubernetes and openshift providers in kompose. This maps to the template.Spec.Containers[0].Stdin and template.Spec.Containers[0].TTY in Kubernets world. Also, added tests. Fixes #344
This commit is contained in:
@@ -72,8 +72,6 @@ func checkUnsupportedKey(composeProject *project.Project) []string {
|
||||
"VolumeDriver": false,
|
||||
"Uts": false,
|
||||
"ReadOnly": false,
|
||||
"StdinOpen": false,
|
||||
"Tty": false,
|
||||
"Ulimits": false,
|
||||
"Dockerfile": false,
|
||||
"Net": false,
|
||||
@@ -320,6 +318,8 @@ func (c *Compose) LoadFile(file string) kobject.KomposeObject {
|
||||
serviceConfig.Restart = composeServiceConfig.Restart
|
||||
serviceConfig.User = composeServiceConfig.User
|
||||
serviceConfig.VolumesFrom = composeServiceConfig.VolumesFrom
|
||||
serviceConfig.Stdin = composeServiceConfig.StdinOpen
|
||||
serviceConfig.Tty = composeServiceConfig.Tty
|
||||
|
||||
komposeObject.ServiceConfigs[name] = serviceConfig
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user