Commit Graph

238 Commits

Author SHA1 Message Date
renovate[bot]
bb2b7a7751 Update module github.com/santhosh-tekuri/jsonschema/v5 to v5.3.0 (#1250)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-18 11:43:32 +02:00
renovate[bot]
0a3060270f Update module github.com/swaggest/jsonschema-go to v0.3.49 (#1279)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-12 19:13:12 +02:00
renovate[bot]
16c237a726 Update module golang.org/x/net to v0.9.0 (#1266)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-07 22:50:40 +02:00
renovate[bot]
be2c77b965 Update module github.com/pterm/pterm to v0.12.58 (#1247)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-04 10:09:20 +02:00
Mauro Morales
86bfb27b8f arrow_up: Bump go in Earthly and workflows to ^1.20 (#1213)
* Bump go in Earthly and workflows to ^1.20

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

* Update go.mod version

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

* Lint

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

* Remove pin of go version to get the latest

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

* Remove minor version

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

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-03-30 16:42:25 +02:00
Dimitris Karakasilis
1083bcbc49 Run go mod tidy to fix errors
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-03-30 14:35:31 +03:00
renovate[bot]
2a4598d21a Update module github.com/kairos-io/kcrypt to v0.5.2 (#1218)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-30 14:28:33 +03:00
Dimitris Karakasilis
8e3f028846 Change module path according to Go docs (#1220)
https://go.dev/doc/modules/major-version

This way we can bump the kairos dependency on the provider-kairos repo

which otherwise produced the error:

```
~/workspace/kairos/provider-kairos (main)*$ go get -u github.com/kairos-io/kairos@v2.0.0-alpha3
go: github.com/kairos-io/kairos@v2.0.0-alpha3: invalid version: module contains a go.mod file, so module path must match major version ("github.com/kairos-io/kairos/v2")
```

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-03-30 14:18:53 +03:00
renovate[bot]
c9422d0813 Update module github.com/onsi/gomega to v1.27.6 (#1219)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-30 09:23:22 +02:00
Mauro Morales
a473a80cda sparkles: Custom partitioning refactor config (#1180)
* Introduce config/collector package

to split the collection of config sources out of the config package.

Each consumer of the new package will take care of unmarshalling the
yaml to a specific Config struct, do validations etc.

* Add tests and remove garbage
* Follow all config_url chains and test it
* Add missing options file and refactor cmdline code
* Consolidate the way we merge configs no matter where they come from
* Allow and use only files with valid headers

Config is  specific to Kairos while Collector is generic. This
will allow us to do validations which are just related to Kairos at the
config level, while including every type of key and querying of the full
yaml at the Collector level splitting the responsibilities of each
package.

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-03-29 16:25:38 +02:00
renovate[bot]
dae9f3b6ac Update module github.com/urfave/cli/v2 to v2.25.1 (#1195)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-29 09:21:34 +02:00
renovate[bot]
7850ab73ea Update module github.com/pterm/pterm to v0.12.57 (#1206)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-28 23:48:57 +00:00
renovate[bot]
c1b8125f29 Update module github.com/imdario/mergo to v0.3.15 (#1190)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-25 09:30:10 +01:00
renovate[bot]
8b57a0f12f Update module github.com/onsi/gomega to v1.27.5 (#1185)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-24 08:08:00 +01:00
renovate[bot]
32e27ec968 Update module github.com/onsi/ginkgo/v2 to v2.9.2 (#1184)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-23 22:09:43 +01:00
Itxaka
66a0145c50 Bump to newer sdk (#1166) 2023-03-18 10:27:18 +01:00
renovate[bot]
932c184f14 Update module github.com/imdario/mergo to v0.3.14 (#1148)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-16 12:25:38 +01:00
Itxaka
504ded3eeb sparkles: Use kairos-sdk module (#1140) 2023-03-15 15:45:00 +01:00
renovate[bot]
c6aedc8144 Update module github.com/itchyny/gojq to v0.12.12 (#1085)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-15 08:32:26 +01:00
renovate[bot]
b6ed132afe Update module github.com/swaggest/jsonschema-go to v0.3.48 (#1094)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-14 14:03:39 +01:00
renovate[bot]
2af41f7284 Update module github.com/pterm/pterm to v0.12.55 (#1086)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-14 14:03:00 +01:00
renovate[bot]
179146a386 Update module github.com/urfave/cli/v2 to v2.25.0 (#1098)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-14 14:01:13 +01:00
renovate[bot]
a222faf30a Update module github.com/onsi/gomega to v1.27.4 (#1129)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-14 13:59:36 +01:00
renovate[bot]
55d216a275 Update module golang.org/x/oauth2 to v0.6.0 (#1104)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-14 10:41:02 +01:00
Itxaka
6eadb04331 bug: downgrade yip (#1088)
Looks like yip 1.x is not working as expected, skipping stages and
whatnot

This downgrades it to a know working 0.11.x version until those issues
are fixed

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-03-10 13:42:15 +01:00
Itxaka
b74d671942 bug: Bump yip (#1082)
version 1.0.0 wont run all stages in certains cases

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-03-10 08:27:24 +01:00
Itxaka
11d03b1d87 Bump ghw and fix state (#1073)
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-03-09 17:18:37 +01:00
Oz Tiram
647845060e 🔧 Use random free port for Spice display and SSH (#832)
* Refactor tests to use the "VM" construct from peg

📖 Add cloud-config.json for v1.6.0 (#977)

:docs: Add cloud-config.json for v1.6.0

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

📖 Add documentation about schema validation (#978)

* 📖 Add documentation for cloud config validation

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

* Add image

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

* Move image to static dir

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

---------

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

🐛 Backport dracut patch for ubuntu 20 iscsi (#979)

🔧 Use random free port for Spice display and SSH

When running the install test with qemu, the second test will
fail because the 2nd machine will fail to start.
The failure is cause because the port of the previous machine is
still not freed.
Hence, let the install-test use a differnet random port if not
specified.
`GetFreePorts` copied from `kairos-io/kcrypt-challenger`.
Credits @jimmykarily.

Signed-off-by: Oz Tiram <oz@spectrocloud.com>

Update peg and use new VM interface

This enables creating mulitple VMs in parallel
as done in kairos-io/kcrypt-challenger.

Signed-off-by: Oz Tiram <oz@spectrocloud.com>

Handle possible collision of spice and SSH ports

Signed-off-by: Oz Tiram <oz@spectrocloud.com>

Migrate all tests to new PEG API

Signed-off-by: Oz Tiram <oz@spectrocloud.com>

Remove one more reference to old API.

Replace Machine.SendFile with vm.Scp

Signed-off-by: Oz Tiram <oz@spectrocloud.com>

Try and fix bundle_tests

Signed-off-by: Oz Tiram <oz@spectrocloud.com>

Temporarily disable many flavours

Signed-off-by: Oz Tiram <oz@spectrocloud.com>

Bump peg and fix code

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

Remove unecessary output and fix test issues

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

Make sure we install before we start checking things.

It seems that we were relying on previous tests to do the installation
because we only had one "Machine".

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

Bump peg to better handle "Sudo", dedup tests

and make sure installation has happened before every check

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

Wait until systemd service becomes active

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

Merge multiple similar tests into one

because the big overhead comes from the BeforeEach block which is the
same in all tests. The tests themselves are just checking differnet
things on similar VMs. By merging them we same a lot of time in
preparing the same env again and again.

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

Fix forgotten "Machine"

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

Bring all flavors back

This partly reverts commit aa029c20acd79c46122783aad030e2a5410a9374.

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

Merge similar tests an uncomment code

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

Fix fogotten global Machine function

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

Wait for systemd-sysext to do its thing

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

Fix forgotten global Sudo and remove gatherLogs

which wasn't working anyway

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

Fixes after rebase

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

Fix `source` not present in ubuntu/debian `/bin/sh`

and add debug output to failed test

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

* Bump peg to fix "read only filesystem" error in tests

50b63c0bf8

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

* Use "." instead of "source" in vm's "/bin/sh"

because "source" is not recognised in debian based flavors

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

* Bump peg to fix vm.Sudo problems

and remove redundant check.

Now peg just pipes the ssh command without creating tmp scripts

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

---------

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Co-authored-by: Mauro Morales <mauro.morales@spectrocloud.com>
Co-authored-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-03-01 23:55:40 +01:00
Ettore Di Giacinto
81a9680a14 seedling: Detect more information about runtime (#956)
* 🌱 Detect more information about runtime

This introduces a `system` and a `kairos` block available in
kairos-agent get state.

This allows for instance to query the agent for the kairos version as
such:

`kairos-agent get state kairos.version`

Part of #755

Signed-off-by: mudler <mudler@c3os.io>

* 🤖 Fixup tests

Signed-off-by: mudler <mudler@c3os.io>

---------

Signed-off-by: mudler <mudler@c3os.io>
2023-02-26 20:18:49 +01:00
renovate[bot]
29097a8522 Update module github.com/labstack/echo/v4 to v4.10.2 (#939)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-22 07:18:54 +01:00
renovate[bot]
5e53bb4eaa Update module github.com/urfave/cli/v2 to v2.24.4 (#904)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-21 16:52:59 +01:00
renovate[bot]
4e137b3815 Update module github.com/onsi/ginkgo/v2 to v2.8.3 (#915)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-20 21:43:51 +00:00
renovate[bot]
0ee3af7a71 Update module github.com/labstack/echo/v4 to v4.10.1 (#916)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-20 08:53:31 +01:00
renovate[bot]
b5a0966098 Update module github.com/onsi/gomega to v1.27.1 (#914)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-18 14:31:56 +01:00
renovate[bot]
d12dbea578 Update module github.com/onsi/ginkgo/v2 to v2.8.2 (#913)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-18 12:11:41 +01:00
renovate[bot]
5d7204b201 Update module github.com/onsi/gomega to v1.27.0 (#905)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-17 08:00:24 +00:00
renovate[bot]
81e584d4fc Update module github.com/onsi/ginkgo/v2 to v2.8.1 (#880)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-15 10:55:13 +00:00
renovate[bot]
c2a96f27e9 Update module golang.org/x/net to v0.7.0 (#889)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-14 21:25:19 +01:00
renovate[bot]
369e812ff7 Update github.com/spectrocloud/peg digest to 1780cee (#865)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-13 09:37:17 +01:00
renovate[bot]
f67a19eb68 Update module golang.org/x/oauth2 to v0.5.0 (#852)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-09 21:54:24 +01:00
renovate[bot]
d97396837b Update module golang.org/x/net to v0.6.0 (#851)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-09 09:54:35 +01:00
renovate[bot]
29ff3cd188 Update module github.com/kairos-io/kcrypt to v0.5.1 (#843)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-09 08:25:39 +01:00
Mauro Morales
e30f367793 seedling: Kairos config validator library (#798)
* Validate yaml

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

* lint feedback

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

* Validate User name with JsonSchema

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

* WIP users validation

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

* Add multiple examples for ssh keys

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

* Add example of complex validation with AnyOf

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

* Better business rule example with P2P

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

* Test with message for empty network_token

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

* Split into a file for each sub section

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

* Add install schema validations

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

* Add to main schema

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

* Add more tests for p2p

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

* Add install schema

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

* Validate fields between new and old schema

It also adds the missing ones

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

* Lint

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

* Remove temp debugging functions

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

* Add new fields in old schema

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

* Add documentation for all exported

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

* Move schemas into a directory of their own

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

* Add missing dot at end of comment

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

* Rebase master and add local_file to bundles

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

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-02-08 11:02:13 +01:00
renovate[bot]
dd871e5211 Update github.com/spectrocloud/peg digest to 5f48d83 (#837)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-07 16:58:24 +01:00
renovate[bot]
94b60ad264 Update module github.com/joho/godotenv to v1.5.1 (#820)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-07 02:19:26 +00:00
renovate[bot]
da147e5911 Update module github.com/mudler/yip to v1 (#825)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-06 21:01:10 +00:00
renovate[bot]
f58ffcd5f0 Update module github.com/urfave/cli/v2 to v2.24.3 (#807)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-04 11:23:23 +01:00
renovate[bot]
1d9ccf4f10 Update module github.com/erikgeiser/promptkit to v0.8.0 (#652)
* Update module github.com/erikgeiser/promptkit to v0.8.0

* 🎨 Adapt agent to new v0.8.0 promptkit version

Validation function for textinput now requires an error/nil instead of
a bool

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

---------

Signed-off-by: Itxaka <itxaka@spectrocloud.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Itxaka <itxaka@spectrocloud.com>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-02-04 11:22:57 +01:00
renovate[bot]
6cb6b1d818 Update module github.com/joho/godotenv to v1.5.0 (#817)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-04 10:14:37 +00:00
renovate[bot]
0993ea8609 Update module github.com/onsi/ginkgo/v2 to v2.8.0 (#783)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-30 22:12:19 +01:00
renovate[bot]
2ffdbb4fb6 Update github.com/spectrocloud/peg digest to a5208a0 (#735)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-30 16:18:12 +01:00
renovate[bot]
16daff5fcb Update module github.com/urfave/cli/v2 to v2.24.2 (#767)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-30 16:15:30 +01:00
renovate[bot]
522010d174 Update module github.com/onsi/ginkgo/v2 to v2.7.1 (#761)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-28 12:06:45 +01:00
renovate[bot]
0d87d85093 Update github.com/mudler/go-pluggable digest to 7710299 (#744)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-27 20:52:50 +01:00
Oz Tiram
9fec982cbb Add machine display (#726)
* 🔧 Enable spice in scripts/start_vm_qemu.sh

Signed-off-by: Oz Tiram <oz@spectrocloud.com>

* 🔧 add option specify display for qemu

This works only with https://github.com/spectrocloud/peg/pull/2
merged.

Signed-off-by: Oz Tiram <oz@spectrocloud.com>

* 🔧 add option to enable KVM

ISO=/home/oznt/Software/spectro-cloud/kairos/build/kairos-core-opensuse.iso \
   CREATE_VM=true USE_QEMU=true \
   MACHINE_DISPLAY="-vga qxl -spice port=5903,addr=127.0.0.1,disable-ticketing=yes" \
   KVM=true ginkgo run -v tests

Signed-off-by: Oz Tiram <oz@spectrocloud.com>

* Fix failing tests - qemu does not have /dev/sda

Signed-off-by: Oz Tiram <oz@spectrocloud.com>

* Update peg dependency

Signed-off-by: Oz Tiram <oz@spectrocloud.com>

Signed-off-by: Oz Tiram <oz@spectrocloud.com>
2023-01-27 09:01:16 +01:00
renovate[bot]
09c84f9bbb Update github.com/spectrocloud/peg digest to cdce224 (#725)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-25 21:26:34 +01:00
renovate[bot]
b664d94b8e Update github.com/spectrocloud/peg digest to 14235c0 (#719)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-25 00:42:40 +01:00
Mauro Morales
64e661937d arrow_up: Upgrade urfave/cli to v2 (#713)
Upgrade urfave/cli to v2

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

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-01-25 00:39:51 +01:00
renovate[bot]
6ced6fb3ba Update module github.com/urfave/cli to v1.22.12 (#702)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-24 11:05:43 +00:00
renovate[bot]
cbc0a39ed3 Update module github.com/onsi/gomega to v1.26.0 (#709)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-24 08:38:40 +01:00
renovate[bot]
42e268c75c Update module github.com/pterm/pterm to v0.12.54 (#701)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-23 00:24:23 +01:00
renovate[bot]
dba7495edb Update module github.com/kairos-io/kcrypt to v0.5.0 (#678)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-19 12:02:39 +01:00
Dimitris Karakasilis
ab04ccb0fc Use new kcrypt/config package (#669)
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-01-18 15:14:57 +02:00
renovate[bot]
5015ce7cd1 Update module github.com/onsi/gomega to v1.25.0 (#664)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-18 11:38:22 +01:00
renovate[bot]
2054d40724 Update module github.com/labstack/echo/v4 to v4.10.0 (#609)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-18 11:33:23 +01:00
renovate[bot]
5a43812f5c Update module github.com/onsi/ginkgo/v2 to v2.7.0 (#623)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-18 11:32:57 +01:00
renovate[bot]
2c06307a28 Update module github.com/urfave/cli to v1.22.11 (#655)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-18 11:32:04 +01:00
Dimitris Karakasilis
64bd8e9b3b Merge pull request #665 from kairos-io/399_deeply_merge_configs
Deeply merge yamls in original data
2023-01-18 11:16:05 +02:00
renovate[bot]
7a99d4c453 Update module golang.org/x/oauth2 to v0.4.0 (#607)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-06 15:09:58 +01:00
Mauro Morales
50981936b1 arrow_up: update github.com/mudler deps (#617)
* :arrow-up: Update deps from github.com/mudler

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

* tidy

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

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-01-06 15:09:30 +01:00
renovate[bot]
418cb2c390 Update module github.com/pterm/pterm to v0.12.53 (#613)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-06 10:17:41 +01:00
Ettore Di Giacinto
6841584d47 seedling: Webui installer (#587)
* 🌱 Add webui

Signed-off-by: mudler <mudler@c3os.io>

* 🌱 Re-read config files after loading bundles

Signed-off-by: mudler <mudler@c3os.io>

* [check-spelling] Update metadata

Update for https://github.com/kairos-io/kairos/actions/runs/3806058276/attempts/1
Accepted in https://github.com/kairos-io/kairos/pull/587#issuecomment-1367859480

Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
Signed-off-by: mudler <mudler@c3os.io>

* 🎨 Beautify index page

Signed-off-by: mudler <mudler@c3os.io>

* Do not rerun if we were successful or we are already running

Signed-off-by: mudler <mudler@c3os.io>

* Add syntax highlight

Signed-off-by: mudler <mudler@c3os.io>

* Add error message

Signed-off-by: mudler <mudler@c3os.io>

* Add YAML validation and highlight

Signed-off-by: mudler <mudler@c3os.io>

* Fixup terminal output

Signed-off-by: mudler <mudler@c3os.io>

* Fix newlines

Signed-off-by: mudler <mudler@c3os.io>

* fixups

Signed-off-by: mudler <mudler@c3os.io>

* 🎨 Fixup lint issues

Signed-off-by: mudler <mudler@c3os.io>

* Mark dependencies

Signed-off-by: mudler <mudler@c3os.io>

* Let configure the listening address

Signed-off-by: mudler <mudler@c3os.io>

Signed-off-by: mudler <mudler@c3os.io>
Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
2023-01-05 14:15:05 +01:00
renovate[bot]
1deebd0155 Update module github.com/pterm/pterm to v0.12.51 (#586)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-24 08:35:05 +01:00
renovate[bot]
a42b17ebea Update module github.com/itchyny/gojq to v0.12.11 (#585)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-24 08:34:42 +01:00
renovate[bot]
c29f249343 Update module github.com/google/go-github/v40 to v48 (#571)
* Update module github.com/google/go-github/v40 to v48

* [check-spelling] Update metadata

Update for https://github.com/kairos-io/kairos/actions/runs/3767678767/attempts/1
Accepted in https://github.com/kairos-io/kairos/pull/571#issuecomment-1364324766

Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>

Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
2022-12-24 08:34:12 +01:00
renovate[bot]
da5e5aba55 Update module github.com/twpayne/go-vfs to v4 (#572)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-24 08:32:59 +01:00
renovate[bot]
9e2e315f76 Update module github.com/onsi/gomega to v1.24.2 (#560)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-15 11:24:56 +01:00
renovate[bot]
182b0c94f6 Update module golang.org/x/oauth2 to v0.3.0 (#541)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-07 09:57:08 +01:00
renovate[bot]
75cd59a57c Update module github.com/mudler/yip to v0.11.4 (#540)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-07 09:56:36 +01:00
renovate[bot]
54a4b2b953 Update module github.com/itchyny/gojq to v0.12.10 (#522)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-03 15:20:32 +01:00
renovate[bot]
27d4f3231b Update module github.com/onsi/ginkgo/v2 to v2.5.1 (#462)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-25 08:03:37 +01:00
renovate[bot]
92a0492df5 Update module github.com/kairos-io/kcrypt to v0.4.4 (#480)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-25 08:03:15 +01:00
renovate[bot]
081d1ff542 Update module github.com/pterm/pterm to v0.12.50 (#474)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-22 21:22:33 +01:00
Dimitris Karakasilis
7a3bd6c113 Persist partition label/uuid mapping whenever we encrypt a partition (#408)
Fixes: https://github.com/kairos-io/kairos/issues/380

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2022-11-16 13:35:59 +02:00
renovate[bot]
d1620a387d Update module golang.org/x/oauth2 to v0.2.0 (#405)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-10 19:20:50 +01:00
renovate[bot]
2ff0120352 Update module github.com/otiai10/copy to v1.9.0 (#403)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-10 01:35:55 +00:00
renovate[bot]
e3546ff129 Update module github.com/onsi/gomega to v1.24.1 (#404)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-09 19:05:09 +01:00
renovate[bot]
cbd80e87a3 Update module github.com/onsi/ginkgo/v2 to v2.5.0 (#396)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-08 07:05:33 +01:00
renovate[bot]
61b30e50d2 Update module github.com/onsi/gomega to v1.24.0 (#360)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-02 23:54:09 +00:00
Luther Monson
c09218f94a seedling: Add Better Windows Desktop Support to Kairos (#338)
adding better windows desktop support for the project

Signed-off-by: Luther Monson <luther.monson@gmail.com>

Signed-off-by: Luther Monson <luther.monson@gmail.com>
2022-10-30 17:17:59 -07:00
renovate[bot]
dbf6d34294 Update module golang.org/x/oauth2 to v0.1.0 (#319)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-30 22:22:42 +01:00
renovate[bot]
7a191a35c5 Update module github.com/onsi/gomega to v1.23.0 (#317)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-29 10:40:32 +02:00
renovate[bot]
006f0dc576 Update module go to 1.19 (#318)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-29 10:36:22 +02:00
renovate[bot]
0990877f50 Update module github.com/onsi/ginkgo/v2 to v2.4.0 (#316)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-29 10:33:28 +02:00
renovate[bot]
e9d79eef92 Update module github.com/urfave/cli to v1.22.10 (#312)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-29 10:33:09 +02:00
renovate[bot]
230f69080c Update module github.com/pterm/pterm to v0.12.49 (#309)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-29 08:12:14 +02:00
renovate[bot]
8b6884871e Update module github.com/mudler/yip to v0.11.3 (#315)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-29 08:11:52 +02:00
renovate[bot]
645ac3913e Update module github.com/itchyny/gojq to v0.12.9 (#308)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-29 01:29:27 +00:00
Ettore Di Giacinto
ad4ec0c19b sparkles: state api sdk (#262)
*  Add state api

This is related to https://github.com/kairos-io/kairos/issues/34.

Starts to unify the API to retrieve the state in the sdk to have a common place to query system status information.

* 🤖 Add test

* Update go.mod

* ⚙️ Fine-tune detection of partitions

* 🤖 Add more fine-grained tests

* 🎨 Add /dev/ to partition name

* 🤖 Fixup tests

* ⚙️ Remount accessors

*  Add state partition to cloud-init paths

* 📝 Upper case Kairos in motd

* 🎨 Add mounts sdk

* 🎨 Set grub options via SDK

* 🎨 Make it more idiomatic
2022-10-23 20:22:32 +02:00
Ettore Di Giacinto
93cef67c86 sparkles: Minor enhancements (#239)
* 🐛 Fixup grub option quoting

* ⚙️ Copy discovery to oem if found

*  Add environment block to install

* ⚙️ Use /oem for mount in kcrypt post-hook

* 📝 Update docs with installer env reference

* 🤖 Add test deps

* ⚙️ Be consistent and set env also for post-hooks

* ⚙️ propagate env in post-hooks
2022-10-18 07:45:07 +02:00
Ettore Di Giacinto
153b98887d robot: Install ginkgo pinned from go.mod (#208) 2022-10-12 07:46:01 +02:00
Ettore Di Giacinto
2a245748ce penguin: Make fedora/rockylinux to boot (#181)
* 🐧 Add fedora and rockylinux

* 🐧 Add tools to fedora/rh images

* 🤖 Add tests to circleci

* 🤖 Configure the CPU required for running rhel on vms

* Enable ttys

* 🤖 Disable tests on fedora/rockylinux

QEMU TCG doesn't support AVX:
https://developers.redhat.com/blog/2021/01/05/building-red-hat-enterprise-linux-9-for-the-x86-64-v2-microarchitecture-level#recommendations_for_rhel_9

* 🤖 Don't release rockylinux/fedora
2022-10-05 21:45:09 +02:00
Ettore Di Giacinto
7da7b7e2ca Move some CI tests to CircleCI (#178)
* 🤖 Run datasource tests on CircleCI

* 🤖 Run bundles tests on CircleCI

* 🤖 Fixups

* 🤖 Run cli tests to CircleCI

* 🤖 Extend wait time

* 🤖 Fail when VM is aborted

* 🤖 Enlart waiting time window

* 🤖 Do not set VM specs

* 🤖 Shift just some of the tests
2022-10-04 21:44:27 +02:00
Ettore Di Giacinto
2d3945c042 robot: Cleanup and refactor tests (#157) 2022-09-28 23:52:30 +02:00
Ettore Di Giacinto
576c590e70 art: Rebranding (#130)
See: https://github.com/c3os-io/c3os/issues/88
2022-09-17 18:43:51 +02:00
mudler
a1ba95fb7b robot: Run only relevant tests, push to core-*
From now on images built from this repo are the c3os core images.
c3os core images contains only the base image, framework files and the c3os agent.

This also sets up tests accordingly to run only to cover the c3os-agent.
2022-08-12 15:49:41 +02:00
mudler
74ebf3e698 art: Expose interactive install to providers
In this way install can be driven from providers too

Part of: https://github.com/c3os-io/c3os/issues/68
2022-08-12 12:21:12 +02:00
Ettore Di Giacinto
bcc9f42864 Merge pull request #55 from c3os-io/feature/cluster-provider
Abstract Cluster Provisioning with Cluster Plugins
2022-08-09 08:01:54 +02:00
Ettore Di Giacinto
4a902d4c73 bug: Fixup to release bin imports 2022-07-23 09:34:54 +00:00
Ettore Di Giacinto
8017c4edb5 arrow_up: Update go mod 2022-07-20 22:31:59 +00:00
Ettore Di Giacinto
c04333ad9e arrow_up: bump go-pluggable 2022-07-16 15:24:10 +00:00
Ettore Di Giacinto
1eea52804b gear: Extract netboot artifacts
This changeset also adds a `config_url` and `options` keyword in the c3os config.
Along with that the config logic is changed so the configuration is taken also from boot commands and merged in the final installed config file.
2022-07-07 16:57:38 +00:00
Ettore Di Giacinto
90ea0d8fdc gear: Workaround gosigar build on darwin 2022-07-06 21:13:19 +00:00
Ettore Di Giacinto
5bdba63318 Split off cli into separate binaries (#37)
* 🎨 Split off cli into separate binaries

This commit splits off the cli into 3 binaries:
- agent
- cli
- provider

The provider now is a separate component that can be tested by itself
and have its own lifecycle. This paves the way to a ligher c3os variant,
HA support and other features that can be provided on runtime.

This is working, but still there are low hanging fruit to care about.

Fixes #14

* 🤖 Add provider bin to releases

* ⚙️ Handle signals

* ⚙️ Reduce buildsize footprint

* 🎨 Scan for providers also in /system/providers

* 🤖 Run goreleaser

* 🎨 Refactoring
2022-07-04 22:39:34 +02:00
mudler
cc1f0862d0 gear: Display available disks before prompt in interactive-install 2022-05-14 21:56:48 +02:00
mudler
e9f180a906 gear: Add interactive installer 2022-05-12 00:47:22 +02:00
Ettore Di Giacinto
b16bfda671 Fixups (#26)
* 🤖 Fixup master ARM builds

* ⚙️ Override openrc envs by writing to /etc/rancher

* 🤖 Enable alpine tests

* ⬆️ Bump edgevpn

* ⚙️ Fixup ntpd start on alpine #20

* 🤖 Reword tests

* 🤖 Run alpine tests in parallel

* ⚙️ Upgrades are broken on alpine, skip tests

* 📒 Add datasource ISO docs

* ⚙️ Properly set k3s env file in openRC

* ⚙️ Add udev-trigger

See: https://github.com/rancher-sandbox/elemental/issues/198

* 🤖 Run upgrade tests on alpine

* ⚙️ Add svcs to Alpine ARM images

* 🤖 Test fixups

* ⚙️ Re-enable boot-assessment on ARM

* ⚙️ Add default bashrc local

* ⚙️ Fixup tmp layout on alpine
2022-05-11 22:45:40 +02:00
mudler
1d1314627b arrow_up: Update go mod 2022-05-09 00:02:33 +02:00
mudler
5d25e19010 arrow_up: Bump go mod 2022-05-07 23:26:56 +02:00
mudler
4f6993cd1b arrow_up: Bump go mod 2022-05-07 22:15:24 +02:00
mudler
2ecbfa4e3e gear: Allow to set loglevel when registering 2022-05-07 22:13:26 +02:00
mudler
071b3ebf56 gear: Update go-version 2022-05-07 00:24:37 +02:00
mudler
aeeb20a058 gear: Setup DNS with cloud init 2022-05-06 21:53:27 +02:00
Ettore Di Giacinto
250788fb3c arrow_up: Bump edgevpn 2022-05-06 17:58:18 +02:00
mudler
7a6a3f2538 robot: Keep only one minor version when tagging 2022-04-26 22:58:40 +02:00
mudler
ae28cb6e53 gear: Fixup bind ip 2022-04-24 21:45:58 +02:00
Ettore Di Giacinto
4f452d9ffc gear: Spawn custom ssh server during recovery 2022-04-24 17:36:00 +02:00
Ettore Di Giacinto
6852b9439c arrow_up: Bump internal version and update vpn 2022-03-18 19:13:23 +01:00
Ettore Di Giacinto
d5ad69daba arrow_up: Bump cOS and edgevpn 2022-03-17 20:57:54 +01:00
Ettore Di Giacinto
0e45520bd2 gear: Add bridge command to cli 2022-02-23 19:24:34 +01:00
Ettore Di Giacinto
eae33b9ea3 arrow_up: Update go mod 2022-02-22 21:16:11 +01:00
Ettore Di Giacinto
4a49786bd2 robot: Simplify tests 2022-02-19 00:01:42 +01:00
Ettore Di Giacinto
55dbab07eb gear: Add wrappers to rotate token and upgrade 2022-02-18 18:30:20 +01:00
Ettore Di Giacinto
9df7234448 gear: Move to c3os-io
Update URL and default images
2022-02-17 20:46:36 +01:00
Ettore Di Giacinto
8f1a3c04b7 arrow_up: Updates, small fixups 2022-02-09 22:51:34 +01:00
Ettore Di Giacinto
446a20ec3e gear: Add automatic setup via mesh configuration
Also enhance output and instructions on first boot
2022-02-07 19:11:26 +01:00
Ettore Di Giacinto
8b04fc2564 Update deps 2022-02-04 23:20:25 +01:00
Ettore Di Giacinto
c06c52869a Add automated install via pairing 2022-02-02 00:02:30 +01:00