Commit Graph

107 Commits

Author SHA1 Message Date
1ff8edfaf0 Add support for init containers and mounting secrets 2025-12-01 16:16:16 +05:30
yuefanxiao
7dddd1f0e8 fix: Load variables from .env file by default 2025-04-27 18:39:58 +08:00
João Vitor Paes de Barros do Carmo
a2673466f3 feat(no-interpolate): add no-interpolate feature option to the cli 2024-12-02 23:22:26 +00:00
TessaIO
3bf98301f7
fix: expose container to host only with labels (#1880)
Signed-off-by: ahmed.g <ahmed.g@adjoe.io>
Signed-off-by: TessaIO <ahmedgrati1999@gmail.com>
2024-05-29 16:05:04 -04:00
Charlie Drage
50e0408f6f
update references to just compose (#1869)
#### What type of PR is this?

Change from Docker Compose references to just Compose

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

#### What this PR does / why we need it:

Compose is an open format and we should not say "Docker Compose".

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

Fixes https://github.com/kubernetes/kompose/issues/1868

#### Special notes for your reviewer:

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2024-04-26 10:24:55 +02:00
jose luis
17ec585065
update compose-go to 2.1.0
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-25 23:29:13 +02:00
jose luis
3c189aaff1
Merge branch 'main' into feature-1846-network_mode-service
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-25 17:31:49 +02:00
jose luis
8ee944c2be
Merge branch 'main' into feature-1846-network_mode-service 2024-04-22 15:46:45 +02:00
jose luis
a050907ef4
Merge branch 'main' into feature-1635-with-labels 2024-04-22 13:47:24 +02:00
Kubernetes Prow Robot
1015e59eac
Merge pull request #1838 from microsec-ambrose/upgrade-compose-go
chore(deps): bump Go version and github.com/compose-spec/compose-go
2024-04-18 05:58:12 -07:00
jose luis
a589f1d6e9
Merge branch 'main' into feature-1635-with-labels 2024-04-10 17:29:38 +02:00
jose luis
58974092a5
add networkmode service:
added tests
fixNetworkModeToService is responsible for adjusting the network mode of services in docker compose (services:) and generate a mapping of deployments based on the network mode of each service merging containers into the destination deployment, and removing transferred deployments

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-03-30 21:17:47 +01:00
Ambrose Chua
f291caa00d
Add tests for parseEnvFiles 2024-03-25 10:34:39 +08:00
Ambrose Chua
ea485a7806
chore(deps): bump github.com/compose-spec/compose-go 2024-03-19 14:34:58 +08:00
jose luis
bf3cfc303d
add target to kompose build
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-03-14 00:49:47 +01:00
jose luis
7b6888edd1
customize the resource name individually via labels kompose.service.name_override
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-03-10 13:57:24 +01:00
Tomer Zait
db6a4d7ce1 fix issues #1829, #1830 2024-02-18 10:50:15 +02:00
Tomer Zait
cd6a318896 Add Labels for CronJob https://github.com/kubernetes/kompose/issues/1795 2024-01-16 23:44:49 +02:00
AhmedGrati
fd3fee64fb
fix: make resources names lowercase (#1755)
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-11-08 11:29:39 +01:00
AhmedGrati
a4ae9f9df4 chore: add warning when no service is selected
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-11-01 17:18:46 +01:00
axel7083
0302093e0a fix: removing unused property 2023-09-21 22:09:18 +02:00
axel7083
a7c63a650c Adding support for --profile cmd option 2023-09-17 17:41:05 +02:00
AhmedGrati
0be4868914
Fix expose conversion (#1696)
* fix: remove hostport from expose conversion

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

* test: update unit tests

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

---------

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-08-28 08:55:00 -04:00
Kubernetes Prow Robot
071451dfdf
Merge pull request #1670 from AhmedGrati/feat-add-read-only-support
Feat: add read only containers support
2023-07-16 10:51:05 -07:00
AhmedGrati
4a08d41242 feat: add read only fs support
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-07-14 15:56:04 +01:00
AhmedGrati
36028cb89a fix: remove lower case of the host generation
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-07-14 12:48:00 +01:00
AhmedGrati
485cd2f163
feat: support container volume mount subpath (#1628)
* feat: support volumes subpath

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

* docs: add the kompose.volume.sub-path label

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

* fix: update e2e tests

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

---------

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-07-05 10:47:01 +01:00
AhmedGrati
71c3164907
fix: enable compose environment variables interpolation (#1642)
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-06-30 11:29:26 -04:00
AhmedGrati
8f0a6684ca
Feat support security fsgroup (#1613)
* feat: support security context fsgroup

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

* test: add unit test to security group fsgroup

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

* test: add functional test to security group fsgroup

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

* docs: add documentation of the new label of security group fsgroup

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

---------

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-04-05 14:11:10 -04:00
AhmedGrati
6be6fdd165 feat: support external traffic policy
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-02-13 14:59:46 +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
Rémy Léone
395d99fb7d
add support for golangci-lint (#1373) 2021-04-07 11:10:56 +08:00
Hang Yan
ee3228cb7a
Bump docker version (#1334)
to support compose 3.8
2020-10-31 17:30:28 +08:00
Hang Yan
f31257f5cf
Add support for compose 2.x (#1333) 2020-10-31 08:27:50 +08:00
Mudit Verma
ac2b852955 Network Key Translation Feature and test cases (#1195) 2019-12-01 10:19:23 +08:00
sivanzcw
d03a6a9474 fix golint error about comment on exported variable (#1178) 2019-11-14 11:38:48 +08: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
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
Hang Yan
5a374742cf
Merge pull request #871 from surajnarwade/stdin
Kompose will read input from stdin
2018-06-06 22:20:27 +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
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
Hang Yan
61ff9eeeaa Add support for compose v3.2 2018-03-09 00:13:10 +08: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
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
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
xianlubird
9b66188144 Ignore links attribute and print warning message
Signed-off-by: xianlubird@gmail.com
2017-11-08 10:08:12 +08:00
Charlie Drage
787b7d9261 kubernetes-incubator -> kubernetes
Today, we graduate from the incubator, thus all links are updates from
kubernetes-incubator to kubernetes
2017-07-12 15:42:13 -04:00
Charlie Drage
ce32bb817d 2016 -> 2017 for licensing
New year, update to the license.
2017-06-28 10:49:52 -04:00