Commit Graph

20 Commits

Author SHA1 Message Date
Francesco Giudici aa6474c618
operator: update RBAC for upgrade plans (#908)
Add "get" verb for Pod resources.

Fixes https://github.com/rancher/elemental/issues/1702

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2025-05-08 14:11:01 +02:00
Francesco Giudici 97db17d73b
make linter happy - update copyright dates (#899)
Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2025-01-31 15:33:47 +01:00
Andrea Mazzotti b18ff86465
Add managedosversion finalizer (#775)
* Implement ManagedOSVersion controller and finalizer

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

* Remove unused ManagedOSVersion Status

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

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
Co-authored-by: Francesco Giudici <francesco.giudici@gmail.com>
2024-06-25 17:24:53 +02:00
Andrea Mazzotti 9a93cc9147 Prevent system-upgrade-controller from using dotted names
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2024-05-07 18:20:24 +02:00
Andrea Mazzotti 0839780db8
Sanitize elemental-operator dependencies (#690)
* Update system-upgrade-controller API

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

* Update Fleet API

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

* Sanitize dependencies

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

---------

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2024-03-20 15:46:51 +01:00
Andrea Mazzotti 2ec3d21aa7
Fix ManagedOSImage cloudConfig (#671)
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2024-03-14 17:07:32 +01:00
Andrea Mazzotti 1fc13844fe
Drain nodes by default on upgrade (#660)
* Drain nodes by default on upgrade

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

* Make DrainSpec nullable

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

---------

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2024-03-11 14:52:51 +01:00
Andrea Mazzotti 716464cbc3
Enable ManagedOSImage updates (#658)
* Enable ManagedOSImage updates

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2024-03-07 12:34:47 +01:00
Andrea Mazzotti 634cf69a78
Add dev baseimage build (#619)
* Add build-docker-register for local development

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

* Fix managed os image version when using custom registry ports

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2024-02-16 10:00:32 +01:00
Fredrik Lönnegren da0776b710 Update copyright year (2024)
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2024-01-05 13:14:27 +01:00
David Cassany 24a5fdd972 Recreate service account token secret if missing
This commit checks on each reconcile loop if the service
account token secret is missing despite being on ready
state.

In addition it also adds optimistic locking for patch calls. The
motivations is to prevent concurrent controllers to modify
outdated data.

Signed-off-by: David Cassany <dcassany@suse.com>
2023-07-24 09:46:26 +02:00
David Cassany a5fecc08a5 Add ISO type in ManagedOSVersions
Signed-off-by: David Cassany <dcassany@suse.com>
2023-05-05 13:09:46 +02:00
David Cassany ab2415aec3 Merge default command and image in containersSpec
This commit makes use of the default and command and image values for
ManagedOSImage updateContianerSpec if they are not defined despite having
other updateContainerSpec values defined.

Signed-off-by: David Cassany <dcassany@suse.com>
2023-05-02 11:54:31 +02:00
David Cassany 81e4228400 Fix event filters
Signed-off-by: David Cassany <dcassany@suse.com>
2023-03-29 15:24:17 +02:00
David Cassany a226ad19ae Set object not found as a debug message
Signed-off-by: David Cassany <dcassany@suse.com>
2023-03-09 11:29:01 +01:00
David Cassany 4729e3be9e Update logs to not use info with custom depth
Signed-off-by: David Cassany <dcassany@suse.com>
2023-03-09 11:29:01 +01:00
Fredrik Lönnegren b9d1c82976
Copyright date-range 2022 - 2023 (#327)
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2023-01-13 10:30:48 +01:00
Alexander Demicev ebca28f734
Remove invalid conditions from objects (#284) 2022-12-12 14:14:50 +00:00
Alexander Demicev 3510a24d08 Backport minor fixes (#271) 2022-12-12 12:15:22 +01:00
Alexander Demicev 0edac91853 Add remaining controllers (#232)
* 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
2022-12-12 12:15:22 +01:00