Commit Graph

18 Commits

Author SHA1 Message Date
Itxaka
6634e18aa3
Respect user defined/default sizes on upgrade (#587) 2024-11-06 11:34:01 +01:00
Itxaka
e2c3a0e638
Read actual system configs during k8s upgrade (#579) 2024-10-16 12:36:19 +02:00
Itxaka
fbb64f2a82
Run tests in parallel and output github formats on workflow (#543)
* Run tests in parallel and output github formats on workflow

Signed-off-by: Itxaka <itxaka@kairos.io>

* Fix broken parallel tests

We were using a fixed file for the tests which several tests could be
accessing at the same time.

This fixes it by setting a temp random file at the test start

Signed-off-by: Itxaka <itxaka@kairos.io>

* Fix the tests logging to stdout

Signed-off-by: Itxaka <itxaka@kairos.io>

* Drop the verbose

Signed-off-by: Itxaka <itxaka@kairos.io>

* Fix agent test

Signed-off-by: Itxaka <itxaka@kairos.io>

* Let the event consumer create the logfile or whatever

Signed-off-by: Itxaka <itxaka@kairos.io>

* Drop Focus

Signed-off-by: Itxaka <itxaka@kairos.io>

---------

Signed-off-by: Itxaka <itxaka@kairos.io>
2024-09-17 17:51:11 +02:00
Itxaka
3e99d75331
Move to use our ghw clone (#535) 2024-09-17 15:27:31 +02:00
Itxaka
690c7e7acd Fix skipping paths under kubernetes
Signed-off-by: Itxaka <itxaka@kairos.io>
(cherry picked from commit c549aeb086)
2024-09-16 10:17:55 +02:00
Itxaka
7c6c195bd5
Fix upgrade size calculation inside k8s (#537)
Co-authored-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-09-13 13:07:17 +02:00
Itxaka
4401cedb80
Fix image size calculation on upgrade (#508) 2024-09-03 11:59:33 +02:00
Dimitris Karakasilis
0e8195b7a4
Fix other test
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-08-26 16:33:46 +03:00
Itxaka
abf92beac8
Bump to use vfs4 (#240) 2024-03-18 11:57:34 +01:00
Itxaka
2e0af77fbc
Use new logger facilities (#236) 2024-03-01 12:27:26 +01:00
Itxaka
e80a435c53
Fix --source flag (#205) 2024-01-23 17:05:54 +01:00
Mauro Morales
6d052581f2
Fix size calculation
test didn't check that the size was ever added (which it didn't)

Signed-off-by: Dimitris Karakasilis <dimitris@spectrocloud.com>
2023-10-20 12:49:35 +03:00
Mauro Morales
fdc7f49d1f Keep track of visited files for size calculation
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-10-19 22:11:13 +02:00
Dimitris Karakasilis
e0dfc79ed5
Unmarshal yaml after auto size calculation and fix tests
because we want the user's preferences to be applied last, thus
overriding whatever calculations we may do automatically.

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-10-02 12:28:33 +03:00
Dimitris Karakasilis
d1e84c186c
Fix minor syntax and linting issues
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-10-02 10:43:18 +03:00
Itxaka
48095b619f
Auto calculate partiton size on install (#121) 2023-08-07 14:35:15 +02:00
Itxaka
3c2697a6ad
Fix config loading, install device and call sanitize (#103)
* Fix config loading, install device and call sanitize

Syncs the cfg.install.device to the installspec.target
As on manual-install the device can actually come from a flag and its
not on the cloud-config, we need to initialize the InstallSpec with the
value of the cfg.Install.Device as by that time we already have the
final value of the install target.

Also calls sanitize on config and specs and warns if anything goes wrong

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Fix platform override and tests

The sanitize method for Config was never called so we never noticed that
its overriding the platform, even if we pass the WithPLatform option.

This patch fixes it by only overriding platform by default on sanitize
if the platform is empty, otherwise leave the platform on it values.

Also fixes the tests to use test facilities and a small fix to not try
to load the platform values form yaml

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Init the Install in the Config init

Just in case something tries to access it so they dont find a nil

Also adjusts some more tests

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

---------

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-07-25 19:36:01 +02:00
Itxaka
f7bdba2dda
Merge elemental config into agent config (#102) 2023-07-25 15:21:34 +02:00