jose luis
a19dd1416e
added \n
...
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com >
2024-04-10 20:56:50 +02:00
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
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
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
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
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
Charlie Drage
765fde2540
1.32.0 Release ( #1811 )
2024-01-18 10:02:06 -05:00
Tomer Zait
cd6a318896
Add Labels for CronJob https://github.com/kubernetes/kompose/issues/1795
2024-01-16 23:44:49 +02: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
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
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
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
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
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
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
AhmedGrati
53de2c44fd
fix failing unit tests
...
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com >
2023-10-24 23:08:34 +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
Kubernetes Prow Robot
f722bfb6c1
Merge pull request #1737 from AhmedGrati/fix-e2e-test
...
fix e2e test
2023-10-17 14:21:40 +02: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
axel7083
0302093e0a
fix: removing unused property
2023-09-21 22:09:18 +02:00
axel7083
a7c63a650c
Adding support for --profile cmd option
2023-09-17 17:41:05 +02:00
AhmedGrati
0be4868914
Fix expose conversion ( #1696 )
...
* fix: remove hostport from expose conversion
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com >
* test: update unit tests
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com >
---------
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com >
2023-08-28 08:55:00 -04:00
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
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
payamQorbanpour
554a0ea31e
Upgrade Kubernetes module to the latest version v0.27.3 ( #1677 )
2023-07-19 17:23:37 +01: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
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