Merge pull request #172 from ngtuna/stdout

support -o - to stdout
This commit is contained in:
Tuna 2016-09-27 11:17:43 +02:00 committed by GitHub
commit b3d385a464

View File

@ -117,9 +117,14 @@ func Convert(c *cli.Context) {
createRC := c.BoolT("replicationcontroller")
createChart := c.BoolT("chart")
replicas := c.Int("replicas")
singleOutput := len(outFile) != 0 || toStdout
singleOutput := len(outFile) != 0 || outFile == "-" || toStdout
createDeploymentConfig := c.BoolT("deploymentconfig")
if outFile == "-" {
toStdout = true
outFile = ""
}
// Create Deployment by default if no controller has be set
if !createD && !createDS && !createRC && !createDeploymentConfig {
createD = true