* Add new package to Dockerfile
* Update dependencies
* Add unit test helpers
* Add new machine registration controller
* Remove old machine registration controller
* Add rbac tag for secrets
* Fix container argument in chart
* Add labels to all created resources
* Add e2e test config
* Switch to using test config
* Update vendor
* Fix lint issues
* Change rancher namespace variable name
* Put do nothing test back
get the latest and gratest:
d273b29 tpm: add single step functions to perform attestation
baef878 Merge pull request #3 from fgiudici/status_in_dial_error
30058b5 Include more info in the error msg on Dial() error
a02dabe Merge pull request #4 from fgiudici/lint_add_comment
eab8ac2 Make the linter happy (add a comment)
89d72d3 Add EmulatedHostSeed option
Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
The module will be soon used to dump some more debugging data
go get -d github.com/sanity-io/litter
Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
* Generate v3.Setting code
Signed-off-by: Itxaka <igarcia@suse.com>
* Use the rancher cacerts for the registration
Also drops the cacert passing via chart, adds proper permissions to the
settings resource, adds the cache index and checks that indeed we are
returning a cacert on the registration url
Signed-off-by: Itxaka <igarcia@suse.com>
* fix lint
Signed-off-by: Itxaka <igarcia@suse.com>
* Drop manual rancherl-url and get the rancher url automatically
Drop any manual setup of rancher-url and use the settings to get the set
rancher-url
Signed-off-by: Itxaka <igarcia@suse.com>
* Small fix for getRancherCACert
Signed-off-by: Itxaka <igarcia@suse.com>
* Fix test setting the wrong url
Signed-off-by: Itxaka <igarcia@suse.com>
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>
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>
At the moment is collecting json output from logs for creating API data
and it's not a real controller. This will be fixed in a follow up.
Besides, relying on logging as we are doing it now, even with the
initContainer workaround is not correct as we
do not have guarantee from kubelet to store logs for us, so this is good
only for small amount of data.
Signed-off-by: Ettore Di Giacinto <edigiacinto@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>
- 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>
* 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>