Commit Graph

36 Commits

Author SHA1 Message Date
Alexander Demicev 03988e1ef8 Kubebuilder: Add make tasks for different tools (#194)
* Add tools binaries to Makefile

* Run make generate

* Update github workflows

* Impove path to tools
2022-10-27 12:27:27 +02: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
Itxaka 09ab84500d
Add a target to setup a clean cluster (#79)
This target (ab)uses the ginkgo BeforeSuite to have a ready-to-test
cluster with all prerequisites installed for easy testing.

It will build the docker image for the operator, build the chart
pointing to that image, setup a kind cluster, load the docker image
locally built into the cluster and run an empty test which is done so
the BeforeSuite is run, which installs all the needed charts and the
operator into the system.

Signed-off-by: Itxaka <igarcia@suse.com>
2022-07-22 14:46:19 +00: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
David Cassany Viladomat 1d97f14de7
Merge elemental installer (#20)
* Move main into a cmd/operator package
* Add elemental-installer
* Adding installer unit tests
* Update Makefile
* Update .github/workflows/unit-tests.yaml
* Adapat Dockerfile and golreleaser to keep releasing and building elemental-operator as they used to

Signed-off-by: David Cassany <dcassany@suse.com>
Co-authored-by: Itxaka <igarcia@suse.com>
2022-07-07 14:47:32 +02:00
Jacob Payne c5a5dbd77f renamed to elemental-operator and switched to system agent 2022-06-30 16:01:13 +00:00
David Cassany 229245fb91
Add make target to test local changes in kind
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
Co-authored-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-04-04 16:56:06 +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 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 0832fc3823
Move helpers to standalone lib
- Also add nginx as ingress as is more compliant to kind
- Move out some common code pieces
- Address points from review

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-03-29 17:58:57 +02:00
Itxaka 26684d1888 Drop everything not needed for ros-operator
- Drops everything not needed for ros-operator
 - New simple Dockerfile
 - New jobs based on ros-operator only
 - Remove uneeded tests
 - Remove dependency on os2 images for integration tests
 - Use gorelease to release ros-operator binaries
 - Use docker to push ci images to ros-operator-ci registry on PR
 - Use docker to push master/tag images to ros-operator registry
 - Build chart indepently
 - Have a null test CI job for future integration tests

Signed-off-by: Itxaka <igarcia@suse.com>
2022-03-24 09:47:18 +01:00
Ettore Di Giacinto b1331abb2a
Add upgradeContainerSpec to ManagedOS and update wrangler (#66)
* Allow to specify a upgradeContainerSpec on ManagedOS

https://github.com/rancher-sandbox/os2/issues/59

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>

* Run go generate and update wrangler

Also pin golang.org/x/tools to latest, to workaround
https://github.com/golang/go/issues/37617

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>

* Update docs

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>

* Adapt to new wrangler signal context

9460166aed

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>

* Fixup license headers

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-03-23 18:27:39 +01:00
Itxaka 649ad79a9d
Use ros-operator image for the ros-operator chart (#40) 2022-03-08 14:18:07 +01:00
Ettore Di Giacinto 709cb9cadc
chart: generate chart image from IMAGE_REPO, use framework images
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-02-09 15:32:14 +01:00
Ettore Di Giacinto 97d58074ee
Refactor import paths
See: https://github.com/rancher-sandbox/cOS-toolkit/issues/1105

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-01-28 14:00:29 +01:00
Ettore Di Giacinto 8240a456b3
ci: move test utils inside tests
Also add rancherd smoke test

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-01-28 13:37:58 +01:00
Ettore Di Giacinto 2f3897eb0b
Remove -rock when creating user-data ISO
Workaround for https://github.com/rancher-sandbox/os2/issues/2

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-01-28 13:37:53 +01:00
Ettore Di Giacinto 1067e8f345
ci: Add pipeline to build project on GHA
- Add test and static analysis workflows
- Add test/release workflow
- Add smoke integration tests
- Support specifying a docker registry.
- Scope release test runs to pkg
- Add DOCKER_REGISTRY to dapper env

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
2022-01-28 13:37:52 +01:00
Darren Shepherd c35d85de48 Fix pxe install again 2021-11-30 20:19:22 -07:00
Darren Shepherd ce5c06925c Fix pxe install 2021-11-23 14:55:51 -07:00
Darren Shepherd 3f899e0784 Build custom ipxe and use hostbin for ros-operator 2021-11-08 22:16:28 -07:00
Darren Shepherd 4ea0019d5b Fix AWS build 2021-11-04 08:37:19 -07:00
Darren Shepherd 901973e5f6 Add TPM and MachineRegister support 2021-10-29 23:08:26 -07:00
Darren Shepherd db84312450 Fix installer 2021-10-24 17:07:48 -07:00
Darren Shepherd 4e708c8a1b Add install docs 2021-10-21 13:49:54 -07:00
Darren Shepherd 6a9bea4ebe Add initial docs framework 2021-10-20 16:01:11 -07:00
Darren Shepherd 4085b2977b Rename to rancher/os2 2021-10-20 12:19:44 -07:00
Darren Shepherd 5675644d9f Add operator 2021-10-20 10:58:54 -07:00
Darren Shepherd 0e46d19194 Add ipxe support 2021-10-13 16:01:08 -07:00
Darren Shepherd 53295b9228 Add arm64 2021-10-13 13:36:08 -07:00
Darren Shepherd 37f5c2c27c Include kernel, initrd, squashfs in the artifacts 2021-10-07 23:20:18 -07:00
Darren Shepherd 7eff0cf5af Move files to dist/artifacts 2021-10-05 21:00:21 -07:00
Darren Shepherd 72291094c0 Push framework image and fix rancherd 2021-10-02 23:14:04 -07:00
Darren Shepherd 3040e886dc Refactor build 2021-10-02 16:08:48 -07:00