Mauro Morales
1073b07f6a
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
Itxaka
75c52f520f
Bump to newer sdk ( #1166 )
2023-03-18 10:27:18 +01:00
Itxaka
b5cfab06a7
sparkles: Use kairos-sdk module ( #1140 )
2023-03-15 15:45:00 +01:00
Oz Tiram
ce4631fd07
bug: Fix configuration not being merge ( #1117 )
...
Fix #687 .
Signed-off-by: Oz Tiram <oz@spectrocloud.com>
2023-03-14 15:44:49 +01:00
Jacob Payne
e57ef905a4
bug: Fix manual install not supporting configuration url ( #963 )
...
* fixed manual install not supporting configuration url
Signed-off-by: Jacob Payne <jacob@spectrocloud.com>
* break out url logic and add testing.
Signed-off-by: Jacob Payne <jacob@spectrocloud.com>
---------
Signed-off-by: Jacob Payne <jacob@spectrocloud.com>
Co-authored-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
2023-03-08 10:13:36 -07:00
Mauro Morales
461516fec5
sparkles: Integrate schema validation ( #853 )
...
* Change ValidationError to return the actual error
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
* Add validate command
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
* Warn validation errors when scanning configs
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
* Lint
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
* Add schema command to print config json schema
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
* Add strict-validations flag
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
* Lint and remove focus
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
* Rename command schema to print-schema
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
* Fix issue by reading originalData
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
* Lint
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
* Remove test from removed feature
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
* Add comments to exported functions
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
* Lint
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
* Add test for validate.go
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
* Remove focus
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
* Add more tests for root schema
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
* Add more tests
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
---------
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-02-14 16:15:13 +01:00
Ettore Di Giacinto
9c99670add
robot: Don't run installation twice on installation tests ( #811 )
...
* 🤖 Don't run installation twice on installation tests
Signed-off-by: mudler <mudler@c3os.io>
* 🐛 Scan provided config in manual-install
Signed-off-by: mudler <mudler@c3os.io>
* 🤖 Git unshallow before running tests
Signed-off-by: mudler <mudler@c3os.io>
---------
Signed-off-by: mudler <mudler@c3os.io>
2023-02-03 18:41:35 +01:00
Jacob Payne
9ff30b4417
require userdata loaded before running install ( #742 )
...
Signed-off-by: Jacob Payne <jacob@spectrocloud.com>
Co-authored-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
2023-01-30 08:12:11 -07:00
Ettore Di Giacinto
746135eede
sparkles: Add reset hook ( #723 )
...
Signed-off-by: mudler <mudler@c3os.io>
Signed-off-by: mudler <mudler@c3os.io>
2023-01-25 13:38:56 +01:00
Ettore Di Giacinto
ef93e321fa
seedling: Drop references to node-config ( #697 )
...
Signed-off-by: mudler <mudler@c3os.io>
Signed-off-by: mudler <mudler@c3os.io>
2023-01-20 19:14:53 +01:00
Ettore Di Giacinto
667fd76d9d
seedling: Webui enhancements ( #620 )
...
* 🌱 Make sure webui starts on alpine
Also drop to shell when there are no providers
Signed-off-by: mudler <mudler@c3os.io>
* 🌱 Suppress verbose logging on tty
Signed-off-by: mudler <mudler@c3os.io>
* 🌱 Print WebUI address
Signed-off-by: mudler <mudler@c3os.io>
* 🎨 Update banner
Signed-off-by: mudler <mudler@c3os.io>
* 🌱 Refactor, display also interfaces
Signed-off-by: mudler <mudler@c3os.io>
* 🌱 Address feedback from review
Signed-off-by: mudler <mudler@c3os.io>
Signed-off-by: mudler <mudler@c3os.io>
2023-01-08 21:49:23 +01:00
Ettore Di Giacinto
d59892c5c5
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
Eng Zer Jun
c868bbaf9e
art: Move from io/ioutil to io and os packages ( #470 )
...
refactor: move from io/ioutil to io and os packages
The io/ioutil package has been deprecated as of Go 1.16 [1]. This commit
replaces the existing io/ioutil functions with their new definitions in
io and os packages.
[1]: https://golang.org/doc/go1.16#ioutil
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-11-22 01:11:03 +08:00
Ettore Di Giacinto
7e11876248
art: Enhance error handling and display when a config is not loaded from the system ( #267 )
2022-10-24 16:57:02 +02:00
Santhosh
c7c68c222f
set configScanDir as package scoped var ( #264 )
...
set config.Install.env variables in environment
adding env to config to use across all stages
switch to config.Scan to read config
2022-10-24 16:43:23 +05:30
Ettore Di Giacinto
5c4e29f3d3
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
Jacob Payne
b1396c541b
added support for fast mode ( #168 )
2022-09-30 17:23:10 -07:00
Ettore Di Giacinto
0d88ec39a9
sparkles: Add reset event for sdk ( #143 )
2022-09-23 17:20:23 +02:00
Ettore Di Giacinto
e25526cfc9
art: Rebranding ( #130 )
...
See: https://github.com/c3os-io/c3os/issues/88
2022-09-17 18:43:51 +02:00
Ettore Di Giacinto
0763c820f2
sparkles: Auto-detect device with 'auto'
2022-09-10 13:01:24 +00:00
Ettore Di Giacinto
d7e6e9efa4
sparkles: Add manual-install
2022-09-10 13:01:03 +00:00
Ettore Di Giacinto
b7fec41fe3
sparkles: Boot options ( #91 )
...
* ✨ Add grub_options to config
Split post-install into hooks
* 🤖 Adapt test to latest releases
2022-09-08 15:39:26 +02:00
mudler
122d29cbac
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
mudler
3c6484de14
art: Drop provider from c3os code
...
Part of: https://github.com/c3os-io/c3os/issues/68
2022-08-10 18:56:07 +02:00
Ettore Di Giacinto
b19a93e984
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
b62a3fc892
robot: Make linter happy
2022-07-25 22:26:10 +00:00
Ettore Di Giacinto
09b41735f4
gear: Be sure to run datasource before install
...
Seems in certain condition the datasource is kicking late and serving the datasource not fast as wanted.
We make sure to pull it before install, so we also give chance to convoluted setups to pull configs.
Also wires up autoinstall tests to CI
2022-07-21 21:38:07 +00:00
Ettore Di Giacinto
602d086ce4
art: Refactor agent code
...
Move out cmd pieces and split into its own package. Also make sure we reload
plugins before bootstrapping nodes.
Also commons out the agent configuration in a specific YAML file.
2022-07-18 22:02:49 +00:00
Ettore Di Giacinto
4e7802346f
gear: Setup log rotation
2022-07-17 08:42:12 +00:00