Commit Graph

41 Commits

Author SHA1 Message Date
Ratnadeep Debnath
a1797a8d07 In buildconfig, detect current branch and it's remote url as defaults. 2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
6f3e670af1 Refactor openshift buildconfig CLI options.
- Remove --buildconfig, -bc option. Create buildconfig if service has build info
- Rename --branch to --build-branch
- Rename --repo to --build-repo
2016-12-28 17:00:33 +05:30
Ratnadeep Debnath
fa724fe12d Allow specifying repo,branch info for buildconfig over CLI. 2016-12-28 17:00:33 +05:30
Charlie Drage
1b9228e696 Switch to spf13/cobra from urfave/cli
There's A LOT happening in this commit, so here's an outline:

First off, urfave/cli has been removed in favour of spf13/cobra. With
this, comes changes to the formatting as well as the help page for
Kompose.

Upon converting, I noticed a CLI flag was NOT appearing for OpenShift.
Specifically, --deploymentconfig. This has been added with a note
that says it is OpenShift only.

Exit codes have been fixed. If the conversion / down / up fails for
any reason, Kompose will exit with Code 1.

--verbose as well as --suppress-warnings can now be set at the
same time.

app_test.go in the cli directory has been moved to pkg/transformer
to better reflect the testing coverage.

version.go has been removed and converted to it's own CLI command in
conjuction with (most) Go software. A new CLI command has been
created. kompose version

--dab isn't a conventional way for short-form CLI paramters. This
has been shortened to -b for bundle.

CLI flags consisting of only two/three letters have been removed due to
it being unconventional for CLI. For example, --dc was removed in preference
for --deploymentconfig

--replicas has been added as an option when using kompose down or
kompose up. This has been added as previously in app.go the
replica amount was hard-coded as 1.

Differentiating names have been used for flags. For example,
persistent flags use the name Global (ex. GlobalOut). Command-specific
flags have their own names (ex. UpOpt).

Closes #239 #253
2016-12-22 08:15:51 -05:00
Shubham Minglani
365fe81987 implement storing to dir/file, add tests
When kompose convert -o artifacts is run, then if artifacts is a directory,
kompose stores all the resulting files inside it, and if it's not a directory,
it stores the artifacts in a single file.

Fixes #209
2016-12-21 18:12:43 +05:30
Charlie Drage
94754146dd Clean up the logging output for unknown provider 2016-11-16 13:04:47 -05:00
Christopher A. Baumbauer
fc673974c4 Added flag definitions for kompose #37 2016-11-09 15:12:59 -08:00
sebgoa
00331589a3 Fix license headers, This closes #223 2016-11-01 15:01:27 +01:00
Dusty Mabe
7349dc9c9f
cli: add --emptyvols to Up/Down 2016-10-28 16:05:59 -04:00
Dusty Mabe
f67fca8be1
cli: move emtpyvols to common convert options 2016-10-28 16:05:59 -04:00
Dusty Mabe
9ce3f0cf15
cli: add --emptyvols option 2016-10-28 16:05:59 -04:00
Tomas Kral
f8f737be7b
move to kubernetes-incubator
update imports to reflect move to kubernetes-incubator
2016-10-17 18:14:29 +02:00
Suraj Deshmukh
b969f7aa44 --provider global flag for kompose
Now a user can select a provider using global flag
--provider=openshift to select openshift provider
or --provider-kubernetes to select kubernetes provider
if nothing is provided kubernetes is the default provider.

Fixes #179
2016-10-06 09:37:54 +05:30
Tomas Kral
3ce0519a82
Make --dab global flag 2016-09-23 15:11:04 +02:00
Suraj Deshmukh
57c460cc50 dded flag --suppress-warnings, --verbose, --error-on-warning global flags
- `--suppress-warnings` it ignores all warnings.
- `--verbose` displays everything
- `--error-on-warning` with any warning exits displaying error.

Fixes #100
2016-09-16 10:37:43 +05:30
Tuna
0bad1674b5 make --file as global flag 2016-09-06 22:36:12 +07:00
Tuna
f2769066ca only print warning and keep deleting objects 2016-09-02 10:10:48 +07:00
Tuna
e08ab06f2c support kompose down 2016-09-02 10:10:48 +07:00
Tuna
82ae7fab78 clean code 2016-08-25 00:34:54 +07:00
Tuna
8a607c84e0 fixing typoes 2016-08-09 11:12:05 +07:00
Tuna
8a8a063703 support kompose up 2016-08-05 00:31:16 +07:00
Janet Kuo
8e5dda227f Clean up kompose help, remove support for unimplemented commands 2016-08-03 15:50:37 -07:00
Janet Kuo
4e50e89dac Remove the support for converting to Replica Sets 2016-07-28 13:02:23 -07:00
Janet Kuo
b289594c84 Add --bundle,-dab flag for specifying dab file 2016-07-25 16:00:38 -07:00
Janet Kuo
641054639a Add --replicas flag and changed --rc from string to bool 2016-07-22 13:16:29 -07:00
Tomas Kral
2626b51dee openshift: add deploymentconfig 2016-07-21 20:35:15 +02:00
ngtuna
37a154700b remove unused from-compose-v2 flag 2016-07-20 16:46:25 +07:00
ngtuna
a8add081ab initially support compose v2 format, and close #8 as well 2016-07-20 16:28:09 +07:00
ngtuna
a9184491b7 Support docker bundles format 2016-07-20 02:01:40 +07:00
ngtuna
7a41edb65e add komposeObject struct, remove factory, refactor cli/app 2016-07-19 23:07:28 +07:00
ngtuna
daa85e2027 merge master branch 2016-07-19 00:17:33 +07:00
ngtuna
d5414877b5 changed kompose2 to kompose 2016-07-17 00:48:44 +07:00
ngtuna
eb8e5be7b4 changed kompose2 to kompose 2016-07-15 16:20:40 +07:00
ngtuna
a2ae1c3990 adding replicas to --rc, it's going to be kompose convert --rc <replica>. Close #15 2016-07-14 02:10:00 +07:00
Tomas Kral
b346667912 Generate only controllers set by flag 2016-07-13 19:05:08 +02:00
ngtuna
c49eccf313 initial commit, parse dab file into objects 2016-07-13 10:51:26 +07:00
Janet Kuo
0bcec2aa23 Make deployment the default controller, create -rc for rc, and enable copying all types of controller to chart templates 2016-07-12 19:53:20 -07:00
ngtuna
f7295153f3 upgrade k8s v1.3 - fix #6, #12 2016-07-06 01:41:04 +07:00
ngtuna
bea0e4b7c3 fix issue #1: output in a single file 2016-07-04 14:39:08 +07:00
Janet Kuo
6ae79d0e70 Support printing to stdout 2016-07-01 15:21:47 -07:00
ngtuna
9bdc4cf2dd initial cli, picked up from kompose-lite 2016-06-29 00:14:42 +07:00