Commit Graph

1702 Commits

Author SHA1 Message Date
Charlie Drage
29f6765fc6
feature: change example to use non-root (#1879)
#### 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:

This changes our example to use non-root so it runs well on non-root
clusters (ex. openshift).

We also add debugging tools so we can safely explore the container.

/tmp is also added as the directory for the replica or else it fails.

#### 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:

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2024-05-29 18:51:37 +02: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
Kubernetes Prow Robot
c7e783e87d
Merge pull request #1854 from sosan/fix-1853
fix 1853
2024-04-25 15:26:33 -07:00
jose luis
840cfa657d
update to go 1.22 and latest update
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-25 23:53:30 +02: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
487dab8712
update go-dockerclient to 1.11.0
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-25 23:33:41 +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
Kubernetes Prow Robot
e4ca58bcf2
Merge pull request #1848 from sosan/feature-1846-network_mode-service
add networkmode service:
2024-04-25 09:56:29 -07: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
jose luis
fb364020c2
added eof file
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-22 12:54:02 +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
154c6f63c0
add e2e to check env var with status value
Signed-off-by: jose luis <2064537+sosan@users.noreply.github.com>
2024-04-11 15:59:22 +02: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
Jose Luis
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
Kubernetes Prow Robot
14152d4a81
Merge pull request #1841 from sosan/fix-issue-1839
Adds ability to specify the stage/target of a multistage dockerfile
2024-03-21 05:18:09 -07: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
dependabot[bot]
ad04bc0894
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>
2024-03-16 22:08:35 +01: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
TessaIO
497809c81c
chore: unify e2e tests to compose yaml (#1834)
* chore: unify e2e tests to compose yaml

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>

* chore: update tests_new.sh to reflect changes of files names

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>

---------

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2024-03-01 15:21:54 -05:00
TessaIO
456c6f67ae
chore: replace AhmedGrati with TessaIO (#1835)
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
2024-03-01 15:20:10 -05: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