Commit Graph

52 Commits

Author SHA1 Message Date
Shubham Minglani
7e378cd546 implement expose service, add tests, fix #140
Implements a kompose specific docker compose label "kompose.service.expose" which can be used to expose the specified services externally. The accepted values are of type string.
If the value is set to "true", the provider sets the endpoint automatically, and for any other value, the value is set as the hostname. If multiple ports are defined in a service, the first one is chosen to be the exposed.

Unit tests, functional tests, glide updates and docs have also been added in this commit for the related feature.
2016-12-21 20:00:38 +05:30
Suraj Deshmukh
48e3ba88cd Merge pull request #324 from rtnpro/unsupported-keys-per-provider
Unsupported keys per provider
2016-12-21 19:08:42 +05:30
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
Tomas Kral
841141ad64 Fix functional tests for unsupported keys 2016-12-20 12:21:53 +05:30
Tuna
a881f5cca0 add test for key-only env 2016-12-19 11:23:42 +01:00
Suraj Deshmukh
4dd31da6e4 Merge pull request #319 from kadel/glide
Switch from godep to glide
2016-12-16 13:40:40 +05:30
Suraj Deshmukh
6ea5f72e40 support for raw pod output
if a user specifies a docker-compose service
with restart value as "no" or "on-failure"
then normal pod will be created as against
to a controller and a pod.
2016-12-13 19:24:25 +05:30
Tomas Kral
a0ba435efb
Add check-vendor script
This checks vendor dir for nested vendors
and if vendor has been cleaned by glide-vc
2016-12-07 19:57:47 +01:00
Tomas Kral
fe679fbca6
switch from godep to glide 2016-12-07 19:57:19 +01:00
Tomas Kral
373ab36946
Report code coverage to coveralls 2016-12-07 16:44:47 +01:00
Charlie Drage
2511c7318a Add release script
This adds a release script automating the changelog, notes as well as
release (to GitHub) via the CLI / a simple script.

The caveat is the next release will have to have `v` removed from the
title in order for `changelog()` function to work correctly.

Some changes to all upcoming releases are:
 - Using `git shortlog` instead of
   https://github.com/skywinder/Github-Changelog-Generator
2016-12-06 10:38:26 -05:00
Tomas Kral
8bb89876cf
Clean up scripts/validate-*. Add vet,gofmt,lint tests.
Travis now runs `make validate` as first test.
Make validate includes all validate tests (go vet, gofmt)
2016-11-22 13:02:13 +01:00
Suraj Deshmukh
b99d5d9bbe Added volume to mariadb in etherpad fixture
Volume constraint is missing in mariadb service
in etherpad example, so added that so that it mariadb container
does not fail in environments where creating container in
/var/lib/mysql is not allowed for non-root process.
2016-11-17 13:02:49 +05:30
sebgoa
00331589a3 Fix license headers, This closes #223 2016-11-01 15:01:27 +01:00
Charlie Drage
8787006533 Modify command in initializing unit tests
This cleans up the current script we have to a simple one-liner to test
unit tests.
2016-10-31 16:32:22 -04:00
Tuna
238dc75175 update main.go path for cross build
fix #256
2016-10-31 00:14:29 +01:00
Tuna
d68bc40458 make kompose get-able 2016-10-28 01:24:08 +02:00
Christopher A. Baumbauer
1b3f71c55f Add tests converting dab files 2016-10-26 21:47:51 -07:00
Tuna
da44a5d750 Merge pull request #229 from ngtuna/experimental
remove tag experimental
2016-10-26 16:35:11 +02:00
Tomas Kral
414645d73c Merge pull request #211 from procrypt/unknown_args
remove unknown args and added tests
2016-10-26 14:37:08 +02:00
Suraj Deshmukh
b068c5cf81 Merge pull request #190 from surajssd/support-volumes-from
support for volumes_from docker-compose construct
2016-10-23 21:40:14 +05:30
Abhishek
1c3092150f remove unknown args and added tests 2016-10-21 12:08:09 +05:30
Tuna
670d8423e5 remove tag experimental 2016-10-21 01:40:34 +02:00
Tuna
07f1635918 add test 2016-10-20 22:38:16 +02:00
Suraj Deshmukh
fd09efed43 support for volumes_from docker-compose construct
Now a user can provide volumes_from to share volumes
from other service so here the PVC created for that
service will be shared by service calling volumes_from
2016-10-19 09:15:47 +05:30
Tomas Kral
1f8a0e06c9
Upgrade OpenShift and its dependencies.
OpenShift version 1.4.0-alpha.0
2016-10-18 12:04:00 +02:00
Tomas Kral
f8f737be7b
move to kubernetes-incubator
update imports to reflect move to kubernetes-incubator
2016-10-17 18:14:29 +02:00
Tuna
2d09b9567e update test properly.
include --provider=openshift to volume test case.
2016-10-06 23:49:54 +02:00
Tuna
12d6e87454 Merge pull request #186 from surajssd/create-pvc
Create PVC object for docker-compose volumes
2016-10-06 21:39:21 +02:00
Suraj Deshmukh
e879164c2e Create PVC object for docker-compose volumes
Instead of creating emptydir, create PersistentVolumeClaim
for docker-compose volumes by default

Fixes #150
2016-10-06 17:58:17 +05:30
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
04ce10ffea
Update tests - add ImageStreams 2016-09-27 10:28:23 +02:00
Tomas Kral
371af623af
Add test for ports with protocols. 2016-09-19 14:36:23 +02:00
Tuna
338520fb75 rebase master, update tests 2016-09-06 22:48:11 +07:00
Tuna
a9cafc32d5 update tests properly 2016-09-06 22:36:13 +07:00
Tomas Kral
e127ce17bd
test for entrypoint and command 2016-09-05 10:40:50 +02:00
Suraj Deshmukh
36aa6d8c3b Fix output comparison for cmd tests
Now check on true as comparison output, then PASS,
if anything else just fail on it. This avoids all the
false positives.
2016-08-17 22:09:15 +05:30
Janet Kuo
c18288a023 Add more unit tests for Transform 2016-08-16 10:43:44 -07:00
Suraj Deshmukh
3fcfb71006 Merge pull request #101 from surajssd/update-tests
Update tests output files
2016-08-12 12:03:25 +05:30
Suraj Deshmukh
b8ea2053e6 Update tests output files
With the recent changes in the output format as List,
updated tests as well so they validate on the new format of output.
2016-08-12 04:42:06 +00:00
Tomas Kral
e64f1c1215 Add script/.build to keep BUILD_FLAGS in one place 2016-08-11 16:50:16 +02:00
Tomas Kral
a15a8f36ca Fix Makefile. Print info when building binary. 2016-08-11 11:00:46 +02:00
Tomas Kral
6099428364 add test targets to Makefile 2016-08-11 11:00:07 +02:00
Tomas Kral
3dd7689364 Move binary target to binary-cross
use binary target only for building for current platform
2016-08-11 11:00:07 +02:00
Tuna
1b501619b7 close #64 2016-08-11 10:10:20 +07:00
Suraj Deshmukh
9a4e953555 Functional Testing
Shell scripts to test k8s and os conversion
which can be ran by following command in root dir
`./script/test/cmd/tests.sh`
2016-08-08 04:39:10 +00:00
Tomas Kral
8cbd1831a7 add wrapper script for 'godep restore' 2016-07-21 20:37:18 +02:00
Tomas Kral
657ccf133d add '-tag experimental' to gox build
This is required by Docker to build it with bundlefile support.
2016-07-21 20:20:43 +02:00
ngtuna
f09b640e90 support bash completion for commands, not for flags 2016-07-17 02:21:15 +07:00
ngtuna
eb8e5be7b4 changed kompose2 to kompose 2016-07-15 16:20:40 +07:00