Commit Graph

422 Commits

Author SHA1 Message Date
João Vitor Paes de Barros do Carmo
30736a3973 Add support for file based secret (#1159)
* Support file based secret
* Fix issue about read-only volume path and add support to absolute path at long-syntax
2019-12-01 12:05:31 +08:00
Mudit Verma
ac2b852955 Network Key Translation Feature and test cases (#1195) 2019-12-01 10:19:23 +08:00
Chander G
5857252c3d Merge top level non-service keys (#1187)
* merge top level non-service keys

docker-compose default behaviour is to merge these top level keys such
as `networks`
2019-11-28 14:18:49 +08:00
sivanzcw
d03a6a9474 fix golint error about comment on exported variable (#1178) 2019-11-14 11:38:48 +08:00
Kubernetes Prow Robot
ab111b5d88
Merge pull request #1147 from hangyan/push-image-flag
Add flag to turn off push image when kompose up
2019-10-31 06:31:37 -07:00
Charlie Drage
d0526d1d75 Fix tests (#1175)
For some reason, tests have been coming back as always positive (despite
some tests which are failing...)

This PR addresses it
2019-10-25 17:33:11 +08:00
Charlie Drage
f63a961ca7
1.19.0 Release (#1174) 2019-10-16 13:39:36 -04:00
Alan Justino da Silva
30655b4dd6 Copy the service labels also to Deployment Pod spec annotations (#1166)
* Copy the service labels also to Deployment Pod spec annotations

This allows kube2iam to work

* Remove test file forgotten from version 1.0.0

* Update test fixtures to have Deployment.spec.t.m.annotations

* Fix name conversion "test_server" -> "test-server"

It looks unrelated to my changes, but still changing.

* Fixing some more output fixtures
2019-09-02 10:06:28 +08:00
Michael Royal
7b6c89b3de Snap (#1153)
Includes  snapcraft.yaml to build [snap](https://snapcraft.io/).

* Updated snap
2019-07-08 23:48:55 +08:00
Hang Yan
302e918093 Add flag to turn off push image when kompose up 2019-06-25 13:38:00 +08:00
Hang Yan
e74c12e452 Fix container_name set error 2019-06-19 23:31:03 +08:00
Hang Yan
fb7a92ca5e Fix placement parser panic (#1121) 2019-04-04 15:31:06 -04:00
Hang Yan
06468b2f63 Update dep for compose 3.5+ (#1120)
* Update vendor packages

* Support compose 3.5+ versions
2019-03-26 11:44:26 -04:00
CodeLingo Bot
3ad90f5e83 Fix function comments based on best practices from Effective Go
Signed-off-by: CodeLingo Bot <bot@codelingo.io>
2019-03-07 02:35:39 +00:00
Charlie Drage
06a2e56115
1.18.0 Release (#1108) 2019-03-01 15:30:00 -05:00
Kamil Kieliszczyk
66ac4aff4f Add kompose.image-pull-secret and kompose.image-pull-policy (#1091)
* Add kompose.image-pull-secret

* Add kompose.image-pull-secret tests

* Add kompose.image-pull-policy

* Add kompose.image-pull-policy tests

* ignore .coverprofile

* Fix typo
2019-02-07 09:50:53 -05:00
huikaihoo
40c1b8cf87 Support multiple hostnames on expose label in service for Kubernetes (#1092)
* Support multiple hostnames on label (kompose.service.expose) separated by semicolon (;)

* Multiple hostnames on expose label separated by comma; Ignore leading / trailing spaces and repeated commas; Updated test cases and documents.
2019-01-31 09:34:04 -05:00
huikaihoo
d48ae64325 Add label support to named volumes in docker compose v3 to Kubernetes (#1083)
* Support read specific label (kompose.volume.size) from named volume and apply to kubernetes supported volume size

* Fix the PVC size in log message when deploy Kubernetes

* Skip creation of PersistentVolumeClaim if it is already created in the same kubernetes deploy

* Add selector to PersistentVolumeClaim only when specific label (kompose.volume.selector) is used in named volume

* Add test case to named-volume for the new labels
2018-11-29 12:07:17 -05:00
gaozhenhai
ae44008908 Fix log output specific warning info (#1084)
Signed-off-by: gaozhenhai <gaozh1988@live.com>
2018-11-29 12:06:47 -05:00
Suraj Deshmukh
294c28b10c
Merge pull request #1079 from xichengliudui/fix18111502
delete excess code
2018-11-20 07:25:31 +05:30
SataQiu
12171cf54f fix typo: generting -> generating 2018-11-15 16:14:50 +08:00
xichengliudui
c2fe9e514f delete excess code 2018-11-13 22:35:10 -05:00
Charlie Drage
a74acad03a
1.17.0 Release (#1075) 2018-11-05 10:34:31 -05:00
Hang Yan
b8aada8f33
Merge pull request #1061 from hangyan/fix/stdin
Support read data from stdin
2018-10-02 10:33:47 +08:00
Roberto C. Morano
424f1a9a2c Propagate dots into valid service names (#1063)
* normalize '.' (dot) to '-' (dash) in service names

* added warning about the dot character replacements in service names

* fix gofmt compliance

* also normalize container names (need lowercase)

* splitted normalization for volumes and service names into different functions (it conflicted with './' volumes replacement)

* changed volume normalization to use the new own normalization function

* changed container normalization to use its new own normalization function

* updated as per discussed in PR #1063 review
2018-09-28 20:20:01 +08:00
Robert Crossfield
a788ab7a78
Use OS provided temporary directory
Fix for #966
2018-09-07 10:56:36 +10:00
Hang Yan
a012fba1c2 Support read data from stdin 2018-08-09 22:46:41 +08:00
Xianlu Bird
0252213efb Add support for Config, endpoint_mode and 3.3 support (#994)
* Add support for Config

* Add deployment endpoint_mode support

* Add docker compose 3.3 support

* Add compose v3.3 support for openshift
2018-08-01 15:09:00 -04:00
Charlie Drage
0c01309fe8
1.16.0 Release (#1055) 2018-07-24 12:54:29 -04:00
Hang Yan
c0360e066b
Merge pull request #1020 from hangyan/fix/env-file-env
Fix environment with env_file bug
2018-07-10 13:58:59 +08:00
Hang Yan
3b04a9178a Fix environment with env_file bug 2018-07-10 13:15:36 +08:00
Hang Yan
379b654fc3
Merge pull request #1041 from jvitor83/labels-role
Support node.labels at placement
2018-07-05 11:38:11 +08:00
João Vitor Paes de Barros do Carmo
e9dab2781a Unit Test added to Placement Constraints Custom Labels 2018-07-04 17:35:56 -04:00
Charlie Drage
e3cd4d459e
1.15.0 Release (#1044) 2018-06-28 12:05:25 -04:00
João Vitor Paes de Barros do Carmo
e2ed3a95b7 support node.labels at placement 2018-06-20 18:26:44 -04:00
Hang Yan
5a374742cf
Merge pull request #871 from surajnarwade/stdin
Kompose will read input from stdin
2018-06-06 22:20:27 +08:00
Li Yi
6eb1aed7ab Fix invalid port name with uppercase characters (#1029)
* Fix invalid port name with uppercase characters

Signed-off-by: Li Yi <denverdino@gmail.com>
2018-06-05 14:18:40 +08:00
Charlie Drage
fa706f2f1c
1.14.0 Release (#1030) 2018-06-04 13:50:54 -04:00
ruicao
355eb29b29 Typo fix: overwite -> overwrite 2018-06-04 15:45:42 +08:00
skyc024
8b43b8e6b7 Fix golint warning 2018-05-17 06:01:48 +00:00
Charlie Drage
84fa8267f3
1.13.0 Release (#1006) 2018-05-14 09:16:43 -04:00
xianlubird
a4efdd6cca Add label 'kompose.controller.type' set service convert controller type 2018-05-12 11:52:23 +08:00
xianlubird
84b419c7ef Support compose global deploy mode to daemonset 2018-05-07 15:19:47 +08:00
xianlubird
04e9ee9949 Fix missing attribute when convert with multiple docker-compose files
Signed-off-by: xianlubird <xianlubird@gmail.com>
2018-05-03 11:51:55 +08:00
AdamDang
28031a9453 Typo fix: wil->will (#998)
wil->will
2018-05-02 09:12:44 -04:00
Xianlu Bird
c496fa4373 Fix golint warnings (#992) 2018-04-27 09:28:49 -04:00
Hang Yan
852078cc5c Remove incorrect logging about headless service (#991) 2018-04-26 15:11:24 -04:00
Charlie Drage
0ab07bec57
1.12.0 Release (#988) 2018-04-18 09:59:33 -04:00
Haoyun
fd0aad152f
Typo fix
Change validated -> validates at line  159
```release-note
None
```
2018-04-17 11:49:54 +08:00
Hang Yan
f3412a7399 Add headless service type label
Also remove the relation between restart and service create
2018-04-15 00:23:48 +08:00
Tomas Kral
25f8ba42f9
Merge pull request #976 from hangyan/hostname-domain-support
Support hostname and domainname
2018-04-11 15:58:18 +02:00
Charlie Drage
f671ca9377
Merge pull request #981 from jonyhy96/patch-1
typo fix
2018-04-04 11:08:40 -04:00
Haoyun
077ef90e01
typo fix
typo fix
2018-04-03 17:12:30 +08:00
Haoyun
d029807145
typo fix
typo fix
2018-04-03 16:31:31 +08:00
Haoyun
d68f173917
typo fix
typo fix
2018-04-03 16:21:28 +08:00
Hang Yan
3c531fea66 Fix typos in comments 2018-04-01 16:01:51 +08:00
Hang Yan
88b8e316b9 Support hostname and domainname 2018-03-31 12:00:37 +08:00
Haoyun
7391946765
typo fix
typo fix
2018-03-29 15:17:44 +08:00
Charlie Drage
dba688e0bf 1.11.0 Release 2018-03-26 12:03:38 -04:00
Hang Yan
505cb8b754 Fix golint warnings 2018-03-25 16:22:08 +08:00
Charlie Drage
5d733f33cf
Merge pull request #954 from hangyan/support-compose-v3.2
Add support for compose v3.2
2018-03-22 10:02:32 -04:00
Charlie Drage
442caa4359
Merge pull request #957 from hangyan/support-hostpath-volume
Support hostpath volume
2018-03-19 11:47:00 -04:00
Hang Yan
cf833c8818 Support hostpath volume 2018-03-16 10:40:25 +08:00
Hang Yan
6e5b6a3055 Fix deploy resources parse error 2018-03-15 14:00:17 +08:00
Hang Yan
61ff9eeeaa Add support for compose v3.2 2018-03-09 00:13:10 +08:00
Charlie Drage
a5a113d042
Merge pull request #950 from hangyan/support-old-restart-policy
Support old restart policy in compose v3
2018-03-07 08:41:46 -05:00
Suraj Narwade
6d4c8f9b78 Kompose will read input from stdin
Resolves issue #870

for example,

```
$ cat docker-compose.yaml | kompose convert -f -
INFO Kubernetes file "frontend-service.yaml" created
INFO Kubernetes file "redis-master-service.yaml" created
INFO Kubernetes file "redis-slave-service.yaml" created
INFO Kubernetes file "frontend-deployment.yaml" created
INFO Kubernetes file "redis-master-deployment.yaml" created
INFO Kubernetes file "redis-slave-deployment.yaml" created
```

Added integration test for the same.
`
2018-03-07 12:49:21 +05:30
Suraj Narwade
908e3f1b59
Merge pull request #907 from caglar10ur/serviceports
Allow services to use same port with different protocols
2018-03-07 12:29:05 +05:30
Hang Yan
723bd0f9d8 Support old restart policy in compose v3 2018-03-07 13:35:36 +08:00
Charlie Drage
34aa5ac74a 1.10.0 Release 2018-03-06 10:43:38 -05:00
Hang Yan
ea8b373105 Fix broken links for volume in comments 2018-03-03 19:25:39 +08:00
Charlie Drage
47a8bfc0ea
Merge pull request #946 from hangyan/fix-build-path
Fix image build path error
2018-02-27 10:09:45 -05:00
Charlie Drage
0f79b58bba
Merge pull request #948 from hangyan/refactor-const-strings
Refactor label names to const strings
2018-02-27 10:08:51 -05:00
Charlie Drage
b365953266
Merge pull request #938 from hangyan/fix-helm-custom-dir
Fix custom output and charts conflict error
2018-02-27 10:07:39 -05:00
Hang Yan
0f3d368215 Fix cli custom output and charts conflict error 2018-02-27 16:10:35 +08:00
Hang Yan
a1090ecbf9 Refactor label names to const strings 2018-02-25 14:32:00 +08:00
Hang Yan
e119b30ebd Fix image build path error 2018-02-24 15:40:00 +08:00
Charlie Drage
bccc56373c
Merge pull request #937 from hangyan/fix-code-style
Variable name should not be the same as imported package name
2018-02-23 10:30:53 -05:00
Charlie Drage
170acd9e1a
Merge pull request #936 from hangyan/fix-healthcheck-bug
Fix healthcheck parser nil pointer error
2018-02-20 11:00:18 -05:00
Charlie Drage
00ac427d30 1.9.0 Release 2018-02-13 16:00:16 -05:00
Charlie Drage
e8e32c137f
Merge pull request #933 from hangyan/refactor-const-strings
Refactor package app to use const rather than raw string
2018-02-13 09:27:07 -05:00
Hang Yan
94148d2e56 Variable name should not be the same as imported package name 2018-02-09 11:31:32 +08:00
Hang Yan
b8f1707d30 Fix healthcheck parser nil pointer error 2018-02-09 11:10:03 +08:00
Charlie Drage
f857afad1c
Merge pull request #929 from hangyan/fix-v2compose-pvc-size-error
Fix custom pvc size in v2 compose not working error
2018-02-08 08:24:49 -05:00
Hang Yan
1df73c4004 Refactor package app to use const rather than raw string 2018-02-08 19:43:57 +08:00
Hang Yan
f18450d045 Fix custom pvc size in v2 compose not working error 2018-02-08 16:13:49 +08:00
Hang Yan
0ef015d3da Fix unset env bug for v3 compose 2018-02-08 15:12:16 +08:00
Charlie Drage
ed9246d537
Merge pull request #931 from hangyan/fix-typo-in-func-name
Fix typo in function name
2018-02-07 08:22:50 -05:00
Hang Yan
be96662d11 Fix log format error 2018-02-07 13:42:06 +08:00
Hang Yan
3fe1b5313c Fix typo in function name 2018-02-07 11:22:29 +08:00
Hang Yan
2b135cfe58
Remove unneeded TODO comment 2018-02-07 00:04:57 +08:00
coodix
60f1e5757d Push image without authentication 2018-01-26 10:52:21 +03:00
Charlie Drage
48c0ab55e9 1.8.0 Release 2018-01-24 10:51:50 -05:00
S.Çağlar Onur
e6ae470830 Allow services to use same port with different protocols
kompose fails if compose file declares different protocols for the same port. eg;

...
     ports:
      - 666:666/udp
      - 666:666/tcp
...

This PR adds the port to the output and also makes sure that names are unique for each port/protocol pair.
This is supported with LoadBalancer (kubernetes/kubernetes#2995) so trying to use this config with LB panics.
2018-01-17 11:26:03 -08:00
Charlie Drage
60402237b5 1.7.0 Release 2018-01-04 12:09:19 -05:00
Charlie Drage
9bbab876cb
Merge pull request #895 from Code0x58/893-fix-image-push
Fix pushing of image to a private repository
2018-01-04 09:11:59 -05:00
Oliver Bristow
4912f54393 Fix pushing image to registry #893 2017-12-26 22:51:42 +00:00
Piyush Garg
52f8f1f2b4 Added Case for Config Map in kompose down.
To implement this, added label in
configmap object at the time of init

Fixed ConfigMap test because we are
adding one more field labels in metadata
2017-12-22 15:44:10 +05:30
Oliver Bristow
35a782024d Add kompose.service.expose.tls-secret 2017-12-18 15:56:38 +00:00
Charlie Drage
01c4f7beb2 1.6.0 Release 2017-12-11 13:50:50 -05:00