Compare commits

...

408 Commits

Author SHA1 Message Date
Charlie Drage ae2a394038
1.36.0 Release (#2013) 2025-05-14 14:17:40 -04:00
Kubernetes Prow Robot 416e8eaa08
Merge pull request #2008 from yuefanxiao/fix
fix: Load variables from .env file by default
2025-05-14 10:57:19 -07:00
yuefanxiao b16cdef598 Add test cases for loading .env file 2025-05-14 22:46:46 +08:00
Kubernetes Prow Robot 4f59fe88bd
Merge pull request #2011 from yuefanxiao/envfile
fix: resolve env_file variable interpolation issues by adding support…
2025-05-14 07:39:19 -07:00
yuefanxiao 0a01b5ec96 fix: error directory path in tests.sh 2025-05-14 22:25:21 +08:00
yuefanxiao 22d9233f8b fix: resolve env_file variable interpolation issues by adding support for and default syntax 2025-05-08 01:23:08 +08:00
yuefanxiao 7dddd1f0e8 fix: Load variables from .env file by default 2025-04-27 18:39:58 +08:00
robertaistleitner 1b29e031e3
Fix ConfigMap name clash if env_file name is equal (#2001)
* Fix ConfigMap name clash if env_file name is equal #2000

* Generate envFrom instead of single env entries from env_file entries #1999

* Fix failing test fixture outputs
2025-04-15 11:39:45 -04:00
Kubernetes Prow Robot 1c8109e980
Merge pull request #1994 from gisostallenberg/patch-2
Improve command to run in docker
2025-03-13 14:53:46 -07:00
Kubernetes Prow Robot 376ec34ee0
Merge pull request #1993 from gisostallenberg/patch-1
Fix case of FromAs
2025-03-13 14:51:46 -07:00
Kubernetes Prow Robot 3bff27f395
Merge pull request #1998 from kundan2707/kompose_volumen_subpath
update typo in kompose.volume.subpath
2025-03-13 14:43:47 -07:00
Kundan Kumar cc56b19407 update typo in kompose.volume.subpath 2025-03-08 23:54:48 +05:30
Giso Stallenberg 3a099cfc10
Improve command to run in docker
Using a working dir avoids the need for a cd command call
2025-02-06 16:33:59 +01:00
Giso Stallenberg 6910e6fc00
Fix case of FromAs
This fixes a warning in newest docker builder

```
FromAsCasing: 'as' and 'FROM' keywords' casing do not match
```
2025-02-06 16:31:13 +01:00
Kubernetes Prow Robot 6b704502d6
Merge pull request #1955 from jvitor83/feature/no-interpolate
Add no-interpolate feature option to the CLI
2025-01-09 06:20:31 -08:00
Alf Lervåg e81ce2d654
Replaced y with ✓ (#1975)
If `y` does not mean ✓ then `y` should be added to the glossary.
2024-12-20 09:18:32 -05:00
Charlie Drage 9532ceef3a
1.35.0 Release (#1971) 2024-12-12 08:59:52 -05:00
João Vitor Paes de Barros do Carmo b354989559 chore: improving the description for the no-interpolate argument 2024-12-02 23:22:48 +00: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
Kubernetes Prow Robot 62d33c426c
Merge pull request #1952 from jvitor83/feature/config-content
Add support for content in config
2024-12-02 13:12:59 +00:00
João Vitor Paes de Barros do Carmo a49542010e docs: correcting the method name 2024-11-29 00:16:35 +00:00
João Vitor Paes de Barros do Carmo ffa8800bc3 docs(configs): included configs section in conversion matrix 2024-11-29 00:16:35 +00:00
João Vitor Paes de Barros do Carmo 9f609d6b7d docs: included notes for configs support 2024-11-29 00:16:35 +00:00
João Vitor Paes de Barros do Carmo 5c1b3ad354 feat(config-content): added support for content in config 2024-11-29 00:16:23 +00:00
Kubernetes Prow Robot 0d989a2d5c
Merge pull request #1936 from jvitor83/feature/deploy-labels-ephemeral-storage
feat(deploy): support ephemeral storage requests limits labels
2024-11-27 19:58:56 +00:00
Kubernetes Prow Robot feb82f1e7e
Merge pull request #1958 from cortex3/main
improve error output of git commands
2024-11-27 19:52:57 +00:00
Kubernetes Prow Robot 922f5aaeef
Merge pull request #1959 from kubernetes/dependabot/go_modules/golang.org/x/tools-0.27.0
chore(deps)(deps): bump golang.org/x/tools from 0.25.0 to 0.27.0
2024-11-12 13:18:46 +00:00
Kubernetes Prow Robot 79071a2e46
Merge pull request #1956 from kubernetes/dependabot/go_modules/github.com/compose-spec/compose-go/v2-2.4.4
chore(deps)(deps): bump github.com/compose-spec/compose-go/v2 from 2.2.0 to 2.4.4
2024-11-12 13:16:46 +00:00
Kubernetes Prow Robot c0c240bce8
Merge pull request #1946 from kubernetes/dependabot/bundler/docs/rexml-3.3.9
chore(deps): bump rexml from 3.2.5 to 3.3.9 in /docs
2024-11-12 13:14:46 +00:00
dependabot[bot] b0bab4b52f
chore(deps)(deps): bump golang.org/x/tools from 0.25.0 to 0.27.0
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.25.0 to 0.27.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.25.0...v0.27.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-12 13:07:53 +00:00
Kubernetes Prow Robot c665212812
Merge pull request #1941 from kubernetes/dependabot/go_modules/k8s.io/api-0.31.2
chore(deps)(deps): bump k8s.io/api from 0.31.1 to 0.31.2
2024-11-12 13:06:49 +00:00
cortex3 ef1bca2641 improve error output for git commands 2024-11-07 20:14:18 +01:00
dependabot[bot] 6951d6cb6e
chore(deps)(deps): bump github.com/compose-spec/compose-go/v2
Bumps [github.com/compose-spec/compose-go/v2](https://github.com/compose-spec/compose-go) from 2.2.0 to 2.4.4.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v2.2.0...v2.4.4)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-07 14:49:00 +00:00
Kubernetes Prow Robot 1ebc27a6f5
Merge pull request #1950 from hurzelpurzel/main
Fix issue 1942
2024-11-06 15:23:29 +00:00
João Vitor Paes de Barros do Carmo 073109ce39 test(deploy-label): rename expected ephemeral label for test 2024-10-31 00:05:04 +00:00
Ludger 131b092c8d Merge branch 'main' of github.com:hurzelpurzel/kompose 2024-10-30 23:39:34 +01:00
Ludger d529bb9c41 clean double to lower 2024-10-30 23:37:49 +01:00
Ludger Pottmeier ccea3fa482
Merge branch 'kubernetes:main' into main 2024-10-30 23:29:57 +01:00
Ludger 470fb50146 fix upercas issue 2024-10-30 23:27:42 +01:00
Ludger d5de021f51 fix retract issue 2024-10-30 23:04:03 +01:00
Kubernetes Prow Robot ca361e5358
Merge pull request #1948 from sadikkuzu/patch-1
chore(deps): bump pre-commit hook versions
2024-10-30 14:37:26 +00:00
SADIK KUZU 24a18a25b1
chore(deps): bump pre-commit hook versions 2024-10-29 20:56:36 +03:00
dependabot[bot] d2069ef612
chore(deps): bump rexml from 3.2.5 to 3.3.9 in /docs
Bumps [rexml](https://github.com/ruby/rexml) from 3.2.5 to 3.3.9.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.2.5...v3.3.9)

---
updated-dependencies:
- dependency-name: rexml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 16:02:02 +00:00
Ludger Pottmeier a103f37f4a
Update kubernetes.go
Fix issue #1942
2024-10-25 00:12:30 +02:00
dependabot[bot] 8654a226a4
chore(deps)(deps): bump k8s.io/api from 0.31.1 to 0.31.2
Bumps [k8s.io/api](https://github.com/kubernetes/api) from 0.31.1 to 0.31.2.
- [Commits](https://github.com/kubernetes/api/compare/v0.31.1...v0.31.2)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-24 14:36:59 +00:00
João Vitor Paes de Barros do Carmo 1945fe609f test: added test for the ephemeral storage labels 2024-10-04 00:07:25 +01:00
João Vitor Paes de Barros do Carmo 1c7c63f1e7 refactor: changed the deploy label to use the convention 2024-10-04 00:06:43 +01:00
João Vitor Paes de Barros do Carmo 3ec739017d feat(deploy): support ephemeral storage requests limits labels 2024-09-27 01:02:46 +01:00
dependabot[bot] eab2c0119e
chore(deps)(deps): bump github.com/compose-spec/compose-go/v2 (#1931)
Bumps [github.com/compose-spec/compose-go/v2](https://github.com/compose-spec/compose-go) from 2.1.6 to 2.2.0.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v2.1.6...v2.2.0)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-24 08:15:09 -04:00
dependabot[bot] 62fe3e7941
chore(deps)(deps): bump k8s.io/api from 0.30.3 to 0.31.1 (#1933)
Bumps [k8s.io/api](https://github.com/kubernetes/api) from 0.30.3 to 0.31.1.
- [Commits](https://github.com/kubernetes/api/compare/v0.30.3...v0.31.1)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-24 08:15:04 -04:00
Kubernetes Prow Robot 5b563e7a80
Merge pull request #1930 from kubernetes/dependabot/go_modules/golang.org/x/tools-0.25.0
chore(deps)(deps): bump golang.org/x/tools from 0.24.0 to 0.25.0
2024-09-13 14:45:13 +01:00
sazriel26 0ccdd74918
[completion] Add header #compdef (#1915) 2024-09-13 09:43:26 -04:00
Kubernetes Prow Robot fa6a5c9c6a
Merge pull request #1927 from kubernetes/dependabot/go_modules/github.com/fsouza/go-dockerclient-1.12.0
chore(deps)(deps): bump github.com/fsouza/go-dockerclient from 1.11.2 to 1.12.0
2024-09-13 14:43:13 +01:00
dependabot[bot] 6a6256ebae
chore(deps)(deps): bump golang.org/x/tools from 0.24.0 to 0.25.0
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.24.0 to 0.25.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.24.0...v0.25.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-10 14:50:38 +00:00
Kubernetes Prow Robot 15a9212961
Merge pull request #1929 from favonia/gid
feature: support UID:GID in the user key
2024-09-05 20:02:50 +01:00
favonia 0ace11079e
feature: support UID:GID in the user key 2024-08-30 13:57:58 -05:00
dependabot[bot] 531e143273
chore(deps)(deps): bump github.com/fsouza/go-dockerclient
Bumps [github.com/fsouza/go-dockerclient](https://github.com/fsouza/go-dockerclient) from 1.11.2 to 1.12.0.
- [Release notes](https://github.com/fsouza/go-dockerclient/releases)
- [Changelog](https://github.com/fsouza/go-dockerclient/blob/main/container_changes_test.go)
- [Commits](https://github.com/fsouza/go-dockerclient/compare/v1.11.2...v1.12.0)

---
updated-dependencies:
- dependency-name: github.com/fsouza/go-dockerclient
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-15 14:27:00 +00:00
dependabot[bot] 51d61400e0
chore(deps)(deps): bump k8s.io/api from 0.30.0 to 0.30.3 (#1910)
Bumps [k8s.io/api](https://github.com/kubernetes/api) from 0.30.0 to 0.30.3.
- [Commits](https://github.com/kubernetes/api/compare/v0.30.0...v0.30.3)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-09 10:24:47 +02:00
dependabot[bot] 844a68bd8c
chore(deps)(deps): bump k8s.io/apimachinery from 0.30.0 to 0.30.3 (#1911)
Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) from 0.30.0 to 0.30.3.
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.30.0...v0.30.3)

---
updated-dependencies:
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-09 10:17:38 +02:00
dependabot[bot] eb3ca67ca2
chore(deps)(deps): bump golang.org/x/tools from 0.20.0 to 0.24.0 (#1918)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.20.0 to 0.24.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.20.0...v0.24.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-09 10:17:19 +02:00
dependabot[bot] 5ca9a11c1a
chore(deps)(deps): bump github.com/compose-spec/compose-go/v2 (#1919)
Bumps [github.com/compose-spec/compose-go/v2](https://github.com/compose-spec/compose-go) from 2.1.0 to 2.1.6.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v2.1.0...v2.1.6)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-09 10:16:57 +02:00
dependabot[bot] 9e34fba8b4
chore(deps)(deps): bump github.com/spf13/cast from 1.6.0 to 1.7.0 (#1920)
Bumps [github.com/spf13/cast](https://github.com/spf13/cast) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/spf13/cast/releases)
- [Commits](https://github.com/spf13/cast/compare/v1.6.0...v1.7.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cast
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-09 10:16:38 +02:00
TessaIO 6e06833968
chore: upgrade fsouza/godockerclient and docker/docker packages (#1921) 2024-08-08 14:47:07 -04:00
Charlie Drage cbf2835db7
1.34.0 Release (#1890) 2024-06-02 19:20:46 -04:00
Charlie Drage 6a5c64600e
docs: update user guide (#1882)
* docs: update user guide

#### What type of PR is this?

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

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

Updates the user guide completely revamp it / describe each label.

#### 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/1584
Closes https://github.com/kubernetes/kompose/issues/1577

#### Special notes for your reviewer:
Signed-off-by: Charlie Drage <charlie@charliedrage.com>

Please check the docs examples / each label that it's okay!

* Update docs/user-guide.md

Co-authored-by: TessaIO <ahmedgrati1999@gmail.com>

* Update docs/user-guide.md

Co-authored-by: TessaIO <ahmedgrati1999@gmail.com>

* Update docs/user-guide.md

Co-authored-by: TessaIO <ahmedgrati1999@gmail.com>

* update capitalization

Signed-off-by: Charlie Drage <charlie@charliedrage.com>

---------

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
Co-authored-by: TessaIO <ahmedgrati1999@gmail.com>
2024-06-02 20:47:10 +02:00
Charlie Drage 55b077ab04
cleanup: removes uneeded annotation when not using network policy (#1884)
#### What type of PR is this?

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

/kind cleanup

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

Removes the network policy annotation which is not needed (we are not
generating network policy)

#### 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/1759

#### Special notes for your reviewer:
2024-06-02 20:46:57 +02:00
Charlie Drage 1f7441845e
bug: fix annotation bug (#1887)
#### What type of PR is this?

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

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

When supplying a label in the compose file, it should stay in the output
too.

#### 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/1885

#### Special notes for your reviewer:

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2024-06-02 20:46:39 +02:00
Charlie Drage 50ec43d1e0
tests: fix flakey tests (#1886)
#### What type of PR is this?

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

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

Fixes the two flakey tests. One which is returning them in random
orders..

The other which is not available to run on mac due to not being able
"access" the folders.

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

N/A

#### Special notes for your reviewer:

N/A

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2024-05-30 11:51:02 -04:00
Charlie Drage b08a83ccbb
chore: fix test file names (#1889)
#### What type of PR is this?

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

/kind cleanup

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

Removes the gen file, removes the old test file.

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

N/A

#### Special notes for your reviewer:

N/A

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2024-05-30 11:50:16 -04:00
Charlie Drage d295662ee4
update owners (#1888)
#### What type of PR is this?

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

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

Update the owners as people who haven't reviewed / approved for a while
keep getting pings / notifications about reviewing.

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

N/A

#### Special notes for your reviewer:

N/A

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2024-05-30 16:20:31 +02: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 29f6765fc6
feature: change example to use non-root (#1879)
#### What type of PR is this?

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

/kind feature

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

This changes our example to use non-root so it runs well on non-root
clusters (ex. openshift).

We also add debugging tools so we can safely explore the container.

/tmp is also added as the directory for the replica or else it fails.

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

N/A

#### Special notes for your reviewer:

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2024-05-29 18:51:37 +02: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
Charlie Drage 3ce4573997
1.33.0 Release (#1866) 2024-04-25 18:46:51 -04:00
Kubernetes Prow Robot 0ba68fb88d
Merge pull request #1865 from sosan/fix-dependencies
update dependencies to last version and go 1.22
2024-04-25 15:40:08 -07:00
Kubernetes Prow Robot c7e783e87d
Merge pull request #1854 from sosan/fix-1853
fix 1853
2024-04-25 15:26:33 -07:00
jose luis 840cfa657d
update to go 1.22 and latest update
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-25 23:53:30 +02:00
jose luis 19860cbea3
update k8s api and apimachinery
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-25 23:41:42 +02:00
jose luis 487dab8712
update go-dockerclient to 1.11.0
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-25 23:33:41 +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 60309de5b2
Merge branch 'main' into fix-1853 2024-04-25 21:14:29 +02:00
Kubernetes Prow Robot e4ca58bcf2
Merge pull request #1848 from sosan/feature-1846-network_mode-service
add networkmode service:
2024-04-25 09:56:29 -07:00
jose luis ec6153e0a5
Merge branch 'main' into fix-1853
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-25 18:02:52 +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
Kubernetes Prow Robot 601900d660
Merge pull request #1852 from sosan/feature-1794-auto-configmaps
add configmaps derived from file and dir
2024-04-25 05:56:20 -07:00
Kubernetes Prow Robot 9cc3327704
Merge pull request #1837 from sosan/feature-1635-with-labels
customize resource name individually via labels kompose.service.name_override
2024-04-25 05:46:21 -07:00
cuiyourong d274f9947d
chore: fix some typos in comments (#1863)
Signed-off-by: cuiyourong <cuiyourong@gmail.com>
2024-04-25 08:41:58 -04:00
jose luis 8ee944c2be
Merge branch 'main' into feature-1846-network_mode-service 2024-04-22 15:46:45 +02:00
jose luis 2029409b73
changed compose types to version 2
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-22 13:56:55 +02:00
jose luis a050907ef4
Merge branch 'main' into feature-1635-with-labels 2024-04-22 13:47:24 +02:00
jose luis bbd91be049
Merge branch 'main' into feature-1794-auto-configmaps
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-22 13:37:00 +02:00
jose luis 7713c9d43d
Merge branch 'main' into fix-1853
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-22 12:57:36 +02:00
jose luis fb364020c2
added eof file
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-22 12:54:02 +02:00
Kubernetes Prow Robot cdcb0e7f61
Merge pull request #1847 from sosan/feature-1631-add-hpa
Feature 1635 - added labels to generate HPA
2024-04-19 05:24:52 -07:00
racequite 58a82b6f45
chore: fix function name in comment (#1861)
Signed-off-by: racequite <quiterace@gmail.com>
2024-04-19 09:58:33 +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 154c6f63c0
add e2e to check env var with status value
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-11 15:59:22 +02:00
jose luis a19dd1416e
added \n
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-10 20:56:50 +02:00
jose luis d43e210f04
Merge branch 'main' into feature-1846-network_mode-service
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-10 18:21:25 +02:00
jose luis a589f1d6e9
Merge branch 'main' into feature-1635-with-labels 2024-04-10 17:29:38 +02:00
jose luis e4ccf2edc9
rectified markdown spacing on columns
reformat k8sutils_tests.go

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-10 13:39:28 +02:00
jose luis 405ab61479
Merge branch 'main' into feature-1631-add-hpa 2024-04-10 13:24:35 +02:00
jose luis 1010e1a916
Merge branch 'main' into feature-1794-auto-configmaps 2024-04-10 00:50:37 +02:00
jose luis e9f64cfd81
added more e2e, more tests
fallback to skip volume mount and log warning when path cannot be resolved, as /sys, /root, /var/lib/docker

in e2e TestMultipleContainersInPod directory /data replaced with /data-dir

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-10 00:33:57 +02:00
Jose Luis c9c1080306
adds a label for initContainers, test and user-guide (#1840)
* adds a label for initContainers, test and user-guide

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>

* solved suggestion version from 2 to 3, coments

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>

* test e2e

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>

* add target to kompose build

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>

* chore(deps)(deps): bump golang.org/x/tools from 0.16.1 to 0.19.0 (#1836)

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.16.1 to 0.19.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.16.1...v0.19.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* changed var names contaers to containers
changed labels to kompose.init.container.name, kompose.init.container.image, kompose.init.container.command
fixed documentation, tests and e2e
also merged main with new commits to this branch

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>

---------

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kubernetes Prow Robot <20407524+k8s-ci-robot@users.noreply.github.com>
2024-04-08 08:49:09 -04:00
jose luis 4cd0b268fc
add configmaps derived from file and dir
add tests and e2e
function isconfigfile check if we need to use configmap and mount in readonly
readonly not asigned because not fail e2e

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-07 21:18:01 +02:00
jose luis 8ff0f334eb
fix EOF, DefaultMaxReplicas set to 3, extended user guide about hpa, more tests
add warning in situations like:
- maxreplicas < minreplicas
- value from label < 0
- validate percentage in cpu, memory metrics
2024-04-04 20:21:00 +02:00
jose luis 04acbf111f
added tests
add e2e
2024-04-03 19:31:46 +02:00
jose luis 516930ccee
added more tests
e2e tests
fixed name labels
2024-04-02 17:31:19 +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
jose luis a38f7f9ea3
added this labels:
kompose.hpa.minreplicas
kompose.hpa.maxreplicas
kompose.hpa.cpu
kompose.hpa.memory

documentated labels user_guide.md

generate custom metrics from cpu, memory and set min/max replicas

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-03-26 20:58:57 +01:00
Ambrose Chua f291caa00d
Add tests for parseEnvFiles 2024-03-25 10:34:39 +08:00
Kubernetes Prow Robot 14152d4a81
Merge pull request #1841 from sosan/fix-issue-1839
Adds ability to specify the stage/target of a multistage dockerfile
2024-03-21 05:18:09 -07:00
Ambrose Chua 5ba743afea
chore(deps): bump minimum Go version to 1.21 2024-03-19 15:06:03 +08:00
Ambrose Chua ea485a7806
chore(deps): bump github.com/compose-spec/compose-go 2024-03-19 14:34:58 +08:00
dependabot[bot] ad04bc0894
chore(deps)(deps): bump golang.org/x/tools from 0.16.1 to 0.19.0 (#1836)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.16.1 to 0.19.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.16.1...v0.19.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-16 22:08:35 +01: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
TessaIO 497809c81c
chore: unify e2e tests to compose yaml (#1834)
* chore: unify e2e tests to compose yaml

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

* chore: update tests_new.sh to reflect changes of files names

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

---------

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2024-03-01 15:21:54 -05:00
TessaIO 456c6f67ae
chore: replace AhmedGrati with TessaIO (#1835)
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2024-03-01 15:20:10 -05:00
Kubernetes Prow Robot b2514e1c81
Merge pull request #1831 from realgam3/fix-configmap-volumes
fix issues #1829, #1830
2024-02-20 20:45:04 -08:00
Jose Luis c0f7e910c8
in case /run/secrets/MARIADB_PASSWORD and secrets: MARIADB_PASSWORD are in uppercase, reformat the value of MARIADB_PASSWORD to mariadb-password. Also, reformat the secretconfig of the secrets. getSecretPathsLegacy returns secretSubPath. (#1826)
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-02-20 23:35:18 -05:00
Tomer Zait db6a4d7ce1 fix issues #1829, #1830 2024-02-18 10:50:15 +02:00
Kubernetes Prow Robot d872afb377
Merge pull request #1824 from thelamer/dockerfile-update
#1821 update Dockerfile to alwyas use head Alpine
2024-02-12 12:12:28 -08:00
Kubernetes Prow Robot b768a43fbe
Merge pull request #1799 from sosan/fix-issue-1778
fix issue 1778
2024-02-12 11:23:57 -08:00
Kubernetes Prow Robot 4211798ac6
Merge pull request #1823 from utkarsh-singh1/update-readme-md-and-installation-md
Cleanup README.md
2024-02-12 11:20:56 -08:00
thelamer 61680d1b55 #1821 update Dockerfile to alwyas use head Alpine 2024-02-12 10:37:34 -08:00
utkarsh-singh1 2f655492a1 Update /docs/installation.md
Signed-off-by: utkarsh-singh1 <utkarsh.singh1@india.nec.com>
2024-02-12 16:06:02 +05:30
utkarsh-singh1 8bdd22d531 Remove Operating Systems where kompose binary does not exist or available in old versions
Signed-off-by: utkarsh-singh1 <utkarsh.singh1@india.nec.com>
2024-02-12 15:09:26 +05:30
jose luis 6ce08bb234
merged from main and dummy coments 2024-02-07 19:40:53 +01:00
Jose Luis 182e0ce294
Merge branch 'kubernetes:main' into fix-issue-1778 2024-02-07 18:35:28 +01:00
jose luis b095982ddf
adds a unit test for the TestKubernetes_CreateSecrets function where secrets are created in Kubernetes from a KomposeObject, and secrets are taken from a CNAME file. Also, a newSecrets function is added to generate secrets from the provided configuration
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-02-07 18:29:33 +01:00
Kubernetes Prow Robot b3383bd2b0
Merge pull request #1819 from realgam3/fix-client
fix client/convert (issue https://github.com/kubernetes/kompose/issue
2024-02-05 06:09:26 -08:00
Tomer Zait 4d4ff4e394 fix client/convert (issue https://github.com/kubernetes/kompose/issues/1818) 2024-02-04 12:07:05 +02:00
Kubernetes Prow Robot 52e5dbda55
Merge pull request #1798 from sosan/fix-issue-1793
fix issue 1793
2024-02-01 06:35:27 -08:00
Kubernetes Prow Robot e86959459c
Merge pull request #1816 from martinjirku/1815-add-trademarks
docs(1815): add trademarks link ref to linux foundation
2024-02-01 06:32:18 -08:00
Martin Jirku 8b9fcb3826
docs(1815): add trademarks link ref to linux foundation
Signed-off-by: Martin Jirku <martin@jirku.sk>
2024-01-27 22:12:51 +01:00
jose luis b544c17472
fix issue 1778
* fix issue https://github.com/kubernetes/kompose/issues/1778
*add tests with hardcoded values to mokup file access

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-01-27 18:47:54 +01:00
jose luis 578fa72a9a
fix issue 1793
* fix issue 1793  https://github.com/kubernetes/kompose/issues/1793
*add tests

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>

formated k8utils_test.go

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>

labels formatted as name"-"envName to match fixtures when performing the gitHub action

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>

removed this piece code because apply it later, and it is redundant

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>

Refactor test in k8sutils_test.go to extract the last 63 characters. This addresses the impact of the removed code that previously truncated the input with if len(envName) > 63 { envName = envName[len(envName)-63:] }

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>

changed to name function to getUsableNameEnvFile

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>

fix issue 1793

* fix issue 1793  https://github.com/kubernetes/kompose/issues/1793
*add tests

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>

labels formatted as name"-"envName to match fixtures when performing the gitHub action

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>

changed to name function to getUsableNameEnvFile

Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-01-24 23:41:01 +01:00
Kubernetes Prow Robot 3499798b5a
Merge pull request #1813 from leovct/chore/update-kompose-convert-help
chore: update `kompose convert --help`
2024-01-23 14:29:39 +01:00
leovct b350d95c08
chore: update `kompose convert --help` 2024-01-22 15:51:49 +01:00
Kubernetes Prow Robot 8b3595ec5f
Merge pull request #1808 from martinjirku/1711-help-page
docs(cli): introduce examples in the kompose command
2024-01-19 01:15:20 +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
Charlie Drage 5fa804c274
docs: update readme (#1807)
#### What type of PR is this?

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

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

Updates the readme by:
* Removing small amount of references to Docker since Compose is an open spec
* Changing to correct redis terminology

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

N/A

#### Special notes for your reviewer:

N/A

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2024-01-18 16:11:56 +01:00
Charlie Drage 765fde2540
1.32.0 Release (#1811) 2024-01-18 10:02:06 -05: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
Kubernetes Prow Robot f11ce5491e
Merge pull request #1806 from realgam3/cronjob
Add Labels for CronJob https://github.com/kubernetes/kompose/issues/1795
2024-01-17 21:09:24 +01:00
Tomer Zait e8671e9779 remove example files 2024-01-17 01:20:47 +02:00
Tomer Zait cd6a318896 Add Labels for CronJob https://github.com/kubernetes/kompose/issues/1795 2024-01-16 23:44:49 +02:00
Charlie Drage 770da91eec
change wording for redis leader (#1804)
#### What type of PR is this?

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

/kind documentation

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

We should not be using the outdated redis terms, instead redis now uses
leader / replica.

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

#### Special notes for your reviewer:
N/A

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2024-01-16 09:49:54 -05:00
Charlie Drage bd868aac79
2024 copyright change (#1805)
#### What type of PR is this?

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

/kind documentation

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

It's 2024 now

#### 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 #

#### Special notes for your reviewer:

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2024-01-16 09:49:25 -05:00
Charlie Drage 575066d3ed
Add new examples to kompose (#1803)
#### What type of PR is this?

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

/kind cleanup

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

Fixes the current broken examples by:

* Removing all the old incompatible ones (we do not really support v3
  anymore or v2... since switching libraries)
* Uses quay.io/kompose/web as our front end example which is a fork of
  the guestbook-go kubernetes examples

#### 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/1757

#### Special notes for your reviewer:

Test using docker-compose (you'll see it come up!), then try with
kompose :)

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2024-01-16 09:37:31 -05:00
Kubernetes Prow Robot 5f0c1c9c50
Merge pull request #1801 from AhmedGrati/fix-e2e-tests-configmap-pod
test: fix e2e tests for configmap pod test
2024-01-15 21:56:09 +01:00
AhmedGrati b66c54e2ae test: fix e2e tests for configmap pod test
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2024-01-14 10:46:03 +01:00
Kubernetes Prow Robot 7f670b074d
Merge pull request #1787 from dipesh-rawat/add-vex-feed
Initialize OpenVEX feed
2024-01-03 22:25:27 +01:00
Kubernetes Prow Robot bd568ba30b
Merge pull request #1775 from martinjirku/1758-remove-useless-keys-in-output
feat(1765): remove useless keys from the output yml
2024-01-03 22:23:16 +01:00
Tomer Zait 92ca12ae5b
fix issue https://github.com/kubernetes/kompose/issues/1683 (#1684)
* fix issue https://github.com/kubernetes/kompose/issues/1683

* add tests, die if inputfiles not specified

* fix GetComposeFileDir function and use it

* use fixed GetComposeFileDir instead of filepath.Dir

* return error instead of fatal

* add pod configmap creation to openshift
2024-01-02 14:48:59 -05:00
Martin Jirku f80ad97307
feat(1765): update tests, move unit test to proper file, improve removeEmptyInterfaces algo
Signed-off-by: Martin Jirku <martin@jirku.sk>
2024-01-01 12:07:44 +01:00
dependabot[bot] 63f60e66fe
chore(deps)(deps): bump github.com/spf13/cast from 1.5.1 to 1.6.0 (#1769)
Bumps [github.com/spf13/cast](https://github.com/spf13/cast) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/spf13/cast/releases)
- [Commits](https://github.com/spf13/cast/compare/v1.5.1...v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cast
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-20 12:56:25 +01:00
dependabot[bot] c27b3a9195
chore(ci)(deps): bump actions/setup-go from 4 to 5 (#1776)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-20 12:55:58 +01:00
dependabot[bot] 055170fe80
chore(deps)(deps): bump golang.org/x/tools from 0.15.0 to 0.16.1 (#1781)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.15.0 to 0.16.1.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.15.0...v0.16.1)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-20 12:54:38 +01:00
dependabot[bot] f568baf5ad
chore(ci)(deps): bump actions/upload-artifact from 3 to 4 (#1784)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-20 12:54:08 +01:00
dependabot[bot] d333e58f5d
chore(deps)(deps): bump github.com/containerd/containerd (#1791)
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd) from 1.6.18 to 1.6.26.
- [Release notes](https://github.com/containerd/containerd/releases)
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md)
- [Commits](https://github.com/containerd/containerd/compare/v1.6.18...v1.6.26)

---
updated-dependencies:
- dependency-name: github.com/containerd/containerd
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-20 12:53:37 +01:00
Dipesh Rawat 7b0464edab
Add VEX Feed 2023-12-15 19:11:43 +00:00
Martin Jirku 3a818f4b01
feat(1765): remove useless keys from the outpu yml
Signed-off-by: Martin Jirku <martin@jirku.sk>
2023-12-07 08:30:32 +01:00
Kubernetes Prow Robot af06917dbb
Merge pull request #1774 from utkarsh-singh1/update-docs-installation-md
Removed fedora installation instruction from installation.md
2023-12-04 21:11:15 +01:00
utkarsh-singh1 9ecf2f919e Removed fedora installation instruction from installation.md
Signed-off-by: utkarsh-singh1 <utkarsh.singh1@india.nec.com>
2023-12-05 00:03:25 +05:30
Kubernetes Prow Robot 0405de4f6d
Merge pull request #1768 from kubernetes/dependabot/go_modules/github.com/compose-spec/compose-go-1.20.2
chore(deps)(deps): bump github.com/compose-spec/compose-go from 1.20.1 to 1.20.2
2023-11-24 20:34:06 +01:00
Kundan Kumar fa2fc69e1f
updated link for daemonset (#1767) 2023-11-24 18:34:30 +01:00
dependabot[bot] 22c64fe738
chore(deps)(deps): bump github.com/compose-spec/compose-go
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.20.1 to 1.20.2.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.20.1...v1.20.2)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-22 14:34:27 +00:00
Kundan Kumar 42d5d1e349
deleted CHANGELOG.md (#1765) 2023-11-21 15:11:29 -05:00
dependabot[bot] dfdc44b364
chore(deps)(deps): bump github.com/compose-spec/compose-go (#1761)
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.20.0 to 1.20.1.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.20.0...v1.20.1)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-16 18:15:28 +01:00
dependabot[bot] 0a8c682e4f
chore(deps)(deps): bump golang.org/x/tools from 0.14.0 to 0.15.0 (#1760)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.14.0 to 0.15.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.14.0...v0.15.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-16 18:15:07 +01:00
dependabot[bot] 74ab4f21b4
chore(deps)(deps): bump k8s.io/api from 0.28.2 to 0.28.4 (#1762)
Bumps [k8s.io/api](https://github.com/kubernetes/api) from 0.28.2 to 0.28.4.
- [Commits](https://github.com/kubernetes/api/compare/v0.28.2...v0.28.4)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-16 18:14:37 +01:00
AhmedGrati fd3fee64fb
fix: make resources names lowercase (#1755)
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-11-08 11:29:39 +01:00
Kubernetes Prow Robot ce0288b7bc
Merge pull request #1754 from AhmedGrati/fix-annotations-disable
fix: disable annotations when flag `--with-kompose-annotation=false` is specified
2023-11-07 04:16:35 +01:00
Kubernetes Prow Robot 293f232e5e
Merge pull request #1753 from AhmedGrati/feat-add-COMPOSE_FILE-env-variable
feat: Add `COMPOSE_FILE` env variable
2023-11-07 04:13:44 +01:00
Kubernetes Prow Robot 900f0b0b5e
Merge pull request #1752 from AhmedGrati/1745-add-test-for-pr-1743
test: add unit-test for PR 1743 v2
2023-11-07 04:10:58 +01:00
dependabot[bot] f108b02318
chore(deps)(deps): bump github.com/spf13/cobra from 1.7.0 to 1.8.0 (#1756)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-06 16:19:59 +01:00
AhmedGrati a8183a22f7 fix: disable annotations when flag is specified
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-11-05 19:31:58 +01:00
AhmedGrati 867adcf83a docs: add COMPOSE_FILE env variable to user-guide.md
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-11-05 15:31:39 +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
AhmedGrati d633c31e15 test: add unit-tests for FormatEnvName function
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-11-05 13:20:25 +01:00
AhmedGrati 771e564645 test: add unit-tests for FormatEnvName function
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-11-05 13:20:25 +01:00
Kubernetes Prow Robot 032b61a656
Merge pull request #1750 from AhmedGrati/1748-bug-kompose-should-raise-and-error-when-profiles-are-required
chore: add warning when no service is selected
2023-11-02 00:36:41 +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
Kubernetes Prow Robot 3bbb75f48c
Merge pull request #1746 from shubhindia/fix/drop-status-field
remove status field from generated yaml
2023-10-30 23:56:41 +01:00
dependabot[bot] 35a9885d62
chore(deps)(deps): bump golang.org/x/tools from 0.13.0 to 0.14.0 (#1723)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-30 18:02:02 +01:00
dependabot[bot] 44c98c82b2
chore(deps)(deps): bump github.com/compose-spec/compose-go (#1740)
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.19.0 to 1.20.0.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.19.0...v1.20.0)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-30 18:01:36 +01:00
dependabot[bot] 17f0f8f26e
chore(deps)(deps): bump github.com/docker/docker (#1747)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.3+incompatible to 24.0.7+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v23.0.3...v24.0.7)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-30 17:42:39 +01:00
shubhindia f5278904cc mark regexp hack to be removed in future
Signed-off-by: shubhindia <shubhindia123@gmail.com>
2023-10-30 19:59:48 +05:30
shubhindia 204dff4dab drop openshift status as well
Signed-off-by: shubhindia <shubhindia123@gmail.com>
2023-10-30 15:16:24 +05:30
shubhindia 9d3dfeab41 drop status field from test yamls
Signed-off-by: shubhindia <shubhindia123@gmail.com>
2023-10-29 12:08:59 +05:30
shubhindia 21d8dc8a81 drop status field from yamls
Signed-off-by: shubhindia <shubhindia123@gmail.com>
2023-10-29 11:53:19 +05:30
Thijs Broersen 7826534666
fix: env_file configmap name length (#1743)
* fix: env_file configmap name length

fix filename to configmap name transformer

* fix configmap names in tests

* add env-multiple fixture and test

* adjust to test

* disable env-multiple suite
2023-10-27 10:48:55 +01:00
Kubernetes Prow Robot b3a3656c73
Merge pull request #1744 from AhmedGrati/fix-e2e-determinstic-output
fix: make transforming more deterministic
2023-10-25 00:38:50 +02:00
AhmedGrati 53de2c44fd fix failing unit tests
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-10-24 23:08:34 +01:00
AhmedGrati fa96d2b80a fix: remove e2e flakiness by making the loop deterministic
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-10-24 16:34:28 +01:00
AhmedGrati 0a3b1897c0 fix: remove e2e flakiness by making the loop deterministic
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-10-24 16:31:22 +01:00
AhmedGrati 3172bc05b5 fix: remove e2e flakiness by making the loop deterministic
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-10-24 16:19:22 +01:00
dependabot[bot] 404b0caae7
chore(deps)(deps): bump k8s.io/apimachinery from 0.28.2 to 0.28.3 (#1742)
Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) from 0.28.2 to 0.28.3.
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.28.2...v0.28.3)

---
updated-dependencies:
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-24 12:52:06 +01:00
Kubernetes Prow Robot f722bfb6c1
Merge pull request #1737 from AhmedGrati/fix-e2e-test
fix e2e test
2023-10-17 14:21:40 +02:00
AhmedGrati 37a1dc26ad fix: update flaky e2e test
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-10-15 12:11:45 +01:00
AhmedGrati 40e19877ab fix: update flaky e2e test
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-10-15 11:35:44 +01:00
AhmedGrati 1dc9f0bc93 fix: add exit 1 to spot failed errors
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-10-15 11:20:56 +01:00
AhmedGrati 6725250b33 chore: install dyff in CI pipeline
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-10-15 00:58:52 +01:00
AhmedGrati e86dd3f16a chore: install dyff in CI pipeline
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-10-15 00:57:05 +01:00
AhmedGrati 615e0af371 chore: install dyff in CI pipeline
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-10-15 00:50:52 +01:00
AhmedGrati 7d99530025 chore: install dyff in CI pipeline
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-10-15 00:40:19 +01:00
AhmedGrati 422e450615 chore: install dyff in CI pipeline
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-10-15 00:37:42 +01:00
AhmedGrati a1eec7bbe8 chore: install dyff in CI pipeline
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-10-15 00:34:23 +01:00
AhmedGrati 1b6d901aa0 chore: install dyff in CI pipeline
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-10-15 00:26:11 +01:00
AhmedGrati 0367b73b93 chore: install dyff in CI pipeline
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-10-15 00:04:14 +01:00
AhmedGrati c76361bd99 fix: add exit on error for e2e tests
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-10-15 00:01:27 +01:00
AhmedGrati 4c203d941e fix: use dyff to check that yaml files are equal
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-10-14 18:24:19 +01:00
dependabot[bot] 1f4b06988e
chore(deps)(deps): bump github.com/google/go-cmp from 0.5.9 to 0.6.0 (#1733)
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.5.9 to 0.6.0.
- [Release notes](https://github.com/google/go-cmp/releases)
- [Commits](https://github.com/google/go-cmp/compare/v0.5.9...v0.6.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-cmp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-14 12:00:50 +01:00
dependabot[bot] 6d14cf7bc8
chore(deps)(deps): bump golang.org/x/net from 0.15.0 to 0.17.0 (#1734)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.15.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.15.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-14 12:00:29 +01:00
Charlie Drage 68443971f3
docs: update installation page to have arm64 mention (#1736)
#### What type of PR is this?

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

/kind documentation

Updates the documentation to mention arm64.

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

N/A

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

N/A

#### Special notes for your reviewer:

N/A

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-10-12 14:23:43 -04:00
Charlie Drage a92241f799
1.31.2 Release (#1735) 2023-10-12 08:54:11 -04:00
AhmedGrati 115f3862fc fix: update part of e2e tests
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-10-11 20:09:07 +01:00
Charlie Drage 09dc978e8e
only add namespace if specified (#1731)
#### What type of PR is this?

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

/kind bug

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

When we generate the YAML, we should NOT add namespace by default,
namespace should only be added if it has been specified via the command
line.

#### 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/1729

#### Special notes for your reviewer:

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-10-11 10:29:55 -04:00
Charlie Drage 46dcb9181b
1.31.1 Release (#1726) 2023-10-06 13:36:09 -04: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
Charlie Drage a04ecdb9e8
1.31.0 Release (#1714) 2023-09-29 11:42:16 -04:00
Kubernetes Prow Robot ddd5f33745
Merge pull request #1709 from axel7083/main
feat: adding support for --profile cmd option
2023-09-26 06:45:26 -07:00
axel7083 134db384b2
Apply suggestions from code review
Co-authored-by: Charlie Drage <charlie@charliedrage.com>
2023-09-26 08:41:47 +02:00
dependabot[bot] 1e9713dd48
chore(deps)(deps): bump gotest.tools/v3 from 3.5.0 to 3.5.1 (#1710)
Bumps [gotest.tools/v3](https://github.com/gotestyourself/gotest.tools) from 3.5.0 to 3.5.1.
- [Release notes](https://github.com/gotestyourself/gotest.tools/releases)
- [Commits](https://github.com/gotestyourself/gotest.tools/compare/v3.5.0...v3.5.1)

---
updated-dependencies:
- dependency-name: gotest.tools/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25 20:00:19 -04:00
axel7083 821b1afbf6 fix: typo 2023-09-21 22:10:07 +02:00
axel7083 0302093e0a fix: removing unused property 2023-09-21 22:09:18 +02:00
axel7083 4592dd2e23 Merge remote-tracking branch 'origin/main' 2023-09-21 22:04:26 +02:00
axel7083 82eb2a8e10 test: adding tests for convert 2023-09-21 22:03:51 +02:00
axel7083 a712272be9
Delete output.yaml 2023-09-21 21:37:14 +02:00
Kubernetes Prow Robot ccb98b998a
Merge pull request #1712 from kubernetes/dependabot/go_modules/github.com/compose-spec/compose-go-1.19.0
chore(deps)(deps): bump github.com/compose-spec/compose-go from 1.18.4 to 1.19.0
2023-09-21 11:58:27 -07:00
dependabot[bot] 4e8c57a39f
chore(deps)(deps): bump github.com/compose-spec/compose-go
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.18.4 to 1.19.0.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.18.4...v1.19.0)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-21 14:27:35 +00:00
axel7083 a7c63a650c Adding support for --profile cmd option 2023-09-17 17:41:05 +02:00
dependabot[bot] 708b222ed5
chore(deps)(deps): bump golang.org/x/tools from 0.12.0 to 0.13.0 (#1705)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-15 08:10:58 +01:00
dependabot[bot] 8a45af2b18
chore(deps)(deps): bump k8s.io/api from 0.28.1 to 0.28.2 (#1707)
Bumps [k8s.io/api](https://github.com/kubernetes/api) from 0.28.1 to 0.28.2.
- [Commits](https://github.com/kubernetes/api/compare/v0.28.1...v0.28.2)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-15 08:10:33 +01:00
dependabot[bot] fd16948969
chore(deps)(deps): bump k8s.io/apimachinery from 0.28.1 to 0.28.2 (#1706)
Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) from 0.28.1 to 0.28.2.
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.28.1...v0.28.2)

---
updated-dependencies:
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-14 21:55:59 +01:00
dependabot[bot] 5adacf25c2
chore(deps)(deps): bump github.com/compose-spec/compose-go (#1703)
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.18.3 to 1.18.4.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.18.3...v1.18.4)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 17:04:51 +01:00
dependabot[bot] 090d760bca
chore(ci)(deps): bump actions/checkout from 3 to 4 (#1704)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 17:04:27 +01:00
dependabot[bot] d8227a1de0
chore(deps)(deps): bump github.com/compose-spec/compose-go (#1701)
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.18.2 to 1.18.3.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.18.2...v1.18.3)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-30 15:59:28 +01: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
dependabot[bot] 0fa1c1e032
chore(deps)(deps): bump k8s.io/api from 0.28.0 to 0.28.1 (#1700)
Bumps [k8s.io/api](https://github.com/kubernetes/api) from 0.28.0 to 0.28.1.
- [Commits](https://github.com/kubernetes/api/compare/v0.28.0...v0.28.1)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-25 17:42:59 +01:00
dependabot[bot] cb82ef5211
chore(deps)(deps): bump gotest.tools/v3 from 3.4.0 to 3.5.0 (#1697)
Bumps [gotest.tools/v3](https://github.com/gotestyourself/gotest.tools) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/gotestyourself/gotest.tools/releases)
- [Commits](https://github.com/gotestyourself/gotest.tools/compare/v3.4.0...v3.5.0)

---
updated-dependencies:
- dependency-name: gotest.tools/v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-24 15:45:38 +01:00
AhmedGrati ea80734f91
Feat: add kompose client PoC (#1593)
* fix: support host port and protocol in functional tests

* feat: add kompose client with options

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

* test: add options unit tests

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

* feat: add partial convert options

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

* feat: finish convert process

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

* test: finish unit tests of the kompose client

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

* remove unecessary changes

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

* feat: add generate network policies to client

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

* update go mod

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

---------

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-08-24 11:38:21 +01:00
dependabot[bot] b83d4d4094
chore(deps)(deps): bump k8s.io/api from 0.27.3 to 0.28.0 (#1694)
Bumps [k8s.io/api](https://github.com/kubernetes/api) from 0.27.3 to 0.28.0.
- [Commits](https://github.com/kubernetes/api/compare/v0.27.3...v0.28.0)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-23 15:50:30 +01:00
Lctrs e9c6ecc03c
fix(dependabot): remove obsolete ignore list for go packages (#1685)
Follow #1677
2023-08-23 15:21:34 +01:00
dependabot[bot] 247e5e5541
chore(deps)(deps): bump github.com/compose-spec/compose-go (#1692)
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.18.1 to 1.18.2.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.18.1...v1.18.2)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-23 15:21:13 +01:00
dependabot[bot] db56767df3
chore(deps)(deps): bump golang.org/x/tools from 0.11.1 to 0.12.0 (#1686)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.11.1 to 0.12.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.11.1...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-11 16:58:50 +01:00
dependabot[bot] 21ee2ecb5f
chore(deps)(deps): bump github.com/compose-spec/compose-go (#1690)
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.17.0 to 1.18.1.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.17.0...v1.18.1)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-11 16:58:10 +01:00
dependabot[bot] 17fbe3b463
chore(deps)(deps): bump golang.org/x/tools from 0.11.0 to 0.11.1 (#1681)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.11.0 to 0.11.1.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.11.0...v0.11.1)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-02 16:06:19 +01:00
Charlie Drage fbdfdda45d update 2023-08-01 11:39:08 -04:00
Charlie Drage c77a9bdfc9
replace wording (#1682)
#### What type of PR is this?

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

replaces wording to replica

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

#### 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 #

#### Special notes for your reviewer:

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-08-01 11:34:57 -04:00
AhmedGrati 1f1fc20204
Fix loading env file (#1679)
* fix: update loading 'env_file' of docker_compose

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

* test: add functional tests for loading env_file

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

---------

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-07-26 14:03:15 -04:00
Charlie Drage 2c3f2939d4
update redis wording to replica (#1680)
#### What type of PR is this?

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

We should be using replica to indicate a new node of redis.

Unfortunatley gcr still hasn't pushed another image, so we will still
have to use registry.k8s.io/redis-slave:v2

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

N/A

#### 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 #

N/A

#### Special notes for your reviewer:

N/A

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-07-25 14:32:20 -04:00
payamQorbanpour 554a0ea31e
Upgrade Kubernetes module to the latest version v0.27.3 (#1677) 2023-07-19 17:23:37 +01:00
dependabot[bot] 317ba2922e
chore(deps)(deps): bump github.com/compose-spec/compose-go (#1675)
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.16.0...v1.17.0)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-18 16:07:33 +01:00
Charlie Drage 8e67152d59
Update website with correct links (#1673)
#### What type of PR is this?

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

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

Updates the site with correct architecture link

#### 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 #

#### Special notes for your reviewer:

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-07-18 14:23:22 +01:00
Charlie Drage 05f3d40056
update release script again with a reminder for docs update (#1674)
#### What type of PR is this?

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

update release script again with a reminder for docs update

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

#### 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 #

#### Special notes for your reviewer:

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-07-18 09:08:53 -04:00
Charlie Drage 9d8dcb5184
1.30.0 Release (#1672) 2023-07-18 08:46:19 -04: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
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
Kubernetes Prow Robot 008422cf15
Merge pull request #1666 from AhmedGrati/fix-missing-image-pull-secrets
fix missing image pull secrets
2023-07-16 10:49:06 -07:00
Kubernetes Prow Robot e121826f0d
Merge pull request #1669 from AhmedGrati/fix-ingress-host-generation
fix: remove lower case of the host generation
2023-07-16 10:47:07 -07:00
AhmedGrati 61b4e6b797 test: add functional tests for read only fs support
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-07-14 16:24:43 +01:00
AhmedGrati c9f3ff0190 test: add unit-test for read only fs support
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-07-14 16:18:29 +01: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 7255eb5923 fix missing image pull secrets
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-07-13 12:22:02 +01:00
dependabot[bot] 21509824ff
chore(deps)(deps): bump github.com/compose-spec/compose-go (#1665)
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.15.1 to 1.16.0.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.15.1...v1.16.0)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-10 15:24:18 +01:00
dependabot[bot] ff9f8ca9d8
chore(deps)(deps): bump golang.org/x/tools from 0.10.0 to 0.11.0 (#1664)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-06 19:53:22 +01:00
Avinash Ananth Narayan R 3a574a7ecd
Add additional Windows install method (#1656) 2023-07-05 15:10:25 -04:00
Charlie Drage 3783238f32
update release script from master to main (#1662)
#### What type of PR is this?

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

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

Updates the release script to use main instead of master

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

N/A

#### Special notes for your reviewer:

N/A

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-07-05 15:10:03 -04:00
Charlie Drage 02ffe65d86
1.29.0 Release (#1661) 2023-07-05 14:53:32 -04: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
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
Kundan Kumar d1e32e7d7d
build link update (#1659) 2023-07-03 20:26:29 +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
dependabot[bot] 77f5aba9ee
chore(deps)(deps): bump github.com/compose-spec/compose-go (#1654)
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.15.0 to 1.15.1.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.15.0...v1.15.1)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-30 16:15:45 +01:00
dependabot[bot] 2578e8dbb6
chore(deps)(deps): bump github.com/compose-spec/compose-go (#1653)
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.14.0...v1.15.0)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-21 16:19:43 +01:00
dependabot[bot] 9bc1ceecad
chore(deps)(deps): bump golang.org/x/tools from 0.9.3 to 0.10.0 (#1651)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.9.3 to 0.10.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.9.3...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-16 16:01:23 +01:00
dependabot[bot] 66369c8e81
chore(deps)(deps): bump golang.org/x/tools from 0.9.1 to 0.9.3 (#1649)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.9.1 to 0.9.3.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.9.1...v0.9.3)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-06 10:51:12 +01:00
dependabot[bot] a61d32f732
chore(deps)(deps): bump github.com/sirupsen/logrus from 1.9.2 to 1.9.3 (#1650)
Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/sirupsen/logrus/releases)
- [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sirupsen/logrus/compare/v1.9.2...v1.9.3)

---
updated-dependencies:
- dependency-name: github.com/sirupsen/logrus
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-06 10:50:51 +01:00
dependabot[bot] 755e183181
chore(deps)(deps): bump github.com/spf13/viper from 1.15.0 to 1.16.0 (#1647)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.15.0...v1.16.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-31 10:05:23 +01:00
dependabot[bot] 95c7f78e2e
chore(deps)(deps): bump github.com/compose-spec/compose-go (#1646)
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.13.5 to 1.14.0.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.13.5...v1.14.0)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-26 16:25:22 +01:00
dependabot[bot] ad133aed81
chore(deps)(deps): bump github.com/sirupsen/logrus from 1.9.1 to 1.9.2 (#1644)
Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.9.1 to 1.9.2.
- [Release notes](https://github.com/sirupsen/logrus/releases)
- [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sirupsen/logrus/compare/v1.9.1...v1.9.2)

---
updated-dependencies:
- dependency-name: github.com/sirupsen/logrus
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-18 19:00:23 +01:00
dependabot[bot] bbf21886aa
chore(deps)(deps): bump github.com/sirupsen/logrus from 1.9.0 to 1.9.1 (#1643)
Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/sirupsen/logrus/releases)
- [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sirupsen/logrus/compare/v1.9.0...v1.9.1)

---
updated-dependencies:
- dependency-name: github.com/sirupsen/logrus
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-17 16:54:26 +01:00
dependabot[bot] 511ffcb04e
chore(deps)(deps): bump github.com/spf13/cast from 1.5.0 to 1.5.1 (#1640)
Bumps [github.com/spf13/cast](https://github.com/spf13/cast) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/spf13/cast/releases)
- [Commits](https://github.com/spf13/cast/compare/v1.5.0...v1.5.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/cast
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-17 00:17:26 +01:00
dependabot[bot] 233dd1299b
chore(deps)(deps): bump github.com/compose-spec/compose-go (#1641)
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.13.4 to 1.13.5.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.13.4...v1.13.5)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-17 00:17:00 +01:00
Jakob Jul Elben 540f54662c
Update user-guide.md (#1637) 2023-05-13 22:23:45 +01:00
dependabot[bot] af57d89783
chore(deps)(deps): bump golang.org/x/tools from 0.8.0 to 0.9.1 (#1639)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.8.0 to 0.9.1.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.8.0...v0.9.1)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-13 22:22:25 +01:00
dependabot[bot] 41c9c23b2b
chore(deps)(deps): bump github.com/compose-spec/compose-go (#1633)
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.13.2 to 1.13.4.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.13.2...v1.13.4)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-20 18:08:30 +02:00
dependabot[bot] c9b7f84707
chore(deps)(deps): bump golang.org/x/tools from 0.7.0 to 0.8.0 (#1627)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-07 16:17:10 +01:00
AhmedGrati c2a020eb13
Feat support compose files (#1595)
* fix: support host port and protocol in functional tests

* feat: support compose.yaml and compose.yml files

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

* test: implement functional tests of the support of compose files

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

---------

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-04-05 23:29:08 +01:00
AhmedGrati 59d5532181
Fix openshift DeploymentConfig and ImageStream APIVersions (#1598)
* fix openshift dc and image stream api version

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

* e2e: Update Openshift manifests to update the API Version

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

---------

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-04-05 14:28:19 -04:00
dependabot[bot] 78700a215f
chore(deps)(deps): bump github.com/docker/docker (#1626)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.2+incompatible to 23.0.3+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v23.0.2...v23.0.3)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-05 19:25:25 +01:00
AhmedGrati 1d86eae1ca
docs: fix architecture design diagram (#1600)
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-04-05 14:11:38 -04:00
AhmedGrati 49fb7c7395
feat: automate e2e manifests update (#1602)
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-04-05 14:11:25 -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
dependabot[bot] ce1294a604
chore(deps)(deps): bump github.com/spf13/cobra from 1.6.1 to 1.7.0 (#1625)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.6.1...v1.7.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-05 14:10:19 -04:00
dependabot[bot] c8e39f6ad5
chore(deps)(deps): bump github.com/fsouza/go-dockerclient (#1621)
Bumps [github.com/fsouza/go-dockerclient](https://github.com/fsouza/go-dockerclient) from 1.9.6 to 1.9.7.
- [Release notes](https://github.com/fsouza/go-dockerclient/releases)
- [Changelog](https://github.com/fsouza/go-dockerclient/blob/main/container_changes_test.go)
- [Commits](https://github.com/fsouza/go-dockerclient/compare/v1.9.6...v1.9.7)

---
updated-dependencies:
- dependency-name: github.com/fsouza/go-dockerclient
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-01 21:00:53 +01:00
dependabot[bot] 2503bc96a7
chore(deps)(deps): bump github.com/opencontainers/runc (#1620)
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.1.2 to 1.1.5.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Changelog](https://github.com/opencontainers/runc/blob/v1.1.5/CHANGELOG.md)
- [Commits](https://github.com/opencontainers/runc/compare/v1.1.2...v1.1.5)

---
updated-dependencies:
- dependency-name: github.com/opencontainers/runc
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-29 20:47:23 +01:00
dependabot[bot] 32d3a40c41
chore(deps)(deps): bump github.com/compose-spec/compose-go (#1619)
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.13.1 to 1.13.2.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.13.1...v1.13.2)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 00:02:48 +01:00
dependabot[bot] 8b6b113295
chore(deps)(deps): bump github.com/compose-spec/compose-go (#1618)
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.13.0 to 1.13.1.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.13.0...v1.13.1)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-24 23:17:26 +01:00
dependabot[bot] 37728f6ff2
chore(deps)(deps): bump github.com/compose-spec/compose-go (#1615)
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.12.0 to 1.13.0.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.12.0...v1.13.0)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 16:25:21 +01:00
dependabot[bot] 5cfe4bff14
chore(ci)(deps): bump actions/setup-go from 3 to 4 (#1614)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 16:24:55 +01:00
dependabot[bot] 55ab9fc148
chore(deps)(deps): bump github.com/fsouza/go-dockerclient (#1612)
Bumps [github.com/fsouza/go-dockerclient](https://github.com/fsouza/go-dockerclient) from 1.9.5 to 1.9.6.
- [Release notes](https://github.com/fsouza/go-dockerclient/releases)
- [Changelog](https://github.com/fsouza/go-dockerclient/blob/main/container_changes_test.go)
- [Commits](https://github.com/fsouza/go-dockerclient/compare/v1.9.5...v1.9.6)

---
updated-dependencies:
- dependency-name: github.com/fsouza/go-dockerclient
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-09 17:43:26 +01:00
dependabot[bot] c96c8c862a
chore(deps)(deps): bump github.com/spf13/viper from 1.14.0 to 1.15.0 (#1611)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.14.0...v1.15.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-09 09:24:05 +01:00
dependabot[bot] 4fa7efff9f
chore(deps)(deps): bump github.com/fsouza/go-dockerclient (#1610)
Bumps [github.com/fsouza/go-dockerclient](https://github.com/fsouza/go-dockerclient) from 1.9.2 to 1.9.5.
- [Release notes](https://github.com/fsouza/go-dockerclient/releases)
- [Changelog](https://github.com/fsouza/go-dockerclient/blob/main/container_changes_test.go)
- [Commits](https://github.com/fsouza/go-dockerclient/compare/v1.9.2...v1.9.5)

---
updated-dependencies:
- dependency-name: github.com/fsouza/go-dockerclient
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 11:10:47 +01:00
dependabot[bot] a978dc4dff
chore(deps)(deps): bump github.com/joho/godotenv from 1.4.0 to 1.5.1 (#1609)
Bumps [github.com/joho/godotenv](https://github.com/joho/godotenv) from 1.4.0 to 1.5.1.
- [Release notes](https://github.com/joho/godotenv/releases)
- [Commits](https://github.com/joho/godotenv/compare/v1.4.0...v1.5.1)

---
updated-dependencies:
- dependency-name: github.com/joho/godotenv
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 10:56:25 +01:00
dependabot[bot] 35217c8c12
chore(deps)(deps): bump golang.org/x/tools from 0.5.0 to 0.7.0 (#1608)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.5.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 10:55:46 +01:00
dependabot[bot] d19cf8802b
chore(deps)(deps): bump github.com/compose-spec/compose-go (#1607)
Bumps [github.com/compose-spec/compose-go](https://github.com/compose-spec/compose-go) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/compose-spec/compose-go/releases)
- [Commits](https://github.com/compose-spec/compose-go/compare/v1.11.0...v1.12.0)

---
updated-dependencies:
- dependency-name: github.com/compose-spec/compose-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 10:41:51 +01:00
Lctrs b088e4e3e2
chore(dependabot): fix missing property prefix (#1606) 2023-03-08 10:26:36 +01:00
Lctrs d5002e54fe
chore: add configuration for dependabot (#1596) 2023-03-08 09:55:36 +01:00
Lctrs 834916182c
feat(deps): bump compose-go to 1.11.0 (#1594) 2023-02-20 16:20:47 +01:00
dependabot[bot] db7c50c58a
Bump golang.org/x/net from 0.5.0 to 0.7.0 (#1592)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.5.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-19 17:11:59 +01:00
dependabot[bot] cd45f7f0ff
Bump github.com/containerd/containerd from 1.6.14 to 1.6.18 (#1591)
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd) from 1.6.14 to 1.6.18.
- [Release notes](https://github.com/containerd/containerd/releases)
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md)
- [Commits](https://github.com/containerd/containerd/compare/v1.6.14...v1.6.18)

---
updated-dependencies:
- dependency-name: github.com/containerd/containerd
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-17 00:11:53 +01:00
Kubernetes Prow Robot 28c37cfd18
Merge pull request #1590 from vaibhav2107/registry-update
Update references from k8s.gcr.io to registry.k8s.io
2023-02-15 07:38:24 -08:00
vaibhav2107 9ced8e2ced Update references from k8s.gcr.io to registry.k8s.io 2023-02-14 17:35:45 +05:30
Charlie Drage cae115a9e4
Update copyright website 2023 (#1589)
#### What type of PR is this?

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

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

Update the copyright of the website to 2023.

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

N/A

#### Special notes for your reviewer:

N/A

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-02-13 12:57:03 -05:00
Charlie Drage 6e9b7f4021
remove build/rpm submodule (#1587)
#### What type of PR is this?

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

Removes the build/rpm submodule that's no longer needed / used

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

Fixes the issue of trying to build the Dockerfile: docker build -t
kompose https://github.com/kubernetes/kompose.git#main

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

N/A

#### Special notes for your reviewer:

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-02-13 12:43:12 -05:00
Charlie Drage ae1fbb512a
Fix docs regarding building from container (#1588)
#### What type of PR is this?

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

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

We've switched to main, so the previous command no longer worked since
it was searching for master.

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

N/A

#### Special notes for your reviewer:

N/A

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-02-13 12:43:02 -05:00
Kubernetes Prow Robot 607196c861
Merge pull request #1544 from AhmedGrati/feat-support-external-traffic-policy
Feat support external traffic policy
2023-02-13 09:15:30 -08:00
AhmedGrati 6be6fdd165 feat: support external traffic policy
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-02-13 14:59:46 +01:00
AhmedGrati b141d99106
fix: support host port and protocol in functional tests (#1586) 2023-02-11 19:19:29 -05:00
AhmedGrati 20dfb84f38
feat: integrate pre-commit hooks (#1559)
* feat: integrate pre-commit hooks

* Revert "feat: integrate pre-commit hooks"

This reverts commit 4d1ce96167.

* add pre-commit-config file

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

* remove no-go-testing from pre-commit-hooks

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

---------

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2023-02-10 10:57:07 -05:00
Boshi Lian d82f5b954f
support build with docker cli (#1525)
* support build with docker cli

* change to DOCKER_BUILDKIT
2023-02-10 10:56:38 -05:00
Charlie Drage f2aeb70e59
Fix TOC on site / documentation (#1580)
#### What type of PR is this?

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

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

The latest spelling error changes broke TOC from showing in the
documentation

#### 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 #

#### Special notes for your reviewer:

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-02-08 20:00:59 -05:00
Soobin Rho 5fb58ff96f
docs: correct three broken internal links (#1526)
* docs: correct broken internal link (/docs/maven-example.md)

1. When I was reading the documentation, I noticed that links to other documents inside the repository were giving a 404 error. So, I cloned the repository and found found that all links such as "[Quickstart](/docs/maven-example.md)" were giving the errors.

2. The fix is to remove the `/docs/` part and the `.md` part.

3. I tested these commits with `bundle exec jekyll serve`. All the pages getting changed by the commits now work correctly.

* docs: correct broken internal link (/docs/conversion.md)

- Removed the `/docs` part and the `.md` part from the link.
- Tested with `bundle exec jekyll serve`.
- Working correctly now.

* docs: correct broken internal link (/docs/installation.md)

- Removed the `/docs` part and the `.md` part from the link.
- Tested with `bundle exec jekyll serve`.
- Working correctly now.

---------

Co-authored-by: Charlie Drage <charlie@charliedrage.com>
2023-02-08 19:51:19 -05:00
AhmedGrati 37b503846c
Feat: Add issues and pull requests templates (#1560)
* feat: add issues template

* feat: add pr template
2023-02-08 19:49:27 -05:00
Charlie Drage 6a31ce3272 update release script 2023-02-08 16:13:41 -05:00
Charlie Drage 13919e2050
update sync script again (#1578)
Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-02-08 16:09:33 -05:00
Charlie Drage 055856076a
docs: update installation doc (#1575)
Some of the installation methods are either unmaintained / not up to
date anymore.

For example, we no longer package `.deb` packages.

The person using Kompose should be installing the binary directly
from GitHub rather than relying on their package manager.

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-02-08 22:04:16 +01:00
AhmedGrati 9ab4ef3a9c
Feat: Add hostPort and protocol to containers (#1558)
* feat: add the host port to containers

* test(unit): add unit tests for host port and protocol

* test(functional): add functional tests of host port and protocol

* test(functional): add functional tests of host port and protocol for openshift
2023-02-08 15:46:13 -05:00
Charlie Drage d43aefd882
change master to main in scripts and docs (#1569)
* change master to main in scripts and docs

Changes the naming from master to main in the scripts and documentation.

Do not merge unless CI passes!

Signed-off-by: Charlie Drage <charlie@charliedrage.com>

* remove 1.18, specify version of staticcheck

---------

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-02-08 15:42:16 -05:00
Charlie Drage a2b2a1f304
Adds a new logo for Kompose (#1574)
Woo! Our new logo!

It's a little cartoon octopus inside of a septagon (similar to
Kubernetes).

It's to show how "composable" we similar to an octopus.

I've gone ahead and updated the documentation as well as the website.
2023-02-08 15:23:16 -05:00
Patrick Rachford 35a430614f
Fixes typos (#1557)
* rebase

* undo commit to assets/**/*

* undo commit in script/test/*

* Apply suggestions from code review

Co-authored-by: AhmedGrati <48932084+AhmedGrati@users.noreply.github.com>

* removes webrick

---------

Co-authored-by: AhmedGrati <48932084+AhmedGrati@users.noreply.github.com>
2023-02-08 14:51:09 -05:00
Manuel Rüger b3d4aec3ee
k8sutils: Update helm template to use apiVersion v2 (#1567)
https://helm.sh/docs/topics/charts/#the-apiversion-field
2023-02-01 10:37:57 -05:00
Kundan Kumar 57bd5442a2
corrected broken diagram link in site (#1566) 2023-01-31 11:09:21 -05:00
Charlie Drage c70a945739
fix small errors in release script (#1563)
Noticed a few errors in the release script when doing the 1.28.0 release
this month! So here is the updated script.

Signed-off-by: Charlie Drage <charlie@charliedrage.com>

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-01-24 09:11:24 -05:00
Charlie Drage c4137012e3
1.28.0 Release (#1562) 2023-01-23 13:44:44 -05:00
Charlie Drage 26d28d58a4
remove unused js files (#1561)
These were leftover files from a docs / site template.

Removing as they are not needed.

Signed-off-by: Charlie Drage <charlie@charliedrage.com>

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-01-23 13:31:48 -05:00
Suraj Deshmukh eb9f15b2c6
owners: Remove surajssd (#1555)
Signed-off-by: Suraj Deshmukh <surajd.service@gmail.com>

Signed-off-by: Suraj Deshmukh <surajd.service@gmail.com>
2023-01-18 22:34:47 -05:00
Lctrs cb41c16bf4
chore: require go >=1.18, bump deps and get rid of replace directives (#1552) 2023-01-13 08:50:28 -05:00
Charlie Drage d4001c92b2
Fix CI (#1550)
Accidently removed the check-gofmt.sh script.
2023-01-12 21:18:42 -05:00
Charlie Drage e85329f330
Remove old scripts, modify manual syncing doc script (#1549)
Maintenance!

Removes all the old scripts now used, and adds a "manual" doc sync
maintenance script which we have yet to automate.

Signed-off-by: Charlie Drage <charlie@charliedrage.com>

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-01-12 15:37:58 -05: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
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 4c14b06333
chore: add AhmedGrati as owner of Kompose (#1540) 2022-11-22 13:44:30 -05:00
AhmedGrati 36593e8759
Update e2e tests (#1538)
* fix: update ingress class name assign
2022-11-21 18:54:28 +08:00
Matt Hook af82f7e6db
fix all known trivy scan vulnerabilities (#1516)
* fix all known trivy scan vulnerabilities

* fix library issues: CVE-2022-27664, CVE-2022-32149, GHSA-69ch-w2m2-3vjp
2022-11-19 10:44:37 +08:00
AhmedGrati acb8046f84
Fix environment variables interpolation (#1524) 2022-11-19 10:35:33 +08:00
Charlie Drage 089e946489
remove sync docs from ci (#1536)
don't need sync docs since we are building from `/docs` directory
instead of `gh-pages`.

Signed-off-by: Charlie Drage <charlie@charliedrage.com>

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2022-11-18 15:01:16 -05: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
Charlie Drage b0ed6a2c9b
1.27.0 Release (#1534) 2022-11-18 11:31:23 -05:00
AhmedGrati fd7b751564
Fix container name (#1528)
* fix: update get container name function
* test: add a test for the introduced fix
2022-11-13 21:33:47 +08:00
AhmedGrati 849c229aad
Fix(CI Pipeline): Update Kubernetes unit tests and CI Pipeline configuration files (#1531)
* fix: update kubernetes unit tests

* fix: check whether selectors are present or not

* fix: update golang-lint yaml file

* fix: downgrade the version of fsouza go docker-client
2022-11-12 21:46:18 +08:00
Tomas Kral a4413b2570
Merge pull request #1488 from dmitris/patch-1
recommend to use 'go install @latest" for Go
2022-09-26 13:25:37 +02: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
Stefan Weiberg 4f20198ddc
Provide updated installation instructions (#1496)
* openSUSE meanwhile includes kompose in their official repositories for Tumbleweed and Leap
* on SUSE Linux Enterprise Server kompose is available via PackageHub
2022-08-26 09:29:09 -04:00
Matt Hook ec62854fdf
update packages to fix trivy vulnerability scan (#1508) 2022-08-26 09:28:28 -04:00
Kubernetes Prow Robot 9055f21620
Merge pull request #1512 from realgam3/master
fix daemonset creation (add selector)
2022-08-23 04:49:25 -07:00
Dmitry Savintsev 3a431dd7b4 recommend to use 'go install @latest" for Go 2022-08-16 16:49:41 +02:00
AhmedGrati 6512dd3dd4
fix: change the port ID definition in kubernetes.go file (#1515) 2022-08-16 07:57:43 -04:00
Tomer Zait 06bb4f5279 fix daemonset creation (add selector) 2022-07-01 01:21:33 +03:00
Kubernetes Prow Robot 1b040dd299
Merge pull request #1493 from darklore/go1.18
Fix build error on go1.18
2022-03-24 02:24:43 -07: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
darklore 0964a7ccd1
Fix build error on go1.18
Signed-off-by: darklore <zodiac.brave.story@gmail.com>
2022-03-24 05:22:23 +09: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
Kubernetes Prow Robot 8e94728ddb
Merge pull request #1485 from mac-chaffee/fixups
Remove [file] from convert helptext
2022-03-15 06:56:10 -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
Charlie Drage b796ec0222 Sync site 2022-01-14 09:03:45 -05:00
Charlie Drage 7b3b812736
Update README for docs website (#1476)
Updates the README to say that the site is synced to `gh-pages`

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2022-01-13 16:03:07 -05:00
Charlie Drage e2b5c983e1
Synchronize site and update .gitignore (#1477)
Updates the site documentation as well as adds new files to ignore in
.gitignore

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2022-01-13 16:02:53 -05:00
Charlie Drage 99936cf94e
Create CNAME 2022-01-13 14:13:16 -05:00
Charlie Drage 235a2ae931
Delete CNAME 2022-01-13 14:11:56 -05:00
Charlie Drage bd94da0d27
Create CNAME 2022-01-13 14:06:32 -05:00
Charlie Drage 597e7b0fdc
Add new kompose site (#1475)
Adds the new kompose site and moves it to the /docs folder so that it's
compatible with old links as well as gh-pages
2022-01-13 14:05:38 -05: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
Charlie Drage a9d05d509d
1.26.1 Release (#1470) 2022-01-10 15:34:01 -05:00
Arian Dehghani 034c271f1b
Added more installation instructions (#1468)
* Added Docker image-building instructions in the docs

* Added Nix and NixOS installation instructions
2022-01-10 15:21:04 -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 Yan 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
Shivam Sandbhor 6836599adc
Add make rule for darwin arm64 in cross target (#1455)
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2021-11-06 23:12:43 +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
Hang Yan ce46a5ba01
Update windows bin ext (#1451)
Signed-off-by: Hang Yan <hang.yan@hotmail.com>
2021-10-24 19:34:23 +08:00
Hang Yan fe720df482
1.25 Release (#1450) 2021-10-23 14:49:39 +08: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
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
Kevin Wang 8340b086d6
Fix typo: loadbalander -> loadbalancer (#1442) 2021-10-13 11:29:35 +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 5d7ed192a4
Code Refactor (#1438)
* Code refactor
Signed-off-by: Hang Yan <hang.yan@hotmail.com>
2021-10-03 17:33:43 +08:00
Hang Yan 9a6a24cb16
Update golang versions in ci (#1437) 2021-10-02 02:18:20 +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
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
Shivam Sandbhor a4c784d7ee
Document debian package. (#1432)
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2021-09-24 09:44:24 +08:00
Shivam Sandbhor 65fe33a608
Add instruction to change directory to cloned repo while building. (#1430)
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
2021-09-19 16:55:28 +08:00
AiYijing 8207146039
Add install golangci-lint to project dir of bin (#1428)
Signed-off-by: aiyijing <aiyijing@live.com>
2021-09-01 10:51:44 +08:00
531 changed files with 42570 additions and 16988 deletions

57
.github/ISSUE_TEMPLATE/bug_report.yml vendored Normal file
View File

@ -0,0 +1,57 @@
name: Bug
description: File a bug/issue
title: "[BUG] <title>"
labels: ["kind/bug"]
body:
- type: markdown
attributes:
value: "## Thank you for contributing to our Kompose!"
- type: textarea
attributes:
label: Expected Behavior
description: |
Briefly describe what is the desired behavior.
validations:
required: true
- type: textarea
attributes:
label: Actual Behavior
description: |
Briefly describe what is the actual behavior.
validations:
required: true
- type: textarea
attributes:
label: Steps To Reproduce
description: Steps to reproduce the behavior.
placeholder: |
1. In this environment...
2. With this config...
3. Run '...'
4. See error or unexpected result...
validations:
required: false
- type: textarea
attributes:
label: Kompose Version
description: |
Paste output of `kompose version`.
render: Text
validations:
required: true
- type: textarea
attributes:
label: Docker-Compose file
description: Paste output of the `docker-compose.yaml` that you are using.
render: YAML
validations:
required: false
- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Anything that will give us more context about the issue you are encountering!
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
validations:
required: false

5
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Kubernetes Community Slack
url: https://kubernetes.slack.com
about: "Use the #kompose channel"

22
.github/ISSUE_TEMPLATE/enhancement.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Enhancement Tracking Issue
description: Provide supporting details for a feature in development
labels: kind/feature
body:
- type: markdown
attributes:
value: "## Thank you for contributing to our Kompose!"
- type: textarea
id: feature
attributes:
label: What would you like to be added?
description: |
Describe what feature/enhancement that you want to be added to Kompose.
validations:
required: true
- type: textarea
id: rationale
attributes:
label: Why is this needed?
validations:
required: true

20
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View File

@ -0,0 +1,20 @@
#### What type of PR is this?
<!--
Add one of the following kinds:
/kind bug
/kind cleanup
/kind documentation
/kind feature
-->
#### What this PR does / why we need it:
#### 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 #
#### Special notes for your reviewer:

22
.github/dependabot.yaml vendored Normal file
View File

@ -0,0 +1,22 @@
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
- commit-message:
include: "scope"
prefix: "chore(deps)"
directory: "/"
open-pull-requests-limit: 10
package-ecosystem: "gomod"
schedule:
interval: "daily"
- commit-message:
include: "scope"
prefix: "chore(ci)"
directory: "/"
open-pull-requests-limit: 10
package-ecosystem: "github-actions"
schedule:
interval: "daily"

View File

@ -2,9 +2,12 @@ name: Go
on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]
env:
# Avoid noisy outputs like "tput: No value for $TERM and no -T specified"
TERM: dumb
jobs:
@ -14,21 +17,19 @@ jobs:
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ^1.13
go-version: ^1.21
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Build
run: make bin
- name: Test
run: make test
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2.1.4
with:
uses: actions/upload-artifact@v4
with:
name: "kompose"
path: "kompose"

View File

@ -1,15 +0,0 @@
name: golangci-lint
on:
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.32.2
args: --timeout 5m

19
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: lint
on:
pull_request:
jobs:
lint:
strategy:
matrix:
go: [1.21, 1.22]
name: lint
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install golang"
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: "Run go vet"
run: "go vet ./pkg/..."

View File

@ -2,7 +2,7 @@ name: Kompose CI
on:
push:
branches:
- master
- main
pull_request:
env:
# Avoid noisy outputs like "tput: No value for $TERM and no -T specified"
@ -10,16 +10,18 @@ env:
jobs:
test:
name: Test with ${{ matrix.go }} and CROSS_COMPILE=${{ matrix.cross_compile }}
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.13, 1.14]
go: [1.21, 1.22]
cross_compile: [true, false]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Install dyff
run: go install github.com/homeport/dyff/cmd/dyff@v1.5.8
- name: Run tests
run: make test
- name: Perform cross compile
@ -27,13 +29,15 @@ jobs:
run: make cross
docs:
name: Build docs and Coveralls integration
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.14
go-version: ^1.21
- name: Install dyff
run: go install github.com/homeport/dyff/cmd/dyff@v1.5.8
- name: Create .coverprofile for each targeted directory by re:running tests
run: make test
- name: Collect all .coverprofile files and save it to one file gover.coverprofile
@ -43,5 +47,3 @@ jobs:
env:
# As per https://github.com/mattn/goveralls#github-actions
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: ./script/sync-docs.sh
if: ${{ github.ref == 'refs/heads/master' }}

21
.gitignore vendored
View File

@ -7,8 +7,18 @@ kompose
bin
/docker-compose.yaml
/docker-compose.yml
/compose.yaml
/compose.yml
changes.txt
# Ignore site documents / when switching branches
docs/_site/
docs/.jekyll-cache/
docs/.git/
docs/.gitignore
_site/
.jekyll-cache/
#
# GO SPECIFIC
#
@ -64,3 +74,14 @@ tags
# IntelliJ IDE specific
.idea
.DS_Store
# VSCode specific
.vscode
# Client Test generated files
client/testdata/generated
pkg/mod

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "build/rpm"]
path = build/rpm
url = https://src.fedoraproject.org/rpms/kompose

View File

@ -12,7 +12,7 @@ linters:
# - errcheck
# - goconst
- goimports
# - golint
# - staticcheck
- goprintffuncname
# - gosimple
- govet

View File

@ -0,0 +1,27 @@
# OpenVEX Templates Directory
This directory contains the OpenVEX data for this repository.
The files stored in this directory are used as templates by
`vexctl generate` when generating VEX data for a release or
a specific artifact.
To add new statements to publish data about a vulnerability,
download [vexctl](https://github.com/openvex/vexctl)
and append new statements using `vexctl add`. For example:
```
vexctl add --in-place main.openvex.json pkg:oci/test CVE-2014-1234567 fixed
```
That will add a new VEX statement expressing that the impact of
CVE-2014-1234567 is under investigation in the test image. When
cutting a new release, for `pkg:oci/test` the new file will be
incorporated to the relase's VEX data.
## Read more about OpenVEX
To know more about generating, publishing and using VEX data
in your project, please check out the vexctl repository and
documentation: https://github.com/openvex/vexctl
OpenVEX also has an examples repository with samples and docs:
https://github.com/openvex/examples

View File

@ -0,0 +1,8 @@
{
"@context": "https://openvex.dev/ns/v0.2.0",
"@id": "https://openvex.dev/docs/public/vex-6f9001fd8630edd2996df09f345882066d7b5bf512e54af918343d278640ecd0",
"author": "vexctl (automated template)",
"timestamp": "2023-12-15T19:10:43.910365Z",
"version": 1,
"statements": []
}

20
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,20 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-fmt
- id: go-imports
- id: golangci-lint
- id: go-unit-tests
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.18.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional"]

File diff suppressed because it is too large Load Diff

View File

@ -8,8 +8,8 @@ We'd love to accept your patches! Before we can take them, we have to jump a cou
Please fill out either the individual or corporate Contributor License Agreement (CLA).
* If you are an individual writing original source code and you're sure you own the intellectual property, then you'll need to sign an individual CLA.
* If you work for a company that wants to allow you to contribute your work, then you'll need to sign a corporate CLA.
- If you are an individual writing original source code and you're sure you own the intellectual property, then you'll need to sign an individual CLA.
- If you work for a company that wants to allow you to contribute your work, then you'll need to sign a corporate CLA.
Contact one of the [OWNERS](OWNERS) on Slack to access the appropriate CLA and instructions for how to sign and return it. Once we receive it, we'll be able to accept your pull requests.

View File

@ -1,10 +1,17 @@
FROM alpine:3.9 as builder
# Alpine Builder
FROM alpine AS builder
RUN apk add --no-cache curl
COPY ./build/VERSION VERSION
RUN version=$(cat VERSION) && curl -L "https://github.com/kubernetes/kompose/releases/download/v${version}/kompose-linux-amd64" -o kompose
RUN \
version=$(cat VERSION) && \
ARCH=$(uname -m | sed 's/armv7l/arm/g' | sed 's/aarch64/arm64/g' | sed 's/x86_64/amd64/g') && \
curl -L \
"https://github.com/kubernetes/kompose/releases/download/v${version}/kompose-linux-${ARCH}" \
-o kompose && \
chmod +x kompose
FROM alpine:3.9
# Runtime
FROM alpine
COPY --from=builder /kompose /usr/bin/kompose
RUN chmod +x /usr/bin/kompose

View File

@ -18,6 +18,20 @@ GITCOMMIT := $(shell git rev-parse --short HEAD)
BUILD_FLAGS := -ldflags="-w -s -X github.com/kubernetes/kompose/pkg/version.GITCOMMIT=$(GITCOMMIT)"
TEST_IMAGE := kompose/tests:latest
# go-get-tool will 'go get' any package $2 and install it to $1.
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
define go-get-tool
@[ -f $(1) ] || { \
set -e ;\
TMP_DIR=$$(mktemp -d) ;\
cd $$TMP_DIR ;\
go mod init tmp ;\
echo "Downloading $(2)" ;\
GOBIN=$(PROJECT_DIR)/bin go get $(2) ;\
rm -rf $$TMP_DIR ;\
}
endef
default: bin
.PHONY: all
@ -37,8 +51,9 @@ cross:
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 GO111MODULE=on go build ${BUILD_FLAGS} -installsuffix cgo -o "bin/kompose-linux-amd64" main.go
GOOS=linux GOARCH=arm CGO_ENABLED=0 GO111MODULE=on go build ${BUILD_FLAGS} -installsuffix cgo -o "bin/kompose-linux-arm" main.go
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 GO111MODULE=on go build ${BUILD_FLAGS} -installsuffix cgo -o "bin/kompose-linux-arm64" main.go
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 GO111MODULE=on go build ${BUILD_FLAGS} -installsuffix cgo -o "bin/kompose-windows-amd64" main.go
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 GO111MODULE=on go build ${BUILD_FLAGS} -installsuffix cgo -o "bin/kompose-windows-amd64.exe" main.go
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 GO111MODULE=on go build ${BUILD_FLAGS} -installsuffix cgo -o "bin/kompose-darwin-amd64" main.go
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 GO111MODULE=on go build ${BUILD_FLAGS} -installsuffix cgo -o "bin/kompose-darwin-arm64" main.go
.PHONY: clean
clean:
@ -67,25 +82,16 @@ test-openshift:
# run commandline tests
.PHONY: test-cmd
test-cmd:
./script/test/cmd/tests_new.sh
# generate commandline tests
.PHONY: gen-cmd
gen-cmd:
./script/test/cmd/make-test.sh
./script/test/cmd/tests.sh
# run all validation tests
.PHONY: validate
validate: gofmt vet lint
validate: gofmt vet
.PHONY: vet
vet:
go vet ./pkg/...
.PHONY: lint
lint:
golint ./pkg/...
.PHONY: gofmt
gofmt:
./script/check-gofmt.sh
@ -97,10 +103,9 @@ test: bin test-dep validate test-unit-cover install test-cmd
# Install all the required test-dependencies before executing tests (only valid when running `make test`)
.PHONY: test-dep
test-dep:
go get github.com/mattn/goveralls
go get github.com/modocache/gover
go get golang.org/x/lint/golint
go get github.com/mitchellh/gox
go install github.com/mattn/goveralls@latest
go install github.com/modocache/gover@latest
go install github.com/mitchellh/gox@latest
# build docker image that is used for running all test locally
@ -118,6 +123,17 @@ test-container:
test-k8s:
./script/test_k8s/test.sh
GOLANGCI_LINT = $(shell pwd)/bin/golangci-lint
.PHONY: install-golangci-lint
install-golangci-lint:
# golangci-lint version must consistent with github CI
# ref: ./.github/workflows/golangci-lint.yml
$(call go-get-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/cmd/golangci-lint@v1.32.2)
.PHONY: golangci-lint
golangci-lint:
golangci-lint run -c .golangci.yml
golangci-lint: install-golangci-lint
$(GOLANGCI_LINT) run -c .golangci.yml --timeout 5m
.PHONY: test-client
test-client:
go test ./client/...

12
OWNERS
View File

@ -3,18 +3,10 @@
reviewers:
- cdrage
- janetkuo
- kadel
- ngtuna
- sebgoa
- surajssd
- hangyan
- TessaIO
approvers:
- cdrage
- janetkuo
- kadel
- ngtuna
- sebgoa
- surajssd
- hangyan
- TessaIO

View File

@ -2,22 +2,24 @@
[![Build Status Widget]][Build Status] [![Coverage Status Widget]][Coverage Status] [![GoDoc Widget]][GoDoc] [![GoReportCard Widget]][GoReportCardResult]
`kompose` is a tool to help users who are familiar with `docker-compose` move to [Kubernetes](http://kubernetes.io). `kompose` takes a Docker Compose file and translates it into Kubernetes resources.
![logo](/docs/assets/images/logo.png)
`kompose` is a convenience tool to go from local Docker development to managing your application with Kubernetes. Transformation of the Docker Compose format to Kubernetes resources manifest may not be exact, but it helps tremendously when first deploying an application on Kubernetes.
`kompose` is a tool to help users who are familiar with `docker-compose` move to [Kubernetes](http://kubernetes.io). `kompose` takes a [Compose Specification](https://compose-spec.io/) file and translates it into Kubernetes resources.
`kompose` is a convenience tool to go from local Compose environment to managing your application with Kubernetes. Transformation of the [Compose Specification](https://compose-spec.io/) format to Kubernetes resources manifest may not be exact, but it helps tremendously when first deploying an application on Kubernetes.
## Use Case
Convert [`docker-compose.yaml`](https://raw.githubusercontent.com/kubernetes/kompose/master/examples/docker-compose.yaml) into Kubernetes deployments and services with one simple command:
Convert [`compose.yaml`](https://raw.githubusercontent.com/kubernetes/kompose/main/examples/compose.yaml) into Kubernetes deployments and services with one simple command:
```sh
$ kompose convert -f docker-compose.yaml
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
$ kompose convert -f compose.yaml
INFO Kubernetes file "frontend-service.yaml" created
INFO Kubernetes file "redis-leader-service.yaml" created
INFO Kubernetes file "redis-replica-service.yaml" created
INFO Kubernetes file "frontend-deployment.yaml" created
INFO Kubernetes file "redis-leader-deployment.yaml" created
INFO Kubernetes file "redis-replica-deployment.yaml" created
```
Other examples are provided in the _examples_ [directory](./examples).
@ -29,34 +31,36 @@ We have multiple ways to install Kompose. Our preferred method is downloading th
Our entire list of installation methods are located in our [installation.md](/docs/installation.md) document.
Installation methods:
- [Binary (Preferred method)](/docs/installation.md#github-release)
- [Go](/docs/installation.md#go)
- [CentOS](/docs/installation.md#centos)
- [Fedora](/docs/installation.md#fedora)
- [openSUSE/SLE](/docs/installation.md#opensusesle)
- [macOS (Homebrew and MacPorts)](/docs/installation.md#macos)
- [Windows](/docs/installation.md#windows)
- [Binary (Preferred method)](/docs/installation.md#github-release)
- [Go](/docs/installation.md#go)
- [CentOS](/docs/installation.md#centos)
- [openSUSE/SLE](/docs/installation.md#opensusesle)
- [NixOS](/docs/installation.md#nixos)
- [macOS (Homebrew and MacPorts)](/docs/installation.md#macos)
- [Windows](/docs/installation.md#windows)
- [Docker](/docs/installation.md#docker)
#### Binary installation
Kompose is released via GitHub on a three-week cycle, you can see all current releases on the [GitHub release page](https://github.com/kubernetes/kompose/releases).
__Linux and macOS:__
**Linux and macOS:**
```sh
# Linux
curl -L https://github.com/kubernetes/kompose/releases/download/v1.24.0/kompose-linux-amd64 -o kompose
curl -L https://github.com/kubernetes/kompose/releases/download/v1.36.0/kompose-linux-amd64 -o kompose
# macOS
curl -L https://github.com/kubernetes/kompose/releases/download/v1.24.0/kompose-darwin-amd64 -o kompose
curl -L https://github.com/kubernetes/kompose/releases/download/v1.36.0/kompose-darwin-amd64 -o kompose
chmod +x kompose
sudo mv ./kompose /usr/local/bin/kompose
```
__Windows:__
**Windows:**
Download from [GitHub](https://github.com/kubernetes/kompose/releases/download/v1.24.0/kompose-windows-amd64.exe) and add the binary to your PATH.
Download from [GitHub](https://github.com/kubernetes/kompose/releases/download/v1.36.0/kompose-windows-amd64.exe) and add the binary to your PATH.
## Shell autocompletion
@ -76,32 +80,48 @@ kompose completion fish | source
## Development and building of Kompose
### Building with `go`
__Requisites:__
**Requisites:**
1. [make](https://www.gnu.org/software/make/)
2. [Golang](https://golang.org/) v1.6 or later
3. Set `GOPATH` correctly or click [SettingGOPATH](https://github.com/golang/go/wiki/SettingGOPATH) for details
__Steps:__
**Steps:**
1. Clone repository
```console
$ git clone https://github.com/kubernetes/kompose.git $GOPATH/src/github.com/kubernetes/kompose
```
2. Build with `make`
2. Change directory to the cloned repo.
```console
cd $GOPATH/src/github.com/kubernetes/kompose
```
3. Build with `make`
```console
$ make bin
```
3. Or build with `go`
4. Or build with `go`
```console
$ go build -o kompose main.go
```
4. Test your changes
5. Test your changes
```console
$ make test
```
## Documentation
Documentation can be found at our [kompose.io](http://kompose.io) website or our [docs](https://github.com/kubernetes/kompose/tree/master/docs) folder.
Documentation can be found at our [kompose.io](http://kompose.io) website or our [docs](https://github.com/kubernetes/kompose/tree/main/docs) folder.
Here is a list of all available docs:
@ -114,12 +134,11 @@ Here is a list of all available docs:
## Community, Discussion, Contribution, and Support
__Issues:__ If you find any issues, please [file it](https://github.com/kubernetes/kompose/issues).
**Issues:** If you find any issues, please [file it](https://github.com/kubernetes/kompose/issues).
__Kubernetes Community:__ As part of the Kubernetes ecosystem, we follow the Kubernetes community principles. More information can be found on the [community page](http://kubernetes.io/community/).
__Chat (Slack):__ We're fairly active on [Slack](http://slack.kubernetes.io#kompose) and you can find us in the #kompose channel.
**Kubernetes Community:** As part of the Kubernetes ecosystem, we follow the Kubernetes community principles. More information can be found on the [community page](http://kubernetes.io/community/).
**Chat (Slack):** We're fairly active on [Slack](http://slack.kubernetes.io#kompose) and you can find us in the #kompose channel.
### Code of Conduct
@ -129,7 +148,7 @@ Participation in the Kubernetes community is governed by the [Kubernetes Code of
[Build Status Widget]: https://github.com/kubernetes/kompose/workflows/Kompose%20CI/badge.svg
[GoDoc]: https://godoc.org/github.com/kubernetes/kompose
[GoDoc Widget]: https://godoc.org/github.com/kubernetes/kompose?status.svg
[Coverage Status Widget]: https://coveralls.io/repos/github/kubernetes/kompose/badge.svg?branch=master
[Coverage Status]: https://coveralls.io/github/kubernetes/kompose?branch=master
[Coverage Status Widget]: https://coveralls.io/repos/github/kubernetes/kompose/badge.svg?branch=main
[Coverage Status]: https://coveralls.io/github/kubernetes/kompose?branch=main
[GoReportCard Widget]: https://goreportcard.com/badge/github.com/kubernetes/kompose
[GoReportCardResult]: https://goreportcard.com/report/github.com/kubernetes/kompose

View File

@ -5,4 +5,4 @@ The process is as follows:
1. A PR proposing a new release with a changelog since the last release
1. At least 2 or more [OWNERS](OWNERS) must LGTM this release
1. The release PR is closed
1. An OWNER runs `git tag -s $VERSION` and inserts the changelog and pushes the tag with `git push $VERSION`
1. An OWNER runs `git tag -s $VERSION` and inserts the changelog and pushes the tag with `git push $VERSION`

View File

@ -13,7 +13,7 @@
cdrage
kadel
hangyan
surajssd
janetkuo
ngtuna
sebgoa
AhmedGrati

View File

@ -2,18 +2,20 @@
There are instructions on how to build the RPM.
# 1. Gofed
# 1. Gofed
Grab gofed from https://github.com/gofed/gofed
Choose which version of the repo you want to build. For kompose it was 0.3.0 and the commit was 135165b39c55d29a5426479ded81eddd56bfbaf4
Run the following to generate spec file:
```sh
gofed repo2spec --detect github.com/kubernetes/kompose --commit 135165b39c55d29a5426479ded81eddd56bfbaf4 --with-extra --with-build -f
```
The spec file is now located at:
```sh
$HOME/gofed/golang-github-kubernetes-incubator-kompose/golang-github-kubernetes-incubator-kompose.spec
```
@ -25,13 +27,13 @@ Now we need to go through and fix some things.
Generate bundled dependencies by using parsedeps.go
Go to the kompose source folder and then run:
```sh
go run parsedeps.go
```
In the future this will possibly done by `gofed`, see: https://github.com/gofed/gofed/issues/42
# 3. Building a source RPM locally on CentOS
First, follow instructions to do local setup https://wiki.centos.org/HowTos/SetupRpmBuildEnvironment
@ -45,6 +47,7 @@ Copy the kompose code directory with name `kompose-135165b39c55d29a5426479ded81e
Tar the `kompose-135165b39c55d29a5426479ded81eddd56bfbaf4` code directory as `kompose-135165b.tar.gz` and copy it to `$HOME/rpmbuild/SOURCES/`
Run following command:
```sh
rpmbuild -ba kompose.spec
```
@ -54,6 +57,7 @@ Find the srpm in `$HOME/rpmbuild/SRPMS`
Find the RPM in `$HOME/rpmbuild/RPM/arch/`
Check that the dependencies are proper:
```sh
rpm -qpR RPMS/x86_64/kompose-0.3.0-0.1.git135165b.el7.centos.x86_64.rpm
```
@ -63,12 +67,14 @@ rpm -qpR RPMS/x86_64/kompose-0.3.0-0.1.git135165b.el7.centos.x86_64.rpm
First, setup your environment in order to run Koji: https://fedoraproject.org/wiki/Using_the_Koji_build_system
Example setup:
```sh
fedora-packager-setup
kinit <username>@FEDORAPROJECT.ORG
```
To build it on koji run:
```
koji build --scratch rawhide kompose-0.3.0-0.1.git135165b.el7.centos.src.rpm
```

View File

@ -1 +1 @@
1.24.0
1.36.0

@ -1 +0,0 @@
Subproject commit e6948b607f90bb2ef8fdc97075fc4c6cc73e6063

21
client/client.go Normal file
View File

@ -0,0 +1,21 @@
package client
type Kompose struct {
suppressWarnings bool
verbose bool
errorOnWarning bool
}
func NewClient(opts ...Opt) (*Kompose, error) {
k := &Kompose{
suppressWarnings: false,
verbose: false,
errorOnWarning: false,
}
for _, op := range opts {
if err := op(k); err != nil {
return nil, err
}
}
return k, nil
}

249
client/convert.go Normal file
View File

@ -0,0 +1,249 @@
package client
import (
"fmt"
"github.com/kubernetes/kompose/pkg/app"
"github.com/kubernetes/kompose/pkg/kobject"
"k8s.io/apimachinery/pkg/runtime"
)
func (k *Kompose) Convert(options ConvertOptions) ([]runtime.Object, error) {
options = k.setDefaultValues(options)
err := k.validateOptions(options)
if err != nil {
return nil, err
}
kobjectConvertOptions := kobject.ConvertOptions{
ToStdout: options.ToStdout,
CreateChart: k.createChart(options),
GenerateYaml: true,
GenerateJSON: options.GenerateJson,
Replicas: *options.Replicas,
InputFiles: options.InputFiles,
OutFile: options.OutFile,
Provider: k.getProvider(options),
CreateD: k.createDeployment(options),
CreateDS: k.createDaemonSet(options),
CreateRC: k.createReplicationController(options),
Build: *options.Build,
BuildRepo: k.buildRepo(options),
BuildBranch: k.buildBranch(options),
PushImage: options.PushImage,
PushImageRegistry: options.PushImageRegistry,
CreateDeploymentConfig: k.createDeploymentConfig(options),
EmptyVols: false,
Profiles: options.Profiles,
Volumes: *options.VolumeType,
PVCRequestSize: options.PvcRequestSize,
InsecureRepository: k.insecureRepository(options),
IsDeploymentFlag: k.createDeployment(options),
IsDaemonSetFlag: k.createDaemonSet(options),
IsReplicationControllerFlag: k.createReplicationController(options),
Controller: k.getController(options),
IsReplicaSetFlag: *options.Replicas != 0,
IsDeploymentConfigFlag: k.createDeploymentConfig(options),
YAMLIndent: 2,
WithKomposeAnnotation: *options.WithKomposeAnnotations,
MultipleContainerMode: k.multiContainerMode(options),
ServiceGroupMode: k.serviceGroupMode(options),
ServiceGroupName: k.serviceGroupName(options),
SecretsAsFiles: k.secretsAsFiles(options),
GenerateNetworkPolicies: options.GenerateNetworkPolicies,
}
err = app.ValidateComposeFile(&kobjectConvertOptions)
if err != nil {
return nil, err
}
objects, err := app.Convert(kobjectConvertOptions)
return objects, err
}
func (k *Kompose) setDefaultValues(options ConvertOptions) ConvertOptions {
replicasDefaultValue := 1
buildDefaultValue := "none"
volumeTypeDefaultValue := "persistentVolumeClaim"
withKomposeAnnotationsDefaultValue := true
kubernetesControllerDefaultValue := ""
kubernetesServiceGroupModeDefaultValue := ""
if options.Replicas == nil {
options.Replicas = &replicasDefaultValue
}
if options.Build == nil {
options.Build = &buildDefaultValue
}
if options.VolumeType == nil {
options.VolumeType = &volumeTypeDefaultValue
}
if options.WithKomposeAnnotations == nil {
options.WithKomposeAnnotations = &withKomposeAnnotationsDefaultValue
}
if options.Provider == nil {
options.Provider = Kubernetes{
Controller: &kubernetesControllerDefaultValue,
}
}
if kubernetesProvider, ok := options.Provider.(Kubernetes); ok {
if kubernetesProvider.Controller == nil {
options.Provider = Kubernetes{
Controller: &kubernetesControllerDefaultValue,
Chart: options.Provider.(Kubernetes).Chart,
MultiContainerMode: options.Provider.(Kubernetes).MultiContainerMode,
ServiceGroupMode: options.Provider.(Kubernetes).ServiceGroupMode,
ServiceGroupName: options.Provider.(Kubernetes).ServiceGroupName,
SecretsAsFiles: options.Provider.(Kubernetes).SecretsAsFiles,
}
}
if kubernetesProvider.ServiceGroupMode == nil {
options.Provider = Kubernetes{
Controller: options.Provider.(Kubernetes).Controller,
Chart: options.Provider.(Kubernetes).Chart,
MultiContainerMode: options.Provider.(Kubernetes).MultiContainerMode,
ServiceGroupMode: &kubernetesServiceGroupModeDefaultValue,
ServiceGroupName: options.Provider.(Kubernetes).ServiceGroupName,
SecretsAsFiles: options.Provider.(Kubernetes).SecretsAsFiles,
}
}
}
return options
}
func (k *Kompose) validateOptions(options ConvertOptions) error {
build := options.Build
if *build != string(LOCAL) && *build != string(BUILD_CONFIG) && *build != string(NONE) {
return fmt.Errorf(
"unexpected Value for Build field. Possible values are: %v, %v, and %v", string(LOCAL), string(BUILD_CONFIG), string(NONE),
)
}
volumeType := options.VolumeType
if *volumeType != string(PVC) && *volumeType != string(EMPTYDIR) && *volumeType != string(HOSTPATH) && *volumeType != string(CONFIGMAP) {
return fmt.Errorf(
"unexpected Value for VolumeType field. Possible values are: %v, %v, %v, %v", string(PVC), string(EMPTYDIR), string(HOSTPATH), string(CONFIGMAP),
)
}
if kubernetesProvider, ok := options.Provider.(Kubernetes); ok {
kubernetesController := kubernetesProvider.Controller
if *kubernetesController != "" && *kubernetesController != string(DEPLOYMENT) && *kubernetesController != string(DAEMONSET) && *kubernetesController != string(REPLICATION_CONTROLLER) {
return fmt.Errorf(
"unexpected Value for Kubernetes Controller field. Possible values are: %v, %v, and %v", string(DEPLOYMENT), string(DAEMONSET), string(REPLICATION_CONTROLLER),
)
}
kubernetesServiceGroupMode := kubernetesProvider.ServiceGroupMode
if *kubernetesServiceGroupMode != string(LABEL) && *kubernetesServiceGroupMode != string(VOLUME) && *kubernetesServiceGroupMode != "" {
return fmt.Errorf(
"unexpected Value for Kubernetes Service Groupe Mode field. Possible values are: %v, %v, ''", string(LABEL), string(VOLUME),
)
}
if *build == string(BUILD_CONFIG) {
return fmt.Errorf("the build value %v is only supported for Openshift provider", string(BUILD_CONFIG))
}
}
return nil
}
func (k *Kompose) createDeployment(options ConvertOptions) bool {
if kubernetesProvider, ok := options.Provider.(Kubernetes); ok {
return *kubernetesProvider.Controller == string(DEPLOYMENT)
}
return false
}
func (k *Kompose) createDaemonSet(options ConvertOptions) bool {
if kubernetesProvider, ok := options.Provider.(Kubernetes); ok {
return *kubernetesProvider.Controller == string(DAEMONSET)
}
return false
}
func (k *Kompose) createReplicationController(options ConvertOptions) bool {
if kubernetesProvider, ok := options.Provider.(Kubernetes); ok {
return *kubernetesProvider.Controller == string(REPLICATION_CONTROLLER)
}
return false
}
func (k *Kompose) createChart(options ConvertOptions) bool {
if kubernetesProvider, ok := options.Provider.(Kubernetes); ok {
return kubernetesProvider.Chart
}
return false
}
func (k *Kompose) multiContainerMode(options ConvertOptions) bool {
if kubernetesProvider, ok := options.Provider.(Kubernetes); ok {
return kubernetesProvider.MultiContainerMode
}
return false
}
func (k *Kompose) serviceGroupMode(options ConvertOptions) string {
if kubernetesProvider, ok := options.Provider.(Kubernetes); ok {
return *kubernetesProvider.ServiceGroupMode
}
return ""
}
func (k *Kompose) serviceGroupName(options ConvertOptions) string {
if kubernetesProvider, ok := options.Provider.(Kubernetes); ok {
return kubernetesProvider.ServiceGroupName
}
return ""
}
func (k *Kompose) secretsAsFiles(options ConvertOptions) bool {
if kubernetesProvider, ok := options.Provider.(Kubernetes); ok {
return kubernetesProvider.SecretsAsFiles
}
return false
}
func (k *Kompose) createDeploymentConfig(options ConvertOptions) bool {
if _, ok := options.Provider.(Openshift); ok {
return true
}
return false
}
func (k *Kompose) insecureRepository(options ConvertOptions) bool {
if openshiftProvider, ok := options.Provider.(Openshift); ok {
return openshiftProvider.InsecureRepository
}
return false
}
func (k *Kompose) buildRepo(options ConvertOptions) string {
if openshiftProvider, ok := options.Provider.(Openshift); ok {
return openshiftProvider.BuildRepo
}
return ""
}
func (k *Kompose) buildBranch(options ConvertOptions) string {
if openshiftProvider, ok := options.Provider.(Openshift); ok {
return openshiftProvider.BuildRepo
}
return ""
}
func (k *Kompose) getProvider(options ConvertOptions) string {
if _, ok := options.Provider.(Openshift); ok {
return "openshift"
}
if _, ok := options.Provider.(Kubernetes); ok {
return "kubernetes"
}
return "kubernetes"
}
func (k *Kompose) getController(options ConvertOptions) string {
if kubernetesProvider, ok := options.Provider.(Kubernetes); ok {
return *kubernetesProvider.Controller
}
return ""
}

171
client/convert_test.go Normal file
View File

@ -0,0 +1,171 @@
package client
import (
"fmt"
v1 "k8s.io/api/core/v1"
"sort"
"testing"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
appsv1 "k8s.io/api/apps/v1"
)
func TestConvertError(t *testing.T) {
randomBuildValue := "random-build"
randomVolumeTypeValue := "random-volume-type"
randomKubernetesControllerValue := "random-controller"
randomKubernetesServiceGroupModeValue := "random-group-mode"
buildConfigValue := string(BUILD_CONFIG)
testCases := []struct {
options ConvertOptions
errorMessage string
}{
{
options: ConvertOptions{
Build: &randomBuildValue,
},
errorMessage: fmt.Sprintf("unexpected Value for Build field. Possible values are: %v, %v, and %v", string(LOCAL), string(BUILD_CONFIG), string(NONE)),
},
{
options: ConvertOptions{
VolumeType: &randomVolumeTypeValue,
},
errorMessage: fmt.Sprintf("unexpected Value for VolumeType field. Possible values are: %v, %v, %v, %v", string(PVC), string(EMPTYDIR), string(HOSTPATH), string(CONFIGMAP)),
},
{
options: ConvertOptions{
Provider: Kubernetes{
Controller: &randomKubernetesControllerValue,
},
},
errorMessage: fmt.Sprintf("unexpected Value for Kubernetes Controller field. Possible values are: %v, %v, and %v", string(DEPLOYMENT), string(DAEMONSET), string(REPLICATION_CONTROLLER)),
},
{
options: ConvertOptions{
Provider: Kubernetes{
ServiceGroupMode: &randomKubernetesServiceGroupModeValue,
},
},
errorMessage: fmt.Sprintf("unexpected Value for Kubernetes Service Groupe Mode field. Possible values are: %v, %v, ''", string(LABEL), string(VOLUME)),
},
{
options: ConvertOptions{
Provider: Kubernetes{},
Build: &buildConfigValue,
},
errorMessage: fmt.Sprintf("the build value %v is only supported for Openshift provider", string(BUILD_CONFIG)),
},
}
client, err := NewClient()
assert.Check(t, is.Equal(err, nil))
for _, tc := range testCases {
_, err := client.Convert(tc.options)
assert.Check(t, is.Equal(err.Error(), tc.errorMessage))
}
}
func TestConvertWithDefaultOptions(t *testing.T) {
client, err := NewClient(WithErrorOnWarning())
assert.Check(t, is.Equal(err, nil))
objects, err := client.Convert(ConvertOptions{
ToStdout: true,
InputFiles: []string{
"./testdata/docker-compose.yaml",
},
})
assert.Check(t, is.Equal(err, nil))
for _, object := range objects {
if deployment, ok := object.(*appsv1.Deployment); ok {
assert.Check(t, is.Equal(int(*deployment.Spec.Replicas), 1))
}
}
}
func TestConvertWithProfiles(t *testing.T) {
client, err := NewClient(WithErrorOnWarning())
assert.Check(t, is.Equal(err, nil))
type Want struct {
deploymentsNames []string
servicesNames []string
}
tests := []struct {
name string
options ConvertOptions
want Want
}{
{
name: "No profiles provided",
options: ConvertOptions{
ToStdout: true,
InputFiles: []string{
"./testdata/docker-compose-profiles.yaml",
},
},
want: Want{
deploymentsNames: nil,
servicesNames: nil,
},
},
{
name: "All profiles provided",
options: ConvertOptions{
ToStdout: true,
InputFiles: []string{
"./testdata/docker-compose-profiles.yaml",
},
Profiles: []string{"hello", "world"},
},
want: Want{
deploymentsNames: []string{"backend", "frontend", "database"},
servicesNames: []string{"backend", "frontend", "database"},
},
},
{
name: "One profile only",
options: ConvertOptions{
ToStdout: true,
InputFiles: []string{
"./testdata/docker-compose-profiles.yaml",
},
Profiles: []string{"hello"},
},
want: Want{
deploymentsNames: []string{"backend", "frontend"},
servicesNames: []string{"backend", "frontend"},
},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
objects, err := client.Convert(tt.options)
assert.Check(t, is.Equal(err, nil))
sort.Strings(tt.want.deploymentsNames)
sort.Strings(tt.want.servicesNames)
var deploymentsNames []string
var servicesNames []string
for _, object := range objects {
if deployment, ok := object.(*appsv1.Deployment); ok {
deploymentsNames = append(deploymentsNames, deployment.Name)
}
if service, ok := object.(*v1.Service); ok {
servicesNames = append(servicesNames, service.Name)
}
}
sort.Strings(deploymentsNames)
sort.Strings(servicesNames)
assert.Check(t, is.DeepEqual(deploymentsNames, tt.want.deploymentsNames))
assert.Check(t, is.DeepEqual(servicesNames, tt.want.servicesNames))
})
}
}

25
client/options.go Normal file
View File

@ -0,0 +1,25 @@
package client
// Opt is a configuration option to initialize a client
type Opt func(*Kompose) error
func WithSuppressWarnings() Opt {
return func(k *Kompose) error {
k.suppressWarnings = true
return nil
}
}
func WithVerboseOutput() Opt {
return func(k *Kompose) error {
k.verbose = true
return nil
}
}
func WithErrorOnWarning() Opt {
return func(k *Kompose) error {
k.errorOnWarning = true
return nil
}
}

61
client/options_test.go Normal file
View File

@ -0,0 +1,61 @@
package client
import (
"testing"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
func TestNewClientWithOpts(t *testing.T) {
testCases := []struct {
expectedError error
expectedSuppressWarnings bool
expectedVerbose bool
expectedErrorOnWarnings bool
opts []Opt
}{
{
expectedError: nil,
expectedSuppressWarnings: false,
expectedVerbose: false,
expectedErrorOnWarnings: false,
opts: []Opt{},
},
{
expectedError: nil,
expectedSuppressWarnings: true,
expectedVerbose: false,
expectedErrorOnWarnings: false,
opts: []Opt{WithSuppressWarnings()},
},
{
expectedError: nil,
expectedSuppressWarnings: false,
expectedVerbose: true,
expectedErrorOnWarnings: false,
opts: []Opt{WithVerboseOutput()},
},
{
expectedError: nil,
expectedSuppressWarnings: false,
expectedVerbose: false,
expectedErrorOnWarnings: true,
opts: []Opt{WithErrorOnWarning()},
},
{
expectedError: nil,
expectedSuppressWarnings: true,
expectedVerbose: false,
expectedErrorOnWarnings: true,
opts: []Opt{WithErrorOnWarning(), WithSuppressWarnings()},
},
}
for _, tc := range testCases {
client, err := NewClient(tc.opts...)
assert.Check(t, is.Equal(err, tc.expectedError))
assert.Check(t, is.Equal(client.errorOnWarning, tc.expectedErrorOnWarnings))
assert.Check(t, is.Equal(client.verbose, tc.expectedVerbose))
assert.Check(t, is.Equal(client.suppressWarnings, tc.expectedSuppressWarnings))
}
}

View File

@ -0,0 +1,17 @@
version: '3'
services:
backend:
image: dummy:tag
profiles: ['hello', 'world']
ports:
- "80:80"
frontend:
image: dummy:tag
profiles: [ 'hello' ]
ports:
- "80:80"
database:
image: dummy:tag
profiles: [ 'world' ]
ports:
- "80:80"

7
client/testdata/docker-compose.yaml vendored Normal file
View File

@ -0,0 +1,7 @@
version: '3'
services:
web:
image: nginx:latest
ports:
- "80:80"

70
client/types.go Normal file
View File

@ -0,0 +1,70 @@
package client
type ConvertBuild string
const (
LOCAL ConvertBuild = "local"
BUILD_CONFIG ConvertBuild = "build-config"
NONE ConvertBuild = "none"
)
type KubernetesController string
const (
DEPLOYMENT KubernetesController = "deployment"
DAEMONSET KubernetesController = "daemonSet"
REPLICATION_CONTROLLER KubernetesController = "replicationController"
)
type ServiceGroupMode string
const (
LABEL ServiceGroupMode = "label"
VOLUME ServiceGroupMode = "volume"
)
type VolumeType string
const (
PVC = "persistentVolumeClaim"
EMPTYDIR = "emptyDir"
HOSTPATH = "hostPath"
CONFIGMAP = "configMap"
)
type ConvertOptions struct {
Build *string
PushImage bool
PushImageRegistry string
GenerateJson bool
ToStdout bool
OutFile string
Replicas *int
VolumeType *string
PvcRequestSize string
WithKomposeAnnotations *bool
InputFiles []string
Profiles []string
Provider
GenerateNetworkPolicies bool
}
type Provider interface{}
type Kubernetes struct {
Provider
Chart bool
Controller *string
MultiContainerMode bool
ServiceGroupMode *string
ServiceGroupName string
SecretsAsFiles bool
}
type Openshift struct {
Provider
DeploymentConfig bool
InsecureRepository bool
BuildRepo string
BuildBranch string
}

View File

@ -63,7 +63,7 @@ func init() {
}
/*
Fish shell auto-completion support
Fish shell auto-completion support
*/
func runCompletionFish(out io.Writer, kompose *cobra.Command) error {
kompose.GenFishCompletion(out, true)
@ -79,12 +79,14 @@ complete -c kompose -n "__fish_seen_subcommand_from completion" -a "bash zsh fis
}
/*
This is copied from
https://github.com/kubernetes/kubernetes/blob/ea18d5c32ee7c320fe96dda6b0c757476908e696/pkg/kubectl/cmd/completion.go
in order to generate ZSH completion support.
This is copied from
https://github.com/kubernetes/kubernetes/blob/ea18d5c32ee7c320fe96dda6b0c757476908e696/pkg/kubectl/cmd/completion.go
in order to generate ZSH completion support.
*/
func runCompletionZsh(out io.Writer, kompose *cobra.Command) error {
zshInitialization := `
#compdef kompose
__kompose_bash_source() {
alias shopt=':'
alias _expand=_bash_expand

View File

@ -46,25 +46,45 @@ var (
ConvertDeploymentConfig bool
ConvertReplicas int
ConvertController string
ConvertProfiles []string
ConvertPushImage bool
ConvertNamespace string
ConvertPushImageRegistry string
ConvertOpt kobject.ConvertOptions
ConvertYAMLIndent int
GenerateNetworkPolicies bool
UpBuild string
BuildCommand string
PushCommand string
// WithKomposeAnnotation decides if we will add metadata about this convert to resource's annotation.
// default is true.
WithKomposeAnnotation bool
// MultipleContainerMode which enables creating multi containers in a single pod is a developping function.
// NoInterpolation decides if we will interpolate environment variables in the compose file.
NoInterpolate bool
// MultipleContainerMode which enables creating multi containers in a single pod is a developing function.
// default is false
MultipleContainerMode bool
ServiceGroupMode string
ServiceGroupName string
// SecretsAsFiles forces secrets to result in files inside a container instead of symlinked directories containing
// files of the same name. This reproduces the behavior of file-based secrets in docker-compose and should probably
// be the default for kompose, but we must keep compatibility with the previous behavior.
// See https://github.com/kubernetes/kompose/issues/1280 for more details.
SecretsAsFiles bool
)
var convertCmd = &cobra.Command{
Use: "convert [file]",
Short: "Convert a Docker Compose file",
Use: "convert",
Short: "Convert a Compose file",
Example: ` kompose --file compose.yaml convert
kompose -f first.yaml -f second.yaml convert
kompose --provider openshift --file compose.yaml convert`,
PreRun: func(cmd *cobra.Command, args []string) {
// Check that build-config wasn't passed in with --provider=kubernetes
@ -102,13 +122,30 @@ var convertCmd = &cobra.Command{
IsReplicaSetFlag: cmd.Flags().Lookup("replicas").Changed,
IsDeploymentConfigFlag: cmd.Flags().Lookup("deployment-config").Changed,
YAMLIndent: ConvertYAMLIndent,
Profiles: ConvertProfiles,
WithKomposeAnnotation: WithKomposeAnnotation,
NoInterpolate: NoInterpolate,
MultipleContainerMode: MultipleContainerMode,
ServiceGroupMode: ServiceGroupMode,
ServiceGroupName: ServiceGroupName,
SecretsAsFiles: SecretsAsFiles,
GenerateNetworkPolicies: GenerateNetworkPolicies,
BuildCommand: BuildCommand,
PushCommand: PushCommand,
Namespace: ConvertNamespace,
}
// Validate before doing anything else. Use "bundle" if passed in.
app.ValidateFlags(GlobalBundle, args, cmd, &ConvertOpt)
app.ValidateComposeFile(&ConvertOpt)
if ServiceGroupMode == "" && MultipleContainerMode {
ConvertOpt.ServiceGroupMode = "label"
}
app.ValidateFlags(args, cmd, &ConvertOpt)
// Since ValidateComposeFiles returns an error, let's validate it and output the error appropriately if the validation fails
err := app.ValidateComposeFile(&ConvertOpt)
if err != nil {
log.Fatalf("Error validating compose file: %v", err)
}
},
Run: func(cmd *cobra.Command, args []string) {
@ -134,6 +171,10 @@ func init() {
convertCmd.Flags().MarkHidden("replication-controller")
convertCmd.Flags().MarkHidden("deployment")
convertCmd.Flags().BoolVar(&MultipleContainerMode, "multiple-container-mode", false, "Create multiple containers grouped by 'kompose.service.group' label")
convertCmd.Flags().StringVar(&ServiceGroupMode, "service-group-mode", "", "Group multiple service to create single workload by `label`(`kompose.service.group`) or `volume`(shared volumes)")
convertCmd.Flags().StringVar(&ServiceGroupName, "service-group-name", "", "Using with --service-group-mode=volume to specific a final service name for the group")
convertCmd.Flags().MarkDeprecated("multiple-container-mode", "use --service-group-mode=label")
convertCmd.Flags().BoolVar(&SecretsAsFiles, "secrets-as-files", false, "Always convert docker-compose secrets into files instead of symlinked directories")
// OpenShift only
convertCmd.Flags().BoolVar(&ConvertDeploymentConfig, "deployment-config", true, "Generate an OpenShift deploymentconfig object")
@ -149,25 +190,32 @@ func init() {
// Standard between the two
convertCmd.Flags().StringVar(&ConvertBuild, "build", "none", `Set the type of build ("local"|"build-config"(OpenShift only)|"none")`)
convertCmd.Flags().BoolVar(&ConvertPushImage, "push-image", false, "If we should push the docker image we built")
convertCmd.Flags().StringVar(&ConvertPushImageRegistry, "push-image-registry", "", "Specify registry for pushing image, which will override registry from image name.")
convertCmd.Flags().StringVar(&BuildCommand, "build-command", "", `Set the command used to build the container image, which will override the docker build command. Should be used in conjuction with --push-command flag.`)
convertCmd.Flags().StringVar(&PushCommand, "push-command", "", `Set the command used to push the container image. override the docker push command. Should be used in conjuction with --build-command flag.`)
convertCmd.Flags().StringVar(&ConvertPushImageRegistry, "push-image-registry", "", "Specify registry for pushing image, which will override registry from image name")
convertCmd.Flags().BoolVarP(&ConvertYaml, "yaml", "y", false, "Generate resource files into YAML format")
convertCmd.Flags().MarkDeprecated("yaml", "YAML is the default format now.")
convertCmd.Flags().MarkShorthandDeprecated("y", "YAML is the default format now.")
convertCmd.Flags().MarkDeprecated("yaml", "YAML is the default format now")
convertCmd.Flags().MarkShorthandDeprecated("y", "YAML is the default format now")
convertCmd.Flags().BoolVarP(&ConvertJSON, "json", "j", false, "Generate resource files into JSON format")
convertCmd.Flags().BoolVar(&ConvertStdout, "stdout", false, "Print converted objects to stdout")
convertCmd.Flags().StringVarP(&ConvertOut, "out", "o", "", "Specify a file name or directory to save objects to (if path does not exist, a file will be created)")
convertCmd.Flags().IntVar(&ConvertReplicas, "replicas", 1, "Specify the number of replicas in the generated resource spec")
convertCmd.Flags().StringVar(&ConvertVolumes, "volumes", "persistentVolumeClaim", `Volumes to be generated ("persistentVolumeClaim"|"emptyDir"|"hostPath" | "configMap")`)
convertCmd.Flags().StringVar(&ConvertPVCRequestSize, "pvc-request-size", "", `Specify the size of pvc storage requests in the generated resource spec`)
convertCmd.Flags().StringVarP(&ConvertNamespace, "namespace", "n", "", `Specify the namespace of the generated resources`)
convertCmd.Flags().BoolVar(&GenerateNetworkPolicies, "generate-network-policies", false, "Specify whether to generate network policies or not")
convertCmd.Flags().BoolVar(&WithKomposeAnnotation, "with-kompose-annotation", true, "Add kompose annotations to generated resource")
convertCmd.Flags().BoolVar(&NoInterpolate, "no-interpolate", false, "Keep environment variable names in the Compose file")
// Deprecated commands
convertCmd.Flags().BoolVar(&ConvertEmptyVols, "emptyvols", false, "Use Empty Volumes. Do not generate PVCs")
convertCmd.Flags().MarkDeprecated("emptyvols", "emptyvols has been marked as deprecated. Use --volumes empty")
convertCmd.Flags().MarkDeprecated("emptyvols", "emptyvols has been marked as deprecated. Use --volumes emptyDir")
convertCmd.Flags().IntVar(&ConvertYAMLIndent, "indent", 2, "Spaces length to indent generated yaml files")
convertCmd.Flags().StringArrayVar(&ConvertProfiles, "profile", []string{}, `Specify the profile to use, can use multiple profiles`)
// In order to 'separate' both OpenShift and Kubernetes only flags. A custom help page is created
customHelp := `Usage:{{if .Runnable}}
{{if .HasAvailableFlags}}{{appendIfNotPresent .UseLine "[flags]"}}{{else}}{{.UseLine}}{{end}}{{end}}{{if .HasAvailableSubCommands}}
@ -183,15 +231,14 @@ Available Commands:{{range .Commands}}{{if .IsAvailableCommand}}
{{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{ if .HasAvailableLocalFlags}}
Kubernetes Flags:
--daemon-set Generate a Kubernetes daemonset object (deprecated, use --controller instead)
-d, --deployment Generate a Kubernetes deployment object (deprecated, use --controller instead)
-c, --chart Create a Helm chart for converted objects
--replication-controller Generate a Kubernetes replication controller object (deprecated, use --controller instead)
--controller Set the output controller ("deployment"|"daemonSet"|"replicationController")
--service-group-mode Group multiple service to create single workload by "label"("kompose.service.group") or "volume"(shared volumes)
--service-group-name Using with --service-group-mode=volume to specific a final service name for the group
OpenShift Flags:
--build-branch Specify repository branch to use for buildconfig (default is current branch name)
--build-repo Specify source repository for buildconfig (default is current branch's remote url)
--deployment-config Generate an OpenShift deployment config object
--insecure-repository Specify to use insecure docker repository while generating Openshift image stream object
Flags:

View File

@ -21,6 +21,8 @@ import (
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
)
// Logrus hooks
@ -39,7 +41,6 @@ func (errorOnWarningHook) Fire(entry *log.Entry) error {
// TODO: comment
var (
GlobalBundle string
GlobalProvider string
GlobalVerbose bool
GlobalSuppressWarnings bool
@ -49,9 +50,13 @@ var (
// RootCmd root level flags and commands
var RootCmd = &cobra.Command{
Use: "kompose",
Short: "A tool helping Docker Compose users move to Kubernetes",
Long: `Kompose is a tool to help users who are familiar with docker-compose move to Kubernetes.`,
Use: "kompose",
Short: "A tool helping Compose users move to Kubernetes",
Long: `Kompose is a tool to help users who are familiar with docker-compose move to Kubernetes.`,
Example: ` kompose --file compose.yaml convert
kompose -f first.yaml -f second.yaml convert
kompose --provider openshift --file compose.yaml convert
kompose completion bash`,
SilenceErrors: true,
// PersistentPreRun will be "inherited" by all children and ran before *every* command unless
// the child has overridden the functionality. This functionality was implemented to check / modify
@ -81,11 +86,21 @@ var RootCmd = &cobra.Command{
if provider != "kubernetes" && provider != "openshift" {
log.Fatalf("%s is an unsupported provider. Supported providers are: 'kubernetes', 'openshift'.", GlobalProvider)
}
v := viper.New()
v.BindEnv("file", "COMPOSE_FILE")
cmd.Flags().VisitAll(func(f *pflag.Flag) {
configName := f.Name
if configName == "file" && !f.Changed && v.IsSet(configName) {
GlobalFiles = v.GetStringSlice(configName)
}
})
},
}
// Execute executes the root level command.
// It returns an erorr if any.
// It returns an error if any.
func Execute() error {
return RootCmd.Execute()
}
@ -94,11 +109,6 @@ func init() {
RootCmd.PersistentFlags().BoolVarP(&GlobalVerbose, "verbose", "v", false, "verbose output")
RootCmd.PersistentFlags().BoolVar(&GlobalSuppressWarnings, "suppress-warnings", false, "Suppress all warnings")
RootCmd.PersistentFlags().BoolVar(&GlobalErrorOnWarning, "error-on-warning", false, "Treat any warning as an error")
RootCmd.PersistentFlags().StringArrayVarP(&GlobalFiles, "file", "f", []string{}, "Specify an alternative compose file")
RootCmd.PersistentFlags().StringVarP(&GlobalBundle, "bundle", "b", "", "Specify a Distributed Application Bundle (DAB) file")
RootCmd.PersistentFlags().StringSliceVarP(&GlobalFiles, "file", "f", []string{}, "Specify an alternative compose file")
RootCmd.PersistentFlags().StringVar(&GlobalProvider, "provider", "kubernetes", "Specify a provider. Kubernetes or OpenShift.")
// Mark DAB / bundle as deprecated, see issue: https://github.com/kubernetes/kompose/issues/390
// As DAB is still EXPERIMENTAL
RootCmd.PersistentFlags().MarkDeprecated("bundle", "DAB / Bundle is deprecated, see: https://github.com/kubernetes/kompose/issues/390")
}

25
docs/404.html Normal file
View File

@ -0,0 +1,25 @@
---
permalink: /404.html
layout: default
---
<style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
</style>
<div class="container">
<h1>404</h1>
<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
</div>

1
docs/CNAME Normal file
View File

@ -0,0 +1 @@
kompose.io

32
docs/Gemfile Normal file
View File

@ -0,0 +1,32 @@
source "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 4.0.0"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.5"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12"
end
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
gem "tzinfo", "~> 1.2"
gem "tzinfo-data"
end
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?
gem "jekyll-redirect-from"

89
docs/Gemfile.lock Normal file
View File

@ -0,0 +1,89 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.1)
public_suffix (>= 2.0.2, < 6.0)
colorator (1.1.0)
concurrent-ruby (1.1.10)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
eventmachine (1.2.7)
ffi (1.15.5)
forwardable-extended (2.6.0)
http_parser.rb (0.8.0)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
jekyll (4.0.1)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (>= 0.9.5, < 2)
jekyll-sass-converter (~> 2.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.1)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 1.8)
jekyll-feed (0.17.0)
jekyll (>= 3.7, < 5.0)
jekyll-redirect-from (0.16.0)
jekyll (>= 3.3, < 5.0)
jekyll-sass-converter (2.2.0)
sassc (> 2.0.1, < 3.0)
jekyll-seo-tag (2.8.0)
jekyll (>= 3.8, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.4)
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.3.6)
minima (2.5.1)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (5.0.1)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.3.9)
rouge (3.30.0)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
tzinfo (1.2.10)
thread_safe (~> 0.1)
tzinfo-data (1.2022.7)
tzinfo (>= 1.0.0)
unicode-display_width (1.8.0)
wdm (0.1.1)
PLATFORMS
ruby
DEPENDENCIES
jekyll (~> 4.0.0)
jekyll-feed (~> 0.12)
jekyll-redirect-from
minima (~> 2.5)
tzinfo (~> 1.2)
tzinfo-data
wdm (~> 0.1.1)
BUNDLED WITH
2.4.4

25
docs/LICENSE Normal file
View File

@ -0,0 +1,25 @@
The MIT License (MIT)
Copyright (c) 2014-2016 GochoMugo <mugo@forfuture.co.ke>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to
whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall
be included in all copies or substantial portions of the
Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -1 +1,7 @@
Note: These /docs files are best viewed at [kompose.io](http://kompose.io)
View the site via:
```sh
bundle exec jekyll serve .
```
And visiting `localhost:4000` on your browser.

21
docs/_config.yml Normal file
View File

@ -0,0 +1,21 @@
title: Kompose
name: Kompose
email: foo@gmail.com
github_page: https://github.com/kubernetes/kompose
slack_page: https://slack.k8s.io
description: >- # this means to ignore newlines until "baseurl:"
Convert your Docker Compose file to Kubernetes or OpenShift
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
year: 2024
# Google Analytics number (starts with UA?)
analytics: 12345
instagram: https://www.instagram.com
facebook: https://www.facebook.com
# Build settings
theme: minima
plugins:
- jekyll-feed

72
docs/_data/dates.yml Normal file
View File

@ -0,0 +1,72 @@
- date: "Saturday May 8"
green: 20
yellow: 20
red: 20
- date: "Monday May 17"
green: 20
yellow: 20
red: 20
- date: "Monday May 31"
green: 20
yellow: 20
red: 20
- date: "Monday June 7"
green: 20
yellow: 20
red: 20
- date: "Monday June 14"
green: 20
yellow: 20
red: 20
- date: "Monday June 21"
green: 20
yellow: 20
red: 20
- date: "Monday July 5"
green: 20
yellow: 20
red: 20
- date: "Monday July 19"
green: 20
yellow: 20
red: 20
- date: "Monday July 26"
green: 20
yellow: 20
red: 20
- date: "Monday August 9"
green: 20
yellow: 20
red: 20
- date: "Monday August 16"
green: 20
yellow: 20
red: 20
- date: "Monday August 23"
green: 20
yellow: 20
red: 20
- date: "Monday August 30"
green: 20
yellow: 20
red: 20
- date: "Monday September 13"
green: 20
yellow: 20
red: 20
- date: "Friday September 24"
green: 20
yellow: 20
red: 20
- date: "Monday September 27"
green: 20
yellow: 20
red: 20
- date: "Monday October 4"
green: 20
yellow: 20
red: 20
- date: "Sunday October 10"
green: 20
yellow: 20
red: 20

6
docs/_data/menu.yml Normal file
View File

@ -0,0 +1,6 @@
other_links:
"Installation": "/installation/"
"Getting Started": "/getting-started/"
"User Guide": "/user-guide/"
"Conversion Matrix": "/conversion/"
"Architecture": "/architecture/"

2
docs/_foobar.yml Normal file
View File

@ -0,0 +1,2 @@
dates:
"May 8th 2021"

View File

@ -0,0 +1,50 @@
<!-- Footer -->
<div class="footer">
<div class="container text-center">
<span class="copyright">
We are a Kubernetes incubator graduated project and officially part of the Kubernetes group
<br>
Apache License 2.0 licensed project
<br>
© {{ site.year }} Kompose Authors -- All Rights Reserved
<br />
<a
class="trademarks"
href="https://www.linuxfoundation.org/legal/trademark-usage"
target="_blank"
ref="noopener"
>Trademarks</a
>
</span>
</div>
<div class="container">
<div class="row text-center">
<div class="col-lg-2 col-md-3 col-sm-12">
<div class="footer-logo">
<h2>{{ site.name }}</h2>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-12">
<ul class="footer-menu">
<!--
{% for item in site.data.menu.footer %}
<li><a href="{{ item[1] }}">{{ item[0] }}</a></li>
{% endfor %}
-->
</ul>
</div>
<div class="col-lg-4 col-md-3 col-sm-12">
<div class="footer-links">
<ul>
<li><a href="{{ site.slack_page }}" target="_blank"><img class="img-fluid" src="/assets/icons/slack.png" alt="Slack">Slack</a> </li>
<li><a href="{{ site.github_page }}" target="_blank"><img class="img-fluid" src="/assets/icons/github.png" alt="GitHub">GitHub</a> </li>
</ul>
</div>
</div>
</div>
<!-- Scroll To Top -->
<!--<a id="back-top" class="back-to-top js-scroll-trigger" href="#main"></a>-->
<!-- Scroll To Top Ends-->
</div>
</div>

46
docs/_includes/meta.html Normal file
View File

@ -0,0 +1,46 @@
<!-- Meta -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="{{site.description}}">
<!-- Cross-site Meta -->
<meta name="robots" content="index, follow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="language" content="English">
<!-- Metadata loading stuff-->
<link href="/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" media="all" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:200,300,400,400i,500,600,700%7CMontserrat:300,400,500%7CRoboto" rel="stylesheet">
<link rel="stylesheet" href="/assets/css/animate.css"> <!-- Resource style -->
<link rel="stylesheet" href="/assets/css/owl.carousel.css">
<link rel="stylesheet" href="/assets/css/owl.theme.css">
<link rel="stylesheet" href="/assets/css/magnific-popup.css">
<link rel="stylesheet" href="/assets/css/ionicons.min.css"> <!-- Resource style -->
<link rel="stylesheet" href="/assets/css/style.css">
<link rel="stylesheet" href="/assets/css/github-markdown.css">
<!-- Favicons -->
<!-- Generate using: https://realfavicongenerator.net/ and put information in /assets/favicons/ folder -->
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicons/favicon-16x16.png">
<link rel="manifest" href="/assets/favicons/site.webmanifest">
<link rel="mask-icon" href="/assets/favicons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/assets/favicons/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="/assets/favicons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<!-- ANALYTICS -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.analytics }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ site.analytics }}');
</script>

View File

@ -0,0 +1,18 @@
<!-- Navbar Section -->
<nav class="navbar navbar-expand-md navbar-light bg-light fixed-top">
<div class="container">
<a class="navbar-brand" href="/">
<img class="navbar-logo" src="/assets/images/logo.png" alt="logo"/>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto navbar-right">
{% for item in site.data.menu.other_links %}
<li class="nav-item"><a class="nav-link" href="{{ item[1] }}">{{ item[0] }}</a></li>
{% endfor %}
</ul>
</div>
</div>
</nav><!-- Navbar End -->

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<whtml lang="en">
<head>
<!-- Metadata -->
<meta charset="utf-8">
<title>{{ site.title }} - {{ page.title }}</title>
<meta name="title" content="{{ site.title }} - {{ page.title }}">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% include meta.html %}
</head>
<body>
<div class="wrapper">
{% include navbar.html %}
<div id="main" class="main">
<div class="first"><!-- Hero Section-->
<div class="container">
<div class="row">
<div class="markdown-body">
{{ content }}
</div>
</div>
<div class="questions flex-out align-center wow fadeIn">
<p>
</p>
</div>
</div>
</div><!-- Hero End -->
</div>
{% include footer.html %}
</div> <!-- Main -->
<!-- Jquery and Js Plugins -->
<script src="/assets/js/jquery-2.1.1.js"></script>
<script src="/assets/js/popper.min.js"></script>
<script src="/assets/js/jquery.validate.min.js"></script>
<script src="/assets/js/bootstrap.min.js"></script>
<script src="/assets/js/plugins.js"></script>
<script src="/assets/js/menu.js"></script>
<script src="/assets/js/custom.js"></script>
<script>
$('.navbar-nav>li>a').on('click', function(){
$('.navbar-collapse').collapse('hide');
});
</script>
</body>
</html>

155
docs/_layouts/index.html Normal file
View File

@ -0,0 +1,155 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Metadata -->
<meta charset="utf-8">
<title>{{ site.title }} - {{ site.description }}</title>
<meta name="title" content="{{ site.title }} - {{ site.description }}">
{% include meta.html %}
</head>
<body>
<div class="wrapper">
{% include navbar.html %}
<div id="main" class="main">
<div class="first home-3"><!-- Hero Section-->
<div class="questions flex-out align-center wow fadeIn">
<p>
An official Kubernetes project, located at <a href="https://github.com/kubernetes/kompose" target="_blank">github.com/kubernetes/kompose</a>
</p>
</div>
<div class="container">
<div class="row">
<div class="col-md-5">
<div class="hero-content wow fadeIn">
<div class="hero-content-inner">
<h4>Go from Docker Compose to Kubernetes</h4>
<h1>Kompose</h1>
<p>
Kompose is a conversion tool for Docker Compose to container orchestrators such as Kubernetes (or OpenShift).
</p>
<a class="btn-action" href="/installation">Installation</a>
</div>
</div>
</div>
<div class="col-md-7 markdown-body code-example">
{{ content }}
</div>
</div>
</div>
</div><!-- Hero End -->
<div id="what" class="what home-3"><!-- Hero Section-->
<div class="container">
<div class="flex-intro align-center wow fadeIn">
<h2>Get started on Kubernetes immediately</h2>
<p>
So easy your human companion could do it too!
</p>
</div>
<div class="row">
<div class="col-md-7">
<div class="hero-img loop-video">
<video class="embed-responsive drone-video" autoplay loop muted>
<source src="assets/video/cat.webm" type="video/webm" />
</video>
</div>
</div>
<div class="col-md-5">
<div class="hero-content wow fadeIn">
<div class="hero-content-inner">
<p>
Why do cats (and developers) like Kompose?
<br>
<br>
Developers love to simplify their development environment with Docker Compose.
<br>
<br>
With Kompose, you can now push the same file to a production container orchestrator!
</p>
<a class="btn-action" href="/getting-started">Getting Started</a>
</div>
</div>
</div>
</div>
</div>
</div><!-- Hero End -->
<div id="date" class="home home-3"><!-- Hero Section-->
<div class="container">
<div class="flex-intro align-center wow fadeIn">
<h2>Built for container engineers</h2>
<p>
Our conversions are not always 1-1 from Docker Compose to Kubernetes, but we will help get you 99% of the way there!
</p>
</div>
<div class="row">
<div class="col-md-5">
<div class="hero-content wow fadeIn">
<div class="hero-content-inner">
<h4>The awesome features</h4>
<p>
• Compatibility with multiple versions of Docker Compose
<br>
• A <a href="/conversion">conversion matrix</a> that outlines all compatible values and versions
<br>
• An in-depth <a href="/user-guide">user guide</a> to use advanced features such as LoadBalancer, Service and TLS
<br>
<a href="/user-guide#labels">Labels</a> that provide the extra 1% needed to get to 1-1 conversion
</p>
<a class="btn-action" href="/user-guide">User Guide</a>
</div>
</div>
</div>
<div class="col-md-7">
<div class="hero-img loop-video">
<video class="embed-responsive drone-video" autoplay loop muted>
<source src="assets/video/coding.webm" type="video/webm" />
</video>
</div>
</div>
</div>
</div>
</div><!-- Hero End -->
</div>
{% include footer.html %}
</div> <!-- Main -->
<!-- Jquery and Js Plugins -->
<script src="assets/js/jquery-2.1.1.js"></script>
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/jquery.validate.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/plugins.js"></script>
<script src="assets/js/menu.js"></script>
<script src="assets/js/custom.js"></script>
<script>
$('.navbar-nav>li>a').on('click', function(){
$('.navbar-collapse').collapse('hide');
});
</script>
</body>
</html>

View File

@ -1,29 +1,37 @@
---
layout: default
permalink: /architecture/
title: Architecture
redirect_from:
- /docs/architecture.md/
- /docs/architecture/
---
# Architecture and Internal Design
* TOC
{:toc}
`kompose` has 3 stages: Loader, Transformer and Outputter. Each Stage should have well defined interface so it is easy to write new Loader, Transformer or Outputters and plug it in. Currently only Loader and Transformer interfaces are defined.
`kompose` has 3 stages: _Loader_, _Transformer_ and _Outputter_. Each stage should have a well-defined interface, so it is easy to write a new Loader, Transformer, or Outputters and plug it in. Currently, only Loader and Transformer interfaces are defined.
![Design Diagram](/docs/images/design_diagram.png)
![Design Diagram](https://raw.githubusercontent.com/kubernetes/kompose/main/docs/images/design_diagram.png)
## Loader
Loader reads input file (now `kompose` supports [Docker Compose](https://docs.docker.com/compose) v1, v2 and [Docker Distributed Application Bundle](https://blog.docker.com/2016/06/docker-app-bundle/) file) and converts it to KomposeObject.
The Loader reads the input file now `kompose` supports [Compose](https://docs.docker.com/compose) v1, v2 and converts it to KomposeObject.
Loader is represented by a Loader interface:
```go
type Loader interface {
LoadFile(file string) kobject.KomposeObject
}
```
Every loader “implementation” should be placed into `kompose/pkg/loader` (like compose & bundle). More input formats will be supported in future. You can take a look for more details at:
Every loader “implementation” should be placed into `kompose/pkg/loader` (like compose). More input formats will be supported in the future. You can take a look for more details at:
* [kompose/pkg/loader](https://github.com/kubernetes/kompose/tree/master/pkg/loader)
* [kompose/pkg/loader/bundle](https://github.com/kubernetes/kompose/tree/master/pkg/loader/bundle)
* [kompose/pkg/loader/compose](https://github.com/kubernetes/kompose/tree/master/pkg/loader/compose)
- [kompose/pkg/loader](https://github.com/kubernetes/kompose/tree/master/pkg/loader)
- [kompose/pkg/loader/compose](https://github.com/kubernetes/kompose/tree/master/pkg/loader/compose)
## KomposeObject
@ -32,38 +40,38 @@ Every loader “implementation” should be placed into `kompose/pkg/loader` (li
```go
// KomposeObject holds the generic struct of Kompose transformation
type KomposeObject struct {
ServiceConfigs map[string]ServiceConfig
ServiceConfigs map[string]ServiceConfig
}
// ServiceConfig holds the basic struct of a container
type ServiceConfig struct {
ContainerName string
Image string
Environment []EnvVar
Port []Ports
Command []string
WorkingDir string
Args []string
Volumes []string
Network []string
Labels map[string]string
Annotations map[string]string
CPUSet string
CPUShares int64
CPUQuota int64
CapAdd []string
CapDrop []string
Entrypoint []string
Expose []string
Privileged bool
Restart string
User string
ContainerName string
Image string
Environment []EnvVar
Port []Ports
Command []string
WorkingDir string
Args []string
Volumes []string
Network []string
Labels map[string]string
Annotations map[string]string
CPUSet string
CPUShares int64
CPUQuota int64
CapAdd []string
CapDrop []string
Entrypoint []string
Expose []string
Privileged bool
Restart string
User string
}
```
## Transformer
Transformer takes KomposeObject and converts it to target/output format (at this moment, there are sets of kubernetes/openshift objects). Similar to `Loader`, Transformer is represented by a Transformer interface:
The Transformer takes KomposeObject and converts it to target/output format (currently, there are sets of Kubernetes/OpenShift objects). Similar to the `Loader`, Transformer is represented by a Transformer interface:
```go
type Transformer interface {
@ -71,12 +79,12 @@ type Transformer interface {
}
```
If you wish to add more providers which contain different kind of objects, transformer would be the place to look into. At this moment Kompose supports Kubernetes (by default) and Openshift providers. More details at:
If you wish to add more providers containing different kinds of objects, the Transformer would be the place to look into. Currently, Kompose supports Kubernetes (by default) and OpenShift providers. More details at:
* [kompose/pkg/transformer](https://github.com/kubernetes/kompose/tree/master/pkg/transformer)
* [kompose/pkg/transformer/kubernetes](https://github.com/kubernetes/kompose/tree/master/pkg/transformer/kubernetes)
* [kompose/pkg/transformer/openshift](https://github.com/kubernetes/kompose/tree/master/pkg/transformer/openshift)
- [kompose/pkg/transformer](https://github.com/kubernetes/kompose/tree/master/pkg/transformer)
- [kompose/pkg/transformer/Kubernetes](https://github.com/kubernetes/kompose/tree/master/pkg/transformer/kubernetes)
- [kompose/pkg/transformer/openshift](https://github.com/kubernetes/kompose/tree/master/pkg/transformer/openshift)
## Outputter
Outputter takes Transformer result and executes given action. For example action can be displaying result to stdout or directly deploying artifacts to Kubernetes/OpenShift.
The Outputter takes the Transformer result and executes the given action. For example, action can display results to stdout or directly deploy artifacts to Kubernetes/OpenShift.

2742
docs/assets/css/animate.css vendored Normal file

File diff suppressed because it is too large Load Diff

7
docs/assets/css/bootstrap.min.css vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

11
docs/assets/css/ionicons.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,63 @@
/*!
* jQuery Accordion 0.0.1
* (c) 2014 Victor Fernandez <victor@vctrfrnndz.com>
* MIT Licensed.
*/
/* Requirements */
[data-accordion] [data-content] {
overflow: hidden;
max-height: 0;
}
/* Basic Theme */
[data-accordion-group] {
padding: 20px;
box-shadow: 0 0px 15px rgba(0,0,0,0.06);
}
[data-control] {
cursor: pointer;
}
[data-accordion] {
line-height: 1;
}
[data-control],
[data-content] > * {
border-bottom: 1px solid #EEE;
padding: 10px;
}
[data-content] [data-accordion] {
border: 0;
padding: 0;
}
[data-accordion] [data-control] {
position: relative;
padding-right: 40px;
}
[data-accordion] > [data-control]:after {
content: "";
position: absolute;
right: 10px;
top: 12px;
font-size: 25px;
font-weight: 200;
color: #444;
height: 15px;
width: 24px;
background: url('../images/down.png') center center no-repeat;
background-size: 50%;
}
[data-accordion].open > [data-control]:after {
-webkit-transform: rotate(-180deg);
-ms-transform: rotate(-180deg);
transform: rotate(-180deg);
}

View File

@ -0,0 +1,351 @@
/* Magnific Popup CSS */
.mfp-bg {
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1042;
overflow: hidden;
position: fixed;
background: #0b0b0b;
opacity: 0.8; }
.mfp-wrap {
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1043;
position: fixed;
outline: none !important;
-webkit-backface-visibility: hidden; }
.mfp-container {
text-align: center;
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
padding: 0 8px;
box-sizing: border-box; }
.mfp-container:before {
content: '';
display: inline-block;
height: 100%;
vertical-align: middle; }
.mfp-align-top .mfp-container:before {
display: none; }
.mfp-content {
position: relative;
display: inline-block;
vertical-align: middle;
margin: 0 auto;
text-align: left;
z-index: 1045; }
.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
width: 100%;
cursor: auto; }
.mfp-ajax-cur {
cursor: progress; }
.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
cursor: -moz-zoom-out;
cursor: -webkit-zoom-out;
cursor: zoom-out; }
.mfp-zoom {
cursor: pointer;
cursor: -webkit-zoom-in;
cursor: -moz-zoom-in;
cursor: zoom-in; }
.mfp-auto-cursor .mfp-content {
cursor: auto; }
.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none; }
.mfp-loading.mfp-figure {
display: none; }
.mfp-hide {
display: none !important; }
.mfp-preloader {
color: #CCC;
position: absolute;
top: 50%;
width: auto;
text-align: center;
margin-top: -0.8em;
left: 8px;
right: 8px;
z-index: 1044; }
.mfp-preloader a {
color: #CCC; }
.mfp-preloader a:hover {
color: #FFF; }
.mfp-s-ready .mfp-preloader {
display: none; }
.mfp-s-error .mfp-content {
display: none; }
button.mfp-close,
button.mfp-arrow {
overflow: visible;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none;
display: block;
outline: none;
padding: 0;
z-index: 1046;
box-shadow: none;
touch-action: manipulation; }
button::-moz-focus-inner {
padding: 0;
border: 0; }
.mfp-close {
width: 44px;
height: 44px;
line-height: 44px;
position: absolute;
right: 0;
top: 0;
text-decoration: none;
text-align: center;
opacity: 0.65;
padding: 0 0 18px 10px;
color: #FFF;
font-style: normal;
font-size: 28px;
font-family: Arial, Baskerville, monospace; }
.mfp-close:hover,
.mfp-close:focus {
opacity: 1; }
.mfp-close:active {
top: 1px; }
.mfp-close-btn-in .mfp-close {
color: #333; }
.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
color: #FFF;
right: -6px;
text-align: right;
padding-right: 6px;
width: 100%; }
.mfp-counter {
position: absolute;
top: 0;
right: 0;
color: #CCC;
font-size: 12px;
line-height: 18px;
white-space: nowrap; }
.mfp-arrow {
position: absolute;
opacity: 0.65;
margin: 0;
top: 50%;
margin-top: -55px;
padding: 0;
width: 90px;
height: 110px;
-webkit-tap-highlight-color: transparent; }
.mfp-arrow:active {
margin-top: -54px; }
.mfp-arrow:hover,
.mfp-arrow:focus {
opacity: 1; }
.mfp-arrow:before,
.mfp-arrow:after {
content: '';
display: block;
width: 0;
height: 0;
position: absolute;
left: 0;
top: 0;
margin-top: 35px;
margin-left: 35px;
border: medium inset transparent; }
.mfp-arrow:after {
border-top-width: 13px;
border-bottom-width: 13px;
top: 8px; }
.mfp-arrow:before {
border-top-width: 21px;
border-bottom-width: 21px;
opacity: 0.7; }
.mfp-arrow-left {
left: 0; }
.mfp-arrow-left:after {
border-right: 17px solid #FFF;
margin-left: 31px; }
.mfp-arrow-left:before {
margin-left: 25px;
border-right: 27px solid #3F3F3F; }
.mfp-arrow-right {
right: 0; }
.mfp-arrow-right:after {
border-left: 17px solid #FFF;
margin-left: 39px; }
.mfp-arrow-right:before {
border-left: 27px solid #3F3F3F; }
.mfp-iframe-holder {
padding-top: 40px;
padding-bottom: 40px; }
.mfp-iframe-holder .mfp-content {
line-height: 0;
width: 100%;
max-width: 900px; }
.mfp-iframe-holder .mfp-close {
top: -40px; }
.mfp-iframe-scaler {
width: 100%;
height: 0;
overflow: hidden;
padding-top: 56.25%; }
.mfp-iframe-scaler iframe {
position: absolute;
display: block;
top: 0;
left: 0;
width: 100%;
height: 100%;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
background: #000; }
/* Main image in popup */
img.mfp-img {
width: auto;
max-width: 100%;
height: auto;
display: block;
line-height: 0;
box-sizing: border-box;
padding: 40px 0 40px;
margin: 0 auto; }
/* The shadow behind the image */
.mfp-figure {
line-height: 0; }
.mfp-figure:after {
content: '';
position: absolute;
left: 0;
top: 40px;
bottom: 40px;
display: block;
right: 0;
width: auto;
height: auto;
z-index: -1;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
background: #444; }
.mfp-figure small {
color: #BDBDBD;
display: block;
font-size: 12px;
line-height: 14px; }
.mfp-figure figure {
margin: 0; }
.mfp-bottom-bar {
margin-top: -36px;
position: absolute;
top: 100%;
left: 0;
width: 100%;
cursor: auto; }
.mfp-title {
text-align: left;
line-height: 18px;
color: #F3F3F3;
word-wrap: break-word;
padding-right: 36px; }
.mfp-image-holder .mfp-content {
max-width: 100%; }
.mfp-gallery .mfp-image-holder .mfp-figure {
cursor: pointer; }
@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
/**
* Remove all paddings around the image on small screen
*/
.mfp-img-mobile .mfp-image-holder {
padding-left: 0;
padding-right: 0; }
.mfp-img-mobile img.mfp-img {
padding: 0; }
.mfp-img-mobile .mfp-figure:after {
top: 0;
bottom: 0; }
.mfp-img-mobile .mfp-figure small {
display: inline;
margin-left: 5px; }
.mfp-img-mobile .mfp-bottom-bar {
background: rgba(0, 0, 0, 0.6);
bottom: 0;
margin: 0;
top: auto;
padding: 3px 5px;
position: fixed;
box-sizing: border-box; }
.mfp-img-mobile .mfp-bottom-bar:empty {
padding: 0; }
.mfp-img-mobile .mfp-counter {
right: 5px;
top: 3px; }
.mfp-img-mobile .mfp-close {
top: 0;
right: 0;
width: 35px;
height: 35px;
line-height: 35px;
background: rgba(0, 0, 0, 0.6);
position: fixed;
text-align: center;
padding: 0; } }
@media all and (max-width: 900px) {
.mfp-arrow {
-webkit-transform: scale(0.75);
transform: scale(0.75); }
.mfp-arrow-left {
-webkit-transform-origin: 0;
transform-origin: 0; }
.mfp-arrow-right {
-webkit-transform-origin: 100%;
transform-origin: 100%; }
.mfp-container {
padding-left: 6px;
padding-right: 6px; } }

View File

@ -0,0 +1,71 @@
/*
* Core Owl Carousel CSS File
* v1.3.3
*/
/* clearfix */
.owl-carousel .owl-wrapper:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
/* display none until init */
.owl-carousel{
display: none;
position: relative;
width: 100%;
-ms-touch-action: pan-y;
}
.owl-carousel .owl-wrapper{
display: none;
position: relative;
-webkit-transform: translate3d(0px, 0px, 0px);
}
.owl-carousel .owl-wrapper-outer{
overflow: hidden;
position: relative;
width: 100%;
}
.owl-carousel .owl-wrapper-outer.autoHeight{
-webkit-transition: height 500ms ease-in-out;
-moz-transition: height 500ms ease-in-out;
-ms-transition: height 500ms ease-in-out;
-o-transition: height 500ms ease-in-out;
transition: height 500ms ease-in-out;
}
.owl-carousel .owl-item{
float: left;
}
.owl-controls .owl-page,
.owl-controls .owl-buttons div{
cursor: pointer;
}
.owl-controls {
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
/* mouse grab icon */
.grabbing {
cursor:url(grabbing.png) 8 8, move;
}
/* fix */
.owl-carousel .owl-wrapper,
.owl-carousel .owl-item{
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
-webkit-transform: translate3d(0,0,0);
-moz-transform: translate3d(0,0,0);
-ms-transform: translate3d(0,0,0);
}

View File

@ -0,0 +1,79 @@
/*
* Owl Carousel Owl Demo Theme
* v1.3.3
*/
.owl-theme .owl-controls{
margin-top: 10px;
text-align: center;
}
/* Styling Next and Prev buttons */
.owl-theme .owl-controls .owl-buttons div{
color: #FFF;
display: inline-block;
zoom: 1;
*display: inline;/*IE7 life-saver */
margin: 5px;
padding: 3px 10px;
font-size: 12px;
-webkit-border-radius: 30px;
-moz-border-radius: 30px;
border-radius: 30px;
background: #869791;
filter: Alpha(Opacity=50);/*IE7 fix*/
opacity: 0.5;
}
/* Clickable class fix problem with hover on touch devices */
/* Use it for non-touch hover action */
.owl-theme .owl-controls.clickable .owl-buttons div:hover{
filter: Alpha(Opacity=100);/*IE7 fix*/
opacity: 1;
text-decoration: none;
}
/* Styling Pagination*/
.owl-theme .owl-controls .owl-page{
display: inline-block;
zoom: 1;
*display: inline;/*IE7 life-saver */
}
.owl-theme .owl-controls .owl-page span{
display: block;
width: 12px;
height: 12px;
margin: 5px 7px;
filter: Alpha(Opacity=50);/*IE7 fix*/
opacity: 0.5;
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
background: #869791;
}
.owl-theme .owl-controls .owl-page.active span,
.owl-theme .owl-controls.clickable .owl-page:hover span{
filter: Alpha(Opacity=100);/*IE7 fix*/
opacity: 1;
}
/* If PaginationNumbers is true */
.owl-theme .owl-controls .owl-page span.owl-numbers{
height: auto;
width: auto;
color: #FFF;
padding: 2px 10px;
font-size: 12px;
-webkit-border-radius: 30px;
-moz-border-radius: 30px;
border-radius: 30px;
}
/* preloading images */
.owl-item.loading{
min-height: 150px;
background: url(AjaxLoader.gif) no-repeat center center
}

3719
docs/assets/css/style.css Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/assets/favicons/mstile-150x150.png"/>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
</browserconfig>

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -0,0 +1,15 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="300.000000pt" height="300.000000pt" viewBox="0 0 300.000000 300.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.14, written by Peter Selinger 2001-2017
</metadata>
<g transform="translate(0.000000,300.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M0 1500 l0 -1500 1500 0 1500 0 0 1500 0 1500 -1500 0 -1500 0 0
-1500z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 603 B

View File

@ -0,0 +1,19 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/assets/favicons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/assets/favicons/android-chrome-256x256.png",
"sizes": "256x256",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}

Binary file not shown.

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 326 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
docs/assets/icons/c1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
docs/assets/icons/c2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

BIN
docs/assets/icons/c3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

BIN
docs/assets/icons/c4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
docs/assets/icons/c5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

BIN
docs/assets/icons/fb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
docs/assets/icons/in.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
docs/assets/icons/li.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
docs/assets/icons/p1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
docs/assets/icons/p3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

BIN
docs/assets/icons/p6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

BIN
docs/assets/icons/rev.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 992 B

BIN
docs/assets/icons/rev2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 992 B

BIN
docs/assets/icons/rev3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 992 B

BIN
docs/assets/icons/slack.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
docs/assets/icons/tt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
docs/assets/icons/tw.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
docs/assets/icons/up.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
docs/assets/images/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

BIN
docs/assets/images/logo.xcf Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 KiB

Some files were not shown because too many files have changed in this diff Show More