Commit Graph

40 Commits

Author SHA1 Message Date
dependabot[bot] 10196238be Bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-22 13:00:42 +02:00
Andrea Mazzotti 08f6cda748
Build e2e chart locally (#852)
* Build e2e chart locally

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

* Add mockgen to build tools

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

* Add missing GINKGO tool

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

* Reduce e2e tests concurrency

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

* Make test more verbose

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

* Bump system-upgrade-controller version

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

* Raise timeout

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

* Print error

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

* Add plan crd

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

* Adjust timeout

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

* Do not deploy operator twice

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

* Restore vendored helper

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

* Do not attempt to delete pods multiple times

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

* Remove debug println

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

* Disable e2e workflow

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

* Update ele-testhelpers library

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>

---------

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2024-10-01 12:54:40 +00:00
David Cassany Viladomat d7a712d3ca
Update channels (#781)
* Update channels
* Adding a downgrade/upgrade charts e2e test
* Only fetch logs for running containers
* Do not fail fast in e2e matrix

Signed-off-by: David Cassany <dcassany@suse.com>
2024-07-02 17:53:15 +02:00
David Cassany d940c48a48 Update k8s and Rancher versions for the e2e tests
Signed-off-by: David Cassany <dcassany@suse.com>
2024-06-27 12:13:25 +02:00
Fredrik Lönnegren 620cef2a16 Bump github actions
Use the newer versions of:

* actions/cache             -> v4
* actions/checkout          -> v4
* actions/setup-go 	    -> v5
* actions/download-artifact -> v4
* actions/upload-artifact   -> v4

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2024-02-07 18:13:37 +01:00
Loic Devulder 3748944999 ci: bump k8s and Rancher Manager versions
Execute E2E tests on latest versions.

Signed-off-by: Loic Devulder <ldevulder@suse.com>
2023-10-12 15:39:57 +02:00
Loic Devulder bf86684ca6 Use helm/kind-action to install kind
Signed-off-by: Loic Devulder <ldevulder@suse.com>
2023-10-12 15:39:57 +02:00
Loic Devulder fc2698c898 ci: fix action versions used
It's usually not needed nor a good idea to fix a specific version for an
action, better to use the major version instead.

Signed-off-by: Loic Devulder <ldevulder@suse.com>
2023-10-12 15:39:57 +02:00
David Cassany b00bb69a31 Fix e2e workflow
Signed-off-by: David Cassany <dcassany@suse.com>
2023-10-03 14:47:12 +02:00
David Cassany 722eb25a2f Attempt to use charts from PR project in e2e tests
Signed-off-by: David Cassany <dcassany@suse.com>
2023-09-06 10:19:37 +02:00
David Cassany 7d89d3b15e Use OBS PR builds for the e2e tests
Signed-off-by: David Cassany <dcassany@suse.com>
2023-08-28 17:10:35 +02:00
Francesco Giudici c480bb352e tests: fix e2e workflow
Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2023-08-23 10:20:16 +02:00
David Cassany 45fca6e256 Adapt tests and Makefile
Signed-off-by: David Cassany <dcassany@suse.com>
2023-05-25 16:24:32 +02:00
David Cassany Viladomat 886a9985b1
Bump rancher and k8s for e2e tests (#449)
* Bump rancher and k8s for e2e tests

Signed-off-by: David Cassany <dcassany@suse.com>
2023-05-22 12:40:40 +02:00
Fredrik Lönnegren b27d2e6955
Update to go 1.19 (#408)
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2023-04-04 13:55:50 +02:00
Fredrik Lönnegren be858d22ec Update actions/download-artifact to v3.0.2
Fixes warnings about using `set-output`
https://github.com/actions/download-artifact/issues/185

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2023-02-15 14:54:04 +01:00
Fredrik Lönnegren 4ff2f73a75
Replace action engineerd/setup-kind (#328)
Since node16 actions are being deprecated and no action seems to be
taken.

This commit uses the jaxxstorm/action-install-gh-release action to
install the kind binaries instead.

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
Co-authored-by: Klaus Kämpf <kkaempf@suse.de>
2023-01-13 09:59:13 +00:00
Fredrik Lönnegren d452a355c7 Use go 1.18
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2023-01-12 11:13:23 +01:00
David Cassany Viladomat 3d0af6e620
Bump rancher version in e2e tests (#290)
Signed-off-by: David Cassany <dcassany@suse.com>
2022-12-12 16:06:32 +01:00
Alexander Demicev 077ab69a7f Kubebuilder: Add make tasks for different tools (#194)
* Add tools binaries to Makefile

* Run make generate

* Update github workflows

* Impove path to tools
2022-12-12 12:15:22 +01:00
Itxaka 4dc57ca988
tests: Add k8s 1.24 and default to rancher 2.6.9 (#220) 2022-10-19 17:22:32 +02:00
Itxaka 2e2b5a2034
tests: use latest url for rancher charts (#218) 2022-10-19 15:57:51 +02:00
Alexander Demicev 9c1d506fa9
Collect operator logs after running tests (#204) 2022-10-11 17:26:10 +02:00
Itxaka 41e9c17915
Enable deploying operator replicas (#150)
Enables deploying multiple operators replicas.

Changes tests to account and test this

Chart changes:
 - Make any fixed names default to the release name. As release name has
   to be unique per namespace, this is a good practice instead of
   hardcoding whatever name we want. This shouldnt affect anything as
   the full chart uses that by default now.

Signed-off-by: Itxaka <igarcia@suse.com>

Signed-off-by: Itxaka <igarcia@suse.com>
2022-08-31 16:36:56 +02:00
Itxaka ea7884e8df
Produce 2 binaries instead of one (#99)
* Produce 2 binaries instead of one

This generates a different binary for the register command as to not
bundle it with the full operator.

On the makefile separated builds have been done for operator and
registry.

On the docker image a different container is created for the register
and pushed to a different repo as well.

For releases gorelease generates 2 different binaries.

Signed-off-by: Itxaka <igarcia@suse.com>
2022-08-01 15:08:23 +00:00
Itxaka 190a6c0ff0
Push master merges to elemental-operator-ci (#100) 2022-08-01 14:47:06 +00:00
Itxaka 618d3c4da3
Log the version, commit and commit date on start (#43) 2022-07-15 09:50:18 +00:00
Itxaka a71f29eba0 [ci] Up the go version and restore the proper cache
We were restoring the cache of go always but we need to restore only if
the sha of the go.sum its the same, otherwise we need to recreate the
cache

Signed-off-by: Itxaka <igarcia@suse.com>
2022-07-11 15:26:19 +02:00
Itxaka 7f6baefb2a Restore sync-namespaces
There seems to have some confusion between the namespace of the operator
to run on and the namespaces we want the operator to watch

This restores the sync_namespaces so the operator can watch all
namespaces and sets teh namespace option to be where the operator is
runnig, needed for things like the registration url to be properly
served

Signed-off-by: Itxaka <igarcia@suse.com>
2022-07-11 15:13:22 +02:00
Itxaka 26464f0e69 Rework tests workflow
Signed-off-by: Itxaka <igarcia@suse.com>
2022-07-11 15:12:19 +02:00
Itxaka 74301fa37b Several fixes
Fix Dockerfile entrypoint
Fix some tests referring to old structs

Signed-off-by: Itxaka <igarcia@suse.com>
2022-07-11 15:12:19 +02:00
Itxaka 66f27ebca1 Add missing Dockerfile and adapt the version passed to operator
Signed-off-by: Itxaka <igarcia@suse.com>
2022-07-11 15:12:19 +02:00
Itxaka 5c5f1150cb Fix all the test, remove leftovers from transition
Remove all the mentions to rancheros-operator in tests, imports and
dependencies.

Restore e2e scripts and test targets on makefile

Fix all lint issues

Signed-off-by: Itxaka <igarcia@suse.com>
2022-07-11 15:12:19 +02:00
Ettore Di Giacinto 62896c4d99
Enhance tests
Co-authored-by: David Cassany <dcassany@suse.com>
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
Co-authored-by: Ettore Di Giacinto <edigiacinto@suse.com>
Co-authored-by: David Cassany <dcassany@suse.com>
2022-04-04 15:05:42 +02:00
David Cassany 771b592ee1
Allow to set a bridge ip
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
Co-authored-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-04-04 12:56:59 +02:00
Itxaka cdadf5439a
Merge branch 'main' into kind_improvements 2022-03-30 15:10:26 +02:00
Ettore Di Giacinto 8578a8a0c4
Allow to reuse the same cluster
This is particularly useful for local iteration

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-03-30 13:55:11 +02:00
Itxaka e50a2ea933 Only run e2e tests on PR or merged to master
Otherwise it duplicates on PR

Signed-off-by: Itxaka <igarcia@suse.com>
2022-03-30 12:33:39 +02:00
Itxaka d5288fcc17 Some kind improvements
- Allow setting different image versions for kubernetes
 - Set a matrix for kubernetes version on CI
 - Use kubectl wait to wait for control panel to be ready
 - Set default kubernetes version to latest rancher ready (v1.22.7)

Signed-off-by: Itxaka <igarcia@suse.com>
2022-03-30 12:33:39 +02:00
Ettore Di Giacinto c6fb200f8c
Drop integration tests, add e2e tests with kind
Fixes: https://github.com/rancher-sandbox/rancheros-operator/issues/2
Fixes: https://github.com/rancher-sandbox/rancheros-operator/issues/6

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-03-28 18:29:06 +02:00