Commit Graph

1702 Commits

Author SHA1 Message Date
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