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.
This commit is contained in:
Shubham Minglani
2016-12-21 20:00:38 +05:30
parent 48e3ba88cd
commit 7e378cd546
174 changed files with 10380 additions and 32848 deletions
Generated
+9 -7
View File
@@ -1,5 +1,5 @@
hash: 3caf221b3b3a35894b12799f8a5047107b1d5c9237bfea1706af24ea525f97e6
updated: 2016-12-16T16:41:13.456006508+05:30
hash: a89b753597fba20c97e0ad6a0e3c840e0d2f98d6ac670f7c602c7327c35fe203
updated: 2016-12-20T19:27:36.281252123+05:30
imports:
- name: cloud.google.com/go
version: 3b1ae45394a234c385be014e9a488f2bb6eef821
@@ -210,7 +210,7 @@ imports:
- name: github.com/evanphx/json-patch
version: 465937c80b3c07a7c7ad20cc934898646a91c1de
- name: github.com/fatih/structs
version: dc3312cb1a4513a366c4c9e622ad55c32df12ed3
version: be738c8546f55b34e60125afa50ed73a9a9c460e
- name: github.com/flynn/go-shlex
version: 3f9db97f856818214da2e1057f8ad84803971cff
- name: github.com/fsouza/go-dockerclient
@@ -371,6 +371,8 @@ imports:
- pkg/quota/api
- pkg/quota/util
- pkg/route/api
- pkg/route/api/install
- pkg/route/api/v1
- pkg/sdn/api
- pkg/security/api
- pkg/template/api
@@ -396,7 +398,7 @@ imports:
- name: github.com/prometheus/procfs
version: 454a56f35412459b5e684fd5ec0f9211b94f002a
- name: github.com/Sirupsen/logrus
version: 881bee4e20a5d11a6a88a5667c6f292072ac1963
version: 4b6ea7319e214d98c938f12692336f7ca9348d6b
- name: github.com/spf13/cobra
version: 7c674d9e72017ed25f6d2b5e497a1368086b6a6f
- name: github.com/spf13/pflag
@@ -406,13 +408,13 @@ imports:
subpackages:
- codec
- name: github.com/urfave/cli
version: 0bdeddeeb0f650497d603c4ad7b20cfe685682f6
version: 71f57d300dd6a780ac1856c005c4b518cfd498ec
- name: github.com/xeipuuv/gojsonpointer
version: e0fe6f68307607d540ed8eac07a342c33fa1b54a
- name: github.com/xeipuuv/gojsonreference
version: e02fc20de94c78484cd5ffb007f8af96be030a45
- name: github.com/xeipuuv/gojsonschema
version: 59f99ebfe5f712a0055e321231fc3be94e4e00b2
version: ac452913faa25c08bb78810d3e6f88b8a39f8f25
- name: golang.org/x/net
version: e90d6d0afc4c315a0d87a568ae68577cc15149a0
subpackages:
@@ -436,7 +438,7 @@ imports:
- jws
- jwt
- name: golang.org/x/sys
version: d75a52659825e75fff6158388dddc6a5b04f9ba5
version: 833a04a10549a95dc34458c195cbad61bbb6cb4d
subpackages:
- unix
- name: google.golang.org/appengine