Commit Graph
1635 Commits
Author SHA1 Message Date
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