Commit Graph

16 Commits

Author SHA1 Message Date
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 561859382c
Use dynamic system agent applied dir (#763)
* Use dynamic system agent applied dir

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

* Use dynamic RKE2 data-dir

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

---------

Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2024-06-24 09:29:26 +02:00
Andrea Mazzotti c90990371c
Use YAML content for Elemental Agent config (#765)
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2024-06-19 15:49:19 +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
Fredrik Lönnegren 7c4804e323 New name is elemental-rootfs
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2024-03-14 15:55:45 +01:00
Andrea Mazzotti 6d7b1f57b0
Use /run/elemental and elemental- services (#675)
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2024-03-14 10:49:24 +01:00
Fredrik Lönnegren 1f447e5e17 Make linter happy
Revive linter added a new default rule for unused-parameters, update the
code to match.

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2024-02-12 09:52:35 +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
Fredrik Lönnegren 04747a6b6a
Add cloud-config support to seedImage (#399)
* Add cloud-init support to seedImage

This commit adds a field to the SeedImage Spec for a cloud-config that
will be included in the built ISO.

If the cloud-config field is not set an empty file will be added to the
ISOs iso-config dir.

The reconciliation will take place in case the cloud-config is changed
and the base64 encoded value is used in an annotation in order to see if
the value has changed.

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

* Linting

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

* Add seedImage unit-tests

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

---------

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2023-03-23 09:36:36 +01:00
Fredrik Lönnegren fe8f53f2d2 Unify logging
Use klog for all logging and remove logrus.

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2023-02-22 18:43:48 +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
Fredrik Lönnegren f3c45601c2 Change tar-file layout in elemental-support
Replace `/tmp/` with `elemental-support-`

Example:

```shell
$ tar tf m-d815bd22-6380-4fd6-a85f-120f9
elemental-support-120771762
elemental-support-120771762/NetworkManager.log
elemental-support-120771762/apps-describe.log
elemental-support-120771762/apps-resource.log
elemental-support-120771762/cattle-fleet-system-fleet-agent-d56d4c7b5-9px68-logs.log
elemental-support-120771762/cattle-system-cattle-cluster-agent-59b7cc4768-jb886-logs.log
elemental-support-120771762/cattle-system-system-upgrade-controller-7f9f559b4f-9vl6h-logs.log
elemental-support-120771762/cos-immutable-rootfs.log
elemental-support-120771762/cos-setup-boot.log
...
```

Fixes #205

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
2022-12-21 14:28:43 +01:00
Itxaka c309363362
Add version commands/flags for all binaries (#262)
Fixes https://github.com/rancher/elemental-operator/issues/261
2022-11-22 11:09:49 +01:00
Itxaka 8bdafd2cb4
Several improvements to the support command (#258)
* Several improvements to the support command

 - Remove : from names as it may not be supported on some systems
 - Fix kubectl finding
 - Fix missing kubeconfig in one command
 - Store also the resources description
 - Add apps, jobs and plans
 - Check kubectl/kubeconfig just once
 - Add missing namespaces
 - Add NetworkManager log

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

* Add missing namespace

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

* Rename kubectl var

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

Signed-off-by: Itxaka <igarcia@suse.com>
2022-11-21 13:55:50 +01:00
Itxaka 17d9d21693
support command improvements (#173) 2022-09-22 10:26:59 +02:00
Itxaka 10d362193a
Add a elemental-support binary (#109)
* Add a elemental-support binary

Allows to gather info about the running node, hostname, k8s resources,
systemd logs, etc..

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

* lint

Signed-off-by: Itxaka <igarcia@suse.com>
2022-08-03 12:19:07 +02:00