1
0
mirror of https://github.com/kairos-io/kairos-agent.git synced 2025-05-09 16:57:35 +00:00
Commit Graph

31 Commits

Author SHA1 Message Date
Dimitris Karakasilis
00ce75b285
Deprecate positional argument and cleanup unused code
because empty source caused an error, because of Sanitize() failing.
handleEmptySource was never called.

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-12-07 18:20:16 +02:00
Dimitris Karakasilis
691224a053
Deprecate positional version in kairos-agent upgrade command
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-12-07 15:47:21 +02:00
Dimitris Karakasilis
823343546a
Fix "upgrade list-releases" command by consuming kairos-sdk versioneer
Also add TODOs for remaining work

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-12-07 15:00:45 +02:00
Dimitris Karakasilis
faedd0fbae
Embed verioneer cli commands and fix duplicate command aliases
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-12-05 15:53:04 +02:00
Denis Luchkin-Zhou
234bb4b36e Add command to render a Go template with config and state as data context
Signed-off-by: Denis Luchkin-Zhou <wyvernzora@gmail.com>
2023-10-18 08:37:45 -07:00
Itxaka
1b967cccd8
[uki] Lyfecycle () 2023-10-03 11:15:17 +02:00
Dimitris Karakasilis
a10390e0a8
DRY the definition of "--source" flag
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 17:11:51 +03:00
Dimitris Karakasilis
7d18e6504a
[WIP] Add --source to various commands
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-29 11:45:58 +03:00
Dimitris Karakasilis
bf40c48812
Move checkRoot to main
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-14 16:06:41 +03:00
Dimitris Karakasilis
fddbf3f657
Check root permissions in commands that need it
Otherwise the error shown is not helpful (it fails too late with
confusing errors).

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-14 16:06:38 +03:00
Itxaka
3e9befa230
Add recovery upgrade flag to upgrade command + msg () 2023-08-07 16:11:13 +02:00
Itxaka
f5c01f73a4
Make unattended reset work ()
Our current example for cloud images on the docs on how to use the reset
with a cloud-config and a stage does not actually work as the tty
adquisition and such seems to be failing due tto not being properly run
in a tty.

This pathc introduces 2 new flags to the reset command.

reboot: Enable reboot after reset, overriding any config in the system.
This is only a enable switch, so if the flag is disabled but the config
says reset it will NOT override it.

unattended: Disables printing stuff into the screen, locking the
terminal and falling back to a new tty on run. Also enables fast mode
automatically.

Signed-off-by: Itxaka <itxaka@kairos.io>
2023-08-04 20:39:22 +02:00
Itxaka
f7bdba2dda
Merge elemental config into agent config () 2023-07-25 15:21:34 +02:00
Itxaka
5b945303c9
Drop runconfig in favour of config () 2023-07-25 11:08:27 +02:00
Itxaka
bca3277b7d
Rework install a bit more ()
Co-authored-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-07-25 09:12:39 +02:00
Itxaka
9bff3742c1
Load elemental config/spec from cloud config () 2023-07-20 15:53:48 +02:00
Itxaka
9c5731baa2
Rename go module kairos-agent () 2023-07-10 14:39:48 +02:00
Itxaka
629a0b2eee
Set debug flag in the main app () 2023-06-21 09:42:11 +02:00
Itxaka
b126f7ab00
Drop --local flag for image sources () 2023-06-21 09:39:59 +02:00
Itxaka
ed372395d2
Drop collector package and use sdk for it () 2023-06-14 14:44:22 +02:00
Dimitris Karakasilis
a113147f8a
1225 config collector elemental ()
Co-authored-by: Mauro Morales <mauro.morales@spectrocloud.com>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
Co-authored-by: Dimitris Karakasilis <dimitris@spectrocloud.com>
2023-06-07 11:28:37 +02:00
Itxaka
1e1638f258
Modify upgrade image flag to accept more formats ()
Co-authored-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-06-05 13:19:39 +00:00
Itxaka
ba72c14346
Add extended version command () 2023-06-05 12:40:23 +02:00
Mauro Morales
e23346ae44
Extract schema validation to SDK
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-05-26 12:38:54 +02:00
Itxaka
3c484d9885
Add debug flag in root cmd () 2023-05-24 10:39:17 +02:00
Itxaka
f3d5965041
Allow adding extra cloud-init paths to run-stage () 2023-05-18 16:23:18 +02:00
Itxaka
8680b0ae93
Add root path flag to install-bundle () 2023-05-18 12:10:09 +02:00
Itxaka
1afe3c2dbd
Run stages directly from code instead of shelling out ()
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-05-16 18:06:49 +02:00
Itxaka
ddfa30a4c6
Drop luet, image extractor, drop build code and multiarch images ()
Co-authored-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-05-16 16:06:49 +02:00
Itxaka
0b7fd24bc7
Allow overriding the schema version number () 2023-05-11 13:30:17 +02:00
Itxaka
8de8349a36 First pass at standalone kairos-agent
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-04-24 12:08:37 +02:00