* Update vendor
* Run generation tasks
* Minor fixes in Makefile
* Remove old code
* Add remaning controllers
* Minor e2e tests improvements
* Switch osversionchannel syncer to controll runtime
* Minor fixes in controllers
* Fix unit tests
* Add e2e test config
* Switch to using test config
* Update vendor
* Fix lint issues
* Change rancher namespace variable name
* Put do nothing test back
These changes are required to facilitate OBS code updates and builds by simply triggering OBS services. This allows updating code and rebuild in OBS based on github events such as on tag, on merge, on push...
Signed-off-by: David Cassany <dcassany@suse.com>
* register: build it with CGO
It's needed to be able to use TPM emulation.
* goreleaser: add entry for elemental-support
Signed-off-by: Loic Devulder <ldevulder@suse.com>
* 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>
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>
---
$make unit-tests
go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo@latest
go get github.com/onsi/gomega/...
ginkgo -r -v --covermode=atomic --coverprofile=coverage.out -p -r ./pkg/...
Failed to compile config:
config_suite_test.go:22:2: missing go.sum entry for module providing package github.com/onsi/ginkgo/v2 (imported by github.com/rancher/elemental-operator/pkg/config); to add:
go get -t github.com/rancher/elemental-operator/pkg/config
FAIL github.com/rancher/elemental-operator/pkg/config [setup failed]
FAIL
no composite coverage computed: all suites included programatically focused specs
Ginkgo ran 3 suites in 661.375947ms
There were failures detected in the following suites:
config ./pkg/config [Compilation failure]
Test Suite Failed
make: *** [Makefile:59: unit-tests] Error 1
Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
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>
* 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>
- 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>
- 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>
There was a mix of ros-operator and rancheros-operator.
This patch fixes it so its always rancheros-operator, even
changing the repos to have the full name so everything matches
Signed-off-by: Itxaka <igarcia@suse.com>
- 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>
- 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>