Commit Graph
114 Commits
Author SHA1 Message Date
leovct b350d95c08 chore: update kompose convert --help 2024-01-22 15:51:49 +01:00
Martin Jirku e5e2fe2528 chore: format by gofmt
Signed-off-by: Martin Jirku <martin@jirku.sk>
2024-01-18 22:39:36 +01:00
Martin Jirku 6ba1ff77de docs(cli): remove docker name from cli Examples
Signed-off-by: Martin Jirku <martin@jirku.sk>
2024-01-18 21:52:35 +01:00
Martin Jirku ae975a818d docs(cli): introduce examples in the kompose command
Signed-off-by: Martin Jirku <martin@jirku.sk>
2024-01-17 21:42:48 +01:00
AhmedGrati a91b57ef2e feat: add COMPOSE_FILE env variable
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-11-05 15:02:36 +01:00
Charlie Drage c0e0393bbd bug: fixes bug with error out with using kompose convert with no -f (#1725)
#### What type of PR is this?

<!--
Add one of the following kinds:
/kind cleanup
/kind documentation
/kind feature
-->

/kind bug

Fixes a validation bug where if you do not provide a compose.yaml or
docker-compose.yaml it will nil point error out rather than have an
appropriate "file not found" output.

#### Which issue(s) this PR fixes:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->

Closes https://github.com/kubernetes/kompose/issues/1719

#### Special notes for your reviewer:

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-10-06 13:34:44 -04:00
axel7083andCharlie Drage 134db384b2 Apply suggestions from code review
Co-authored-by: Charlie Drage <charlie@charliedrage.com>
2023-09-26 08:41:47 +02:00
axel7083 a7c63a650c Adding support for --profile cmd option 2023-09-17 17:41:05 +02:00
AhmedGrati b6b708b637 Feat add ns generation (#1667)
* feat: add ns generation for k8s

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>

* feat: add ns generation for openshift

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>

* test: add functional tests

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>

* fix: remove some code nits

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>

---------

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-07-16 22:59:16 +01:00
AhmedGrati b0d46a4ce3 Feat add custom build push (#1630)
* feat: support custom build and push commands

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>

* test: add functional tests of the support of custom build and push

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>

* docs: add docs of the support of custom build and push

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>

---------

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-07-05 11:37:28 +01:00
AhmedGrati f7bee839ce feat: disable network policies generation by default (#1629)
* feat: disable network policies default generation

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>

* docs: add the generate-network-policies flag to user guide

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>

* test: add unit tests of the network policies generation

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>

---------

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-07-05 11:26:37 +01:00
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
Kubernetes Prow Robot 20fbab4c5c Merge pull request #1478 from campos-ddc/fix-secret-file-locations
Fixed secret file locations to match results from docker-compose when using file-based secrets
2022-08-29 08:00:37 -07:00
Mac Chaffee 4a8bd3f482 Remove [file] from convert helptext
Signed-off-by: Mac Chaffee <machaffe@renci.org>
2022-03-09 18:45:36 -05:00
Diogo de Campos acf24e94d5 Fixed secret file locations to match results from docker-compose when using file-based secrets 2022-01-20 14:24:33 +01:00
Shivam Sandbhor 6a5f21a553 Fix typo in empty volume warning (#1441)
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2021-10-17 21:46:08 +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
Shivam Sandbhor 41cd3108d9 Remove code for parsing DAB files (#1435)
* Remove code for parsing DAB files

Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2021-10-01 19:16:09 +08:00
Kubernetes Prow Robot b02ad5de69 Merge pull request #1409 from lexcao/feat/image/registry
Support custom registry on pushing image
2021-08-11 08:26:47 -07:00
Top abbe054e1c Add autocompletion for fish shell (#1412) 2021-08-11 14:01:48 +08:00
Lex Cao 82440ed8c0 Support custom registry on pushing image 2021-08-11 09:58:24 +08:00
ithaiq b605fd986c Add "--pvc-request-size" new command line parameter (#1406) 2021-08-07 14:47:02 +08:00
zeromake bd52469d33 fix: revert --build flag, change push-image default is false 2021-08-06 13:42:44 +08:00
zeromake 6addbe5161 fix: --build flag default change to local 2021-08-06 13:00:29 +08:00
tk42 deb00f3407 support multiple containers in a pod (#1394) 2021-07-08 09:48:05 +08:00
Rémy Léone 395d99fb7d add support for golangci-lint (#1373) 2021-04-07 11:10:56 +08:00
namusyaka 951b46e3c2 cleanup debug logs & remove duplicated output (#1348)
* cleanup debug logs

* avoid duplicate error messages

and this makes main.go use os and fmt package instead of log to avoid
touching global state
2020-11-04 22:50:18 +08:00
namusyaka 45864ed624 make kompose exit with 1 if error (#1343)
Old code passes -1 to os.Exit and the value is directly passed to syscall.
The behavior with -1 depends on environments (most cases should convert
into 255 though)

This commit is to remove unnecessary the ambiguity and change it to use 1 instead of 255.
2020-11-04 08:24:52 +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 47e6015f50 Remove up and down cmd (#1297)
* Remove up and down cmd
2020-08-01 16:01:34 +08:00
Hang Yan d105a77e07 Add server flag for kompose down (#1260) 2020-03-08 18:40:29 +08:00
Christian Fetzer 2bdb3261a0 Add support for push-image with --build local (#1257)
The PR https://github.com/kubernetes/kompose/pull/1147 introduced a
push-image parameter for the 'up' command that allows to disable
pushing the image to the registry. The PR changed the behavior of the
'convert' command that now no longer pushes the image.

This commit introduces the same parameter for the 'convert' command
and reintroduces the original behavior of pushing the image.
2020-03-08 13:58:01 +08:00
Hang Yan 78908c94e5 Add flag to allow use define api server url (#1243) 2020-02-22 11:56:50 +08:00
Hang Yan 88a3a27ca8 Support export yaml with indent (#1219) 2019-12-28 12:23:03 +08:00
Hang Yan 34b827c97e Support use configmap as volume (#1216) 2019-12-28 01:02:27 +08:00
Hang Yan e0c8f6d23d Add flag to support store manifest when kompose up (#1208) 2019-12-26 19:30:03 +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
Chiang Fong Lee 062f2a29cb Add note about output directories to --out help 2019-10-08 18:18:54 +08:00
Hang Yan 302e918093 Add flag to turn off push image when kompose up 2019-06-25 13:38:00 +08:00
Rui Cao fe97a60473 Typo fix: erroring -> error (#1032) 2018-06-05 10:17:35 -04:00
xianlubird c26ff8e759 Add some deprecated info warning 2018-05-09 15:46:16 +08:00
Hang Yan 3c531fea66 Fix typos in comments 2018-04-01 16:01:51 +08:00
Hang Yan cf833c8818 Support hostpath volume 2018-03-16 10:40:25 +08:00
Pascal Borreli 3318677d3f Fixed typo 2018-02-08 13:39:37 +01:00
Charlie Drage 87b35daf78 Merge pull request #925 from hangyan/fix-typo
Fix typo in cli help message
2018-02-07 08:04:02 -05:00
Hang Yan 4f34ff25ae Fix typo in cli help message 2018-02-07 11:12:30 +08:00
adolphlwq 678103831a provide more details for building 2018-02-01 17:46:37 +08:00
Charlie Drage 84be7400a2 Merge pull request #846 from surajnarwade/buildv3
Added support for build key in v3
2017-11-30 09:06:32 -05:00
Suraj Narwade 126d9820c4 Adding --controller flag in up & down
To make `kompose up` & `kompose convert` equal in feature, This PR will
add `--controller` flag for `kompose up` as well as `kompose down`
so that user experience will be the same for `up` & `convert`
Resolves #798

since we are adding `--controller` to `up` and `down`, So respective code to deploy and undeploy also being added for `daemonset` and `replicationcontroller`

Added tests for `--controller`
2017-11-27 15:26:24 +05:30
Suraj Narwade 5de4aa85f8 Added sirupsen and updated all occurances
Updated `sirupsen`, `docker/cli`, `docker/libcompose` in `glide`,
Also changed `Sirupsen` with `sirupsen` in all kompose packages as well as in
`docker/distribution` packages
2017-11-27 12:28:46 +05:30