kairos-agent/internal/agent
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
..
hooks Bump to newer sdk (#1166) 2023-03-18 10:27:18 +01:00
agent_options.go art: Make linter happy 2022-08-08 08:32:11 +00:00
agent_suite_test.go robot: Add agent config bootstrap test 2022-11-27 14:34:36 +01:00
agent_test.go sparkles: Custom partitioning refactor config (#1180) 2023-03-29 16:25:38 +02:00
agent.go sparkles: Custom partitioning refactor config (#1180) 2023-03-29 16:25:38 +02:00
config.go seedling: Webui enhancements (#620) 2023-01-08 21:49:23 +01:00
iconunix.go seedling: Webui enhancements (#620) 2023-01-08 21:49:23 +01:00
install_test.go robot: Delete duplicate test suite registration (#1091) 2023-03-10 11:10:03 +01:00
install.go sparkles: Custom partitioning refactor config (#1180) 2023-03-29 16:25:38 +02:00
interactive_install.go Bump to newer sdk (#1166) 2023-03-18 10:27:18 +01:00
make_art.sh 🔧 Integrate Shellcheck (#931) 2023-02-23 04:36:49 -08:00
notify.go sparkles: Custom partitioning refactor config (#1180) 2023-03-29 16:25:38 +02:00
recovery.go Bump to newer sdk (#1166) 2023-03-18 10:27:18 +01:00
reset.go sparkles: Custom partitioning refactor config (#1180) 2023-03-29 16:25:38 +02:00
upgrade.go sparkles: Custom partitioning refactor config (#1180) 2023-03-29 16:25:38 +02:00
validate_test.go bug: Fix validator on long strings (#1194) 2023-03-28 18:20:56 +02:00
validate.go bug: Fix validator on long strings (#1194) 2023-03-28 18:20:56 +02:00