jose luis
60309de5b2
Merge branch 'main' into fix-1853
2024-04-25 21:14:29 +02: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
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
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
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
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
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
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