Commit Graph
303 Commits
Author SHA1 Message Date
Lctrs 2ad5745d58 feat: migrate from libcompose to compose-go (#1547)
* feat: migrate from libcompose to compose-go

libcompose has been deprecated since summer 2021 in favor of https://github.com/compose-spec/compose-go.
Kompose should now be able to load all versions of compose.

* chore: replace golint with staticcheck

golint has been deprecated. Recommended replacement is staticcheck.
2023-01-12 15:17:22 -05:00
AhmedGrati 7304bb6013 fix: update match output function (#1546) 2022-12-08 16:25:20 -05:00
AhmedGrati 91391eb84f Fix: Make the out flag print to one file using seperator (#1541)
* fix: make the out flag print to one file using seperator

* fix: comment an unused function

* fix: update test script

* fix: update output k8s

* fix: update the json output error condition

* fix: update envvars interpolation tests

* chore: update e2e tests to support yaml generation instead of JSON format

* fix: update e2e tests according to ci environment

* fix: apply PR changes
2022-12-01 09:47:50 +01:00
AhmedGrati 36593e8759 Update e2e tests (#1538)
* fix: update ingress class name assign
2022-11-21 18:54:28 +08:00
AhmedGrati acb8046f84 Fix environment variables interpolation (#1524) 2022-11-19 10:35:33 +08:00
Charlie Drage e0e69ae886 Update release script (#1535)
Signed-off-by: Charlie Drage <charlie@charliedrage.com>

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2022-11-18 11:58:13 -05:00
Kubernetes Prow Robot d976c812b4 Merge pull request #1490 from sergeyshevch/feature/fix-network-normalization-in-v3
fix(v3): Added network name normalisation in v3 parsing
2022-03-24 01:58:41 -07:00
Sergey Shevchenko 734b88e102 fix(v3): Added network name normalization in v3 parsing 2022-03-21 16:08:03 +04:00
Sergey Shevchenko 98578640c0 Add kompose.service.expose.ingress-class-name (#1486)
Signed-off-by: Sergey Shevchenko <shevchenko@simple.life>
2022-03-15 10:51:00 -04:00
Charlie Drage ff4a65c08a Add new Kompose site (#1474)
This PR adds the new Kompose site!

Go preview it at https://kompose.io

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2022-01-13 13:55:50 -05:00
Shivam Sandbhor a46582bda2 Fix ImageStream tags in openshift provider mode (#1461)
* Fix ImageStream tags in openshift provider mode

Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2021-11-20 13:31:56 +08:00
Hang Yanandkomposebot 40646f4715 1.26.0 Release (#1460)
Signed-off-by: Hang Yan <hang.yan@hotmail.com>
Co-authored-by: komposebot <cdrage+kompose@redhat.com>
2021-11-13 22:49:53 +08:00
Shivam Sandbhor 1c4ff96626 Infer storage type using label (#1456)
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2021-11-13 20:33:10 +08:00
ichx 8cb1b0599e Add support for placement preferences docker-compose v3.3+ (#1425) 2021-11-04 08:28:45 +08:00
Shivam Sandbhor c921643705 Add support for statefulset controller. (#1452)
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2021-11-04 08:24:12 +08:00
ichx d55071e9d6 Support tcp/http liveness/readiness probe (#1449) 2021-11-03 23:30:38 +08:00
Shivam Sandbhor d029f2c587 Add cmd tests for emptyvols and emptyDir (#1447)
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2021-10-17 21:31:11 +08:00
Hang Yan a87dd94532 Fix merge compose file's replicas error (#1446) 2021-10-17 14:21:58 +08:00
Shivam Sandbhor c7ba832556 Remove bundle test and it's fixtures (#1443)
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2021-10-17 12:55:27 +08:00
Hang Yan 72ea6a3c24 Support group service by shared volumes (#1439)
Signed-off-by: Hang Yan <hang.yan@hotmail.com>
2021-10-03 23:07:41 +08:00
Hang Yan 6bd22ce565 Upgrade Ingress apiversion (#1436)
Signed-off-by: Hang Yan <hang.yan@hotmail.com>
2021-10-02 01:52:20 +08:00
Hang Yan 7c629530e1 1.24.0 Release (#1424) 2021-08-29 22:53:41 +08:00
Hang Yan 0671410009 Add support for bindata in cm (#1418)
Signed-off-by: Hang Yan <hang.yan@hotmail.com>
2021-08-29 08:33:16 +08:00
ichx e82fe96c38 Add support for negated placement constraint (#1419) 2021-08-27 22:49:55 +08:00
AiYijing 473f54fdaf Add support for windows volume (#1417)
Signed-off-by: aiyijing <aiyijing@live.com>
2021-08-24 10:09:34 +08:00
w4v3 b2dee807a2 Add storageClassName label to pvc manifest(#1413) 2021-08-15 15:05:01 +08:00
Lex Cao f78eed9e4f Add a separate test file about fundamental tests for local push image 2021-08-11 12:14:31 +08:00
Lex Cao 82440ed8c0 Support custom registry on pushing image 2021-08-11 09:58:24 +08:00
Lex Cao ef474809e3 Fix build context (#1411) 2021-08-11 09:43:42 +08:00
ithaiq b605fd986c Add "--pvc-request-size" new command line parameter (#1406) 2021-08-07 14:47:02 +08:00
cnbailian 5a17ee46c3 fix the selector field of service resource 2021-08-06 15:04:23 +08:00
Tomas Kral cfb16f2bfb release script: remove check for 2021-07-12 13:57:39 +02:00
namusyaka 3772612ff9 GitHub Actions Part2 (#1356)
* Update CI badge

* Update CI target

* Add TODO comment

* Create .coverprofile for each directory

Re:running tests resolve 0% coverage issue.
2020-11-30 14:48:09 +08:00
namusyaka 6baca72c4d Migrate CI from travis ci to github actions (#1355)
Ref #1352
2020-11-16 11:47:55 +08:00
namusyaka 8fcbc60969 Cleanup glide (#1353)
* Cleanup mentions about glide

* Don't use glide to ignore vendor directory

Since go-1.9, "./..." no longer contains the "vendor" directory.
Also, since #1305 migrated dependency management from glide to go mod,
there is no need to think about the "vendor" directory.

See: https://golang.org/doc/go1.9#vendor-dotdotdot

* go mod tidy
2020-11-08 23:21:51 +08:00
namusyaka 25036e1b22 Create directories if --out ends with "/" or includes nonexistent directories (#1350)
* Create directory if --out ends with "/"

* Create directories if "out" contains nonexistent directories
2020-11-08 23:18:39 +08:00
namusyaka 8dc5572ec7 Retrieve container test by updating Dockerfile (#1351) 2020-11-08 08:51:57 +08:00
namusyaka 8b06045c70 Support port range for docker-compose v2 (#1345)
* allow port range specification in v1v2

* improve tests for loadPorts

* add port range to fixtures of docker-compose v2

* update fixtures to follow up on #1341
2020-11-04 22:16:33 +08:00
Hang Yan c0f485b4e1 Create two svc if loadbalancer and use udp/tcp the same time 2020-11-03 13:09:25 +08:00
Charlie Drage 64a2f8ad08 Update introduction doc + add sync docs script
Updates the introduction doc and adds a synchornization script to be
manually run for website changes.

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2020-10-28 14:53:34 -04:00
Hang Yan 4d7183f86c Update networkpolicy version (#1307) 2020-08-07 18:13:20 +08:00
Hang Yan 525b68f027 Go mod (#1305)
* Use go mod instead of glide
* Add `--with-kompose-annotation` flag to allow us to switch it off for tests
* Remove hostpid support (since the newest sdk does not support it)
* Create new test script and fixtures
* Remove replicationcontroller support
2020-08-07 17:25:52 +08:00
Hang Yan d780067bf9 Add missing pod ano (#1303) 2020-08-06 23:42:58 +08:00
Jing Guo 8edc5f4d01 fix stop_grace_period in v3 (#1300) 2020-08-02 17:57:29 +08:00
Charlie Drage 6b018fab7b Fix tests (#1274)
For some reason, Kubernetes tests haven't been running correctly. This
(hopefully) fixes it on Semaphore..

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2020-04-23 13:56:02 -04:00
Hang Yan 88dde83044 Fix annotations missing for ingress (#1248)
* Fix annotations missing for ingress
2020-03-31 20:47:53 +08:00
Hang Yan 1685ab3001 Support ingress path for kubernetes (#1245)
* Support ingress path for kubernetes
2020-02-23 19:25:43 +08:00
Hang Yan e7f05588bf Support deploy update_config (#1232) 2020-01-05 19:30:41 +08:00
Hang Yan 4d864a9aab Support deploy labels (#1231) 2020-01-05 11:35:32 +08:00
Hang Yan 05e9bf4fc8 Support config short syntax and fix old bugs (#1230) 2020-01-05 10:19:22 +08:00