Commit Graph

188 Commits

Author SHA1 Message Date
Itxaka
307eabbb36
Bump to latest yip (#134)
Signed-off-by: Itxaka <itxaka@kairos.io>
2023-09-04 09:56:15 +02:00
Itxaka
442973526e
Track active/passive boot for upgrade workflow (#133)
* Track active/passive boot for upgrade workflow

Track what are we booting from during upgrade in order to not backup
active into passive if we are booting from passive.

If we are booting from active or recovery the workflow keeps as it was,
backup active into passive, and then move the transition image into
active.

Signed-off-by: Itxaka <itxaka@kairos.io>
2023-09-01 15:19:28 +02:00
Itxaka
dffef50ca0
Several improvements for size calculation (#129) 2023-08-17 13:53:45 +02:00
renovate[bot]
639e787706
Update module github.com/pterm/pterm to v0.12.65 (#120)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-08 15:26:46 +02:00
renovate[bot]
1048a5b5f7
Update module github.com/labstack/echo/v4 to v4.11.1 (#117)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-08-08 15:26:11 +02:00
renovate[bot]
7d8de3b15a
Update module github.com/onsi/gomega to v1.27.10 (#99)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-08-08 15:25:16 +02:00
Itxaka
4108aa929e
Auto calculate image size on actions (#122) 2023-08-08 10:44:42 +02:00
renovate[bot]
c42ca694d2
Update module k8s.io/mount-utils to v0.27.4 (#93)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-03 20:01:10 +02:00
renovate[bot]
a28acbf63a
Update module github.com/kairos-io/kairos-sdk to v0.0.11 (#107)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-01 12:36:30 +02:00
Itxaka
f7bdba2dda
Merge elemental config into agent config (#102) 2023-07-25 15:21:34 +02:00
Itxaka
956f86f99c
Rework reboot/shutdown to use the hooks (#96) 2023-07-24 12:28:59 +02:00
renovate[bot]
fd22840d14
Update module github.com/spf13/viper to v1.16.0 (#50)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-20 15:53:34 +02:00
renovate[bot]
aa23d50d27
Update module github.com/pterm/pterm to v0.12.63 (#88)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-20 15:53:22 +02:00
renovate[bot]
21eb18423e
Update module github.com/kairos-io/kairos-sdk to v0.0.9 (#87)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-20 15:53:06 +02:00
renovate[bot]
239b583ec9
Update module github.com/jaypipes/ghw to v0.12.0 (#89)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-20 15:52:31 +02:00
renovate[bot]
520ca64f36
Update module github.com/onsi/ginkgo/v2 to v2.11.0 (#49)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-19 11:12:31 +02:00
renovate[bot]
9929366ba9
Update module k8s.io/mount-utils to v0.27.3 (#53)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-19 11:12:04 +02:00
Itxaka
9c5731baa2
Rename go module kairos-agent (#81) 2023-07-10 14:39:48 +02:00
Dimitris Karakasilis
e336c66b3f
Use the yip layout plugin (#72)
Co-authored-by: Dimitris Karakasilis <dimitris@spectrocloud.com>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-07-04 14:56:42 +02:00
Mauro Morales
7df8dfc83f
Merge pull request #47 from kairos-io/renovate/github.com-urfave-cli-v2-2.x
Update module github.com/urfave/cli/v2 to v2.25.7
2023-06-30 13:13:02 +02:00
Itxaka
f051fab7bc
Bump yip (#67) 2023-06-21 12:12:23 +02:00
Itxaka
b126f7ab00
Drop --local flag for image sources (#63) 2023-06-21 09:39:59 +02:00
Itxaka
ec67ddedbf
Bump yip to latest (#65) 2023-06-20 16:42:35 +02:00
renovate[bot]
c52acc3024
Update module github.com/urfave/cli/v2 to v2.25.7 2023-06-20 10:19:28 +00:00
Itxaka
738bfbdb69
Simplify rsync implementation (#61) 2023-06-20 12:18:31 +02:00
Itxaka
ed372395d2
Drop collector package and use sdk for it (#59) 2023-06-14 14:44:22 +02:00
Mauro Morales
ed66da8775 Don't rely on slices.Index implementation
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-06-13 17:52:45 +02:00
renovate[bot]
acff689bea
Update module github.com/kairos-io/kairos-sdk to v0.0.7 (#52)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-07 20:58:48 +02:00
renovate[bot]
97a2867255
Update module github.com/sirupsen/logrus to v1.9.3 (#46)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-06-07 16:17:11 +02:00
renovate[bot]
3ed4a92fdc
Update module github.com/pterm/pterm to v0.12.62 (#45)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-07 16:15:29 +02:00
renovate[bot]
c6ad38cb6a
Update module github.com/onsi/gomega to v1.27.8 (#44)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-06-07 16:08:08 +02:00
renovate[bot]
0d077cf64c
Update module github.com/distribution/distribution to v2.8.2+incompatible (#35)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-07 16:07:32 +02:00
renovate[bot]
2320b0385f
Update golang.org/x/exp digest to 2e198f4 (#25)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-07 16:04:49 +02:00
renovate[bot]
3a08b0c558
Update module github.com/itchyny/gojq to v0.12.13 (#43)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-07 16:03:08 +02:00
Dimitris Karakasilis
a113147f8a
1225 config collector elemental (#32)
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
Mauro Morales
11ffdc2ee7
Tidy
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-05-26 12:39:28 +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
e614b35fda
Bump sdk (#30) 2023-05-23 15:16:14 +02:00
Itxaka
d07b7dcca2
Bump sdk (#29) 2023-05-18 16:23:28 +02:00
Itxaka
0288fb111b
Bump sdk deps and adjust image extraction (#24) 2023-05-17 10:43:11 +02:00
Itxaka
ddfa30a4c6
Drop luet, image extractor, drop build code and multiarch images (#20)
Co-authored-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-05-16 16:06:49 +02:00
Itxaka
c43622b86e
Add missing patch (#17) 2023-05-09 14:56:12 +02:00
Itxaka
c70ae406ef
Drop kcrypt deps (#16) 2023-05-08 18:54:05 +02:00
Itxaka
002b8ba51f
Bring elemental-cli code into the agent (#13) 2023-05-05 18:43:21 +02:00
renovate[bot]
c8f53cf503 Update module github.com/Masterminds/semver/v3 to v3.2.1 (#1327)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-20 11:10:59 +00:00
Itxaka
97fb443344 bug: Fix version list (#1323)
* 🐛 Fix version list

First version in the list is the latest one.
Alos moves the check for same version above the current place, so it can
check before asking if you want to update to the same version

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

* 🌱 Rework versioning for upgrade

Use the semver lib to parse the versions into a proper collection where
it can be parsed and versions compared and sorted properly

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

* 🤖 lint

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

---------

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-04-20 09:57:58 +02:00
Mauro Morales
eb16cdc2b9 seedling: Prefix variable names with distro name in os-release (#1263)
* Use site variables to update image flavor and name

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Typo

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Prefix variable names with distro name in os-release

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Adapt tests to read os-release with prefix

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Adapt docs to show how to read os-release with prefix

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Update SDK to be aware of attr prefixes

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Adapt test with new variable names

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Temporarily print the os-release

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Check KAIROS_VERSION on tests and fallback to VERSION

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Match kubo ID and VERSION_ID

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Make kubo extension match any ID

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Test still fails, trying with surrounding quotes

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Reduce tests wait time

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Use tumbleweed for bundles tests

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Update docs about systemd-sysext

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* reduce wait time in reset tests

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-04-19 22:37:00 +02:00
renovate[bot]
383a33ea61 Update github.com/spectrocloud/peg digest to 2e15270 (#1264)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-18 16:23:15 +02:00
renovate[bot]
33e623e858 Update module github.com/pterm/pterm to v0.12.59 (#1305)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-18 11:47:26 +02:00
renovate[bot]
f8b7d2c449 Update module golang.org/x/oauth2 to v0.7.0 (#1267)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-18 11:44:02 +02:00