Commit Graph

1433 Commits

Author SHA1 Message Date
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
Itxaka
7cadb1a20b sparkles: Allow showing pre-releases on upgrade options (#1333)
By default get 30 releases and skip any pre-releases found.
Allow toggling showing pre-releases both for upgrade and for listing
them

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-04-21 12:32:28 +02:00
Itxaka
d9c3ba5915 robot: Fix release tests (#1332)
Looks like we only get a small subset of the releases so we cant check
for a specific number in the list that we get

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-04-21 11:04:03 +02:00
Itxaka
1f316097be 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
Itxaka
ef0c14006b bug: Fix agent not able to get subkeys (#1299)
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-04-15 13:45:13 +02:00
Mauro Morales
b8b3e83ef1 bug: Do not merge all cmdline arguments to generic config (#1256)
* Do not merge all cmdline arguments to generic config

Instead allow only specific Kairos config ones, this should not be known by the collector but doing it this way as a temporary hack to release 2.0 and then we can do properly

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

* Remove fmt.Println

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

* Lint

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

* imports

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

* Filter using a cloud config structure

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

* Pass a filter function

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

* Exclude collector config from config.Config yaml

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

* Fix issue with test now that a yaml tag gets ignored

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

* cleanup FilterKeys func

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

* Add comment

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

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-04-06 15:18:15 +02:00