Commit Graph
589 Commits
Author SHA1 Message Date
Ludger d529bb9c41 clean double to lower 2024-10-30 23:37:49 +01:00
Ludger 470fb50146 fix upercas issue 2024-10-30 23:27:42 +01:00
Ludger Pottmeier a103f37f4a Update kubernetes.go
Fix issue #1942
2024-10-25 00:12:30 +02:00
favonia 0ace11079e feature: support UID:GID in the user key 2024-08-30 13:57:58 -05:00
Charlie Drage cbf2835db7 1.34.0 Release (#1890) 2024-06-02 19:20:46 -04: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
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 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
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 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
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