-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass the install event to the collector directly #150
Conversation
May fix kairos-io/kairos#1853 but as usual with the events, its a bit complicated to test if indeed its received that properly and parsing it properly...... @mudler any idea how can I manually test this? |
Codecov Report
@@ Coverage Diff @@
## main #150 +/- ##
==========================================
+ Coverage 60.62% 60.74% +0.12%
==========================================
Files 37 37
Lines 4480 4471 -9
==========================================
Hits 2716 2716
+ Misses 1535 1526 -9
Partials 229 229
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Im guessing witht he provider you can run |
internal/agent/install.go
Outdated
@@ -113,6 +113,10 @@ func Install(dir ...string) error { | |||
if exists { | |||
tmpdir, err := os.MkdirTemp("", "kairos-install-") | |||
if err == nil { | |||
// Add cloud config header if necessary | |||
if !strings.Contains(cloudConfig, "#cloud-config") { | |||
cloudConfig = fmt.Sprintf("#cloud-config\n%s", cloudConfig) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we add the config in the config instead of here? otherwise the check for the config is not really that useful IMO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YEah but this comes from an event, which Its a map[string]string{}
so I think the issue here its that when sending the data, it doesn not come with the cloud config header, so we are treating the data properly but when storing it, its just a file with no header, so the collector ignores it.
I think...I cannot test this properly. @jimmykarily can you tell me how to test this with your mock provider? I just want to see how the data arrives...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the object that its marshalled into json and pumped via the event:
type CloudInit struct {
Install kairos.Install `yaml:"install,omitempty" json:"install,omitempty"`
Options map[string]string `yaml:"options,omitempty" json:"options,omitempty"`
Cluster clusterplugin.Cluster `yaml:"cluster,omitempty" json:"cluster,omitempty"`
Stages map[string][]schema.Stage `yaml:"stages,omitempty" json:"stages,omitempty"`
Stylus Stylus `yaml:"stylus,omitempty" json:"stylus,omitempty"`
StylusPackage *string `yaml:"stylusPackage,omitempty" json:"stylusPackage,omitempty"`
Env []string `yaml:"env,omitempty" json:"env,omitempty"`
}
So ti kinds of make sense that what we receive its not with the header and what we save as cloud config needs the header to be read back up.
I wonder if we could make the collector read dirs and Reader objects directly so we could apss that data directly and skip the header stuff for those files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im wondering if we should just try to unmarshall the cloudConfig into an agentconfig.Config object directly and merge it on top of the base config which should be there already....
That would make this simpler and would make the event config end up on top of the others as expected....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember how I used the mock provider back then but I assume I just copied that to the directory where providers are expected and let kairos-agent run it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw, we could use this:
kairos-agent/pkg/config/config.go
Line 427 in 9f46af2
func AddHeader(header, data string) string { |
internal/agent/install.go
Outdated
@@ -113,6 +113,10 @@ func Install(dir ...string) error { | |||
if exists { | |||
tmpdir, err := os.MkdirTemp("", "kairos-install-") | |||
if err == nil { | |||
// Add cloud config header if necessary | |||
if !strings.Contains(cloudConfig, "#cloud-config") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should adapt and use this:
kairos-agent/pkg/config/config.go
Line 273 in 9f46af2
func HasHeader(userdata, head string) (bool, string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a Config object so we cannot access that. This is just a plain string.
@jimmykarily using the new reader functionality of the collector. collector commit is not merged into master! |
Instead of saving files and whatnot, we can directly pass the event cc data as a reader and have it merged into the final config Signed-off-by: Itxaka <itxaka@kairos.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Signed-off-by: Itxaka <itxaka@kairos.io>
collector patch merged, sdk commit updated |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/kairos-io/kairos-agent/v2](https://togithub.com/kairos-io/kairos-agent) | require | minor | `v2.1.11-0.20230710123948-9c5731baa2e3` -> `v2.4.5` | --- ### Release Notes <details> <summary>kairos-io/kairos-agent (github.com/kairos-io/kairos-agent/v2)</summary> ### [`v2.4.5`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.4.5) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.4.4...v2.4.5) #### What's Changed - Add config permissions by [@​mauromorales](https://togithub.com/mauromorales) in [https://github.com/kairos-io/kairos-agent/pull/179](https://togithub.com/kairos-io/kairos-agent/pull/179) **Full Changelog**: kairos-io/kairos-agent@v2.4.4...v2.4.5 ### [`v2.4.4`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.4.4) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.4.3...v2.4.4) #### What's Changed - Bump kairos-sdk to fix the local bundle installation by [@​jimmykarily](https://togithub.com/jimmykarily) in [https://github.com/kairos-io/kairos-agent/pull/177](https://togithub.com/kairos-io/kairos-agent/pull/177) - Fix unwanted reboot from install config in upgrade/reset by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/178](https://togithub.com/kairos-io/kairos-agent/pull/178) **Full Changelog**: kairos-io/kairos-agent@v2.4.3...v2.4.4 ### [`v2.4.3`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.4.3) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.4.2...v2.4.3) #### Changelog - [`dfa5665`](https://togithub.com/kairos-io/kairos-agent/commit/dfa5665) Don't parse userdata twice ### [`v2.4.2`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.4.2) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.4.1...v2.4.2) #### Changelog - [`c98c791`](https://togithub.com/kairos-io/kairos-agent/commit/c98c791) Call `exec.Command` properly, splitting the cmd and args (Fixes the setup of the systemd sysext directory) ### [`v2.4.1`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.4.1) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.4.0...v2.4.1) #### Changelog - [`02a0f48`](https://togithub.com/kairos-io/kairos-agent/commit/02a0f48) Add regexp module to grub ### [`v2.4.0`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.4.0) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.3.0...v2.4.0) #### What's Changed - \[uki] Lyfecycle by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/148](https://togithub.com/kairos-io/kairos-agent/pull/148) - Update module github.com/onsi/ginkgo/v2 to v2.12.1 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/154](https://togithub.com/kairos-io/kairos-agent/pull/154) - Update module github.com/onsi/gomega to v1.28.0 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/155](https://togithub.com/kairos-io/kairos-agent/pull/155) - Update module github.com/mudler/yip to v1.4.4 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/156](https://togithub.com/kairos-io/kairos-agent/pull/156) - Update dependency codemirror to v5.65.15 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/137](https://togithub.com/kairos-io/kairos-agent/pull/137) - Update dependency bootstrap to v5.3.2 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/146](https://togithub.com/kairos-io/kairos-agent/pull/146) - Update github.com/kairos-io/kairos-sdk digest to [`0bb4e40`](https://togithub.com/kairos-io/kairos-agent/commit/0bb4e40) by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/157](https://togithub.com/kairos-io/kairos-agent/pull/157) - Update dependency jquery to v3.7.1 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/158](https://togithub.com/kairos-io/kairos-agent/pull/158) - Update module github.com/mudler/yip to v1.4.5 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/160](https://togithub.com/kairos-io/kairos-agent/pull/160) - Update module github.com/labstack/echo/v4 to v4.11.2 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/162](https://togithub.com/kairos-io/kairos-agent/pull/162) - Update module github.com/nxadm/tail to v1.4.11 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/163](https://togithub.com/kairos-io/kairos-agent/pull/163) - Update module github.com/distribution/distribution to v2.8.3+incompatible by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/161](https://togithub.com/kairos-io/kairos-agent/pull/161) - Stop tailing provider log by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/166](https://togithub.com/kairos-io/kairos-agent/pull/166) - Add command to render a Go template by [@​wyvernzora](https://togithub.com/wyvernzora) in [https://github.com/kairos-io/kairos-agent/pull/159](https://togithub.com/kairos-io/kairos-agent/pull/159) - Keep track of visited files for size calculation by [@​mauromorales](https://togithub.com/mauromorales) in [https://github.com/kairos-io/kairos-agent/pull/168](https://togithub.com/kairos-io/kairos-agent/pull/168) - Update module github.com/kairos-io/kairos-sdk to v0.0.15 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/170](https://togithub.com/kairos-io/kairos-agent/pull/170) - Update module github.com/mudler/yip to v1.4.5 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/169](https://togithub.com/kairos-io/kairos-agent/pull/169) #### New Contributors - [@​wyvernzora](https://togithub.com/wyvernzora) made their first contribution in [https://github.com/kairos-io/kairos-agent/pull/159](https://togithub.com/kairos-io/kairos-agent/pull/159) **Full Changelog**: kairos-io/kairos-agent@v2.3.0...v2.4.0 ### [`v2.3.0`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.3.0) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.12...v2.3.0) #### What's Changed - Bump yip by [@​jimmykarily](https://togithub.com/jimmykarily) in [https://github.com/kairos-io/kairos-agent/pull/149](https://togithub.com/kairos-io/kairos-agent/pull/149) - Pass the install event to the collector directly by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/150](https://togithub.com/kairos-io/kairos-agent/pull/150) - Take symlinks into account for partition size by [@​mauromorales](https://togithub.com/mauromorales) in [https://github.com/kairos-io/kairos-agent/pull/153](https://togithub.com/kairos-io/kairos-agent/pull/153) - Bump yip by [@​jimmykarily](https://togithub.com/jimmykarily) in [https://github.com/kairos-io/kairos-agent/pull/151](https://togithub.com/kairos-io/kairos-agent/pull/151) - 1837 Add `--source` to various commands by [@​jimmykarily](https://togithub.com/jimmykarily) in [https://github.com/kairos-io/kairos-agent/pull/152](https://togithub.com/kairos-io/kairos-agent/pull/152) **Full Changelog**: kairos-io/kairos-agent@v2.2.12...v2.3.0 ### [`v2.2.12`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.12) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.11...v2.2.12) #### What's Changed - Also install fonts when installing grub by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/144](https://togithub.com/kairos-io/kairos-agent/pull/144) - Check root permissions in commands that need it by [@​jimmykarily](https://togithub.com/jimmykarily) in [https://github.com/kairos-io/kairos-agent/pull/145](https://togithub.com/kairos-io/kairos-agent/pull/145) - Update goreleaser/goreleaser-action action to v5 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/143](https://togithub.com/kairos-io/kairos-agent/pull/143) - Update dependency cypress to v12.17.4 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/138](https://togithub.com/kairos-io/kairos-agent/pull/138) - Update module github.com/erikgeiser/promptkit to v0.9.0 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/126](https://togithub.com/kairos-io/kairos-agent/pull/126) - Workaround for bundle install in new /var/lib/extensions directory by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/147](https://togithub.com/kairos-io/kairos-agent/pull/147) **Full Changelog**: kairos-io/kairos-agent@v2.2.11...v2.2.12 ### [`v2.2.11`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.11) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.10...v2.2.11) #### What's Changed - Update module github.com/mudler/yip to v1.4.2 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/142](https://togithub.com/kairos-io/kairos-agent/pull/142) **Full Changelog**: kairos-io/kairos-agent@v2.2.10...v2.2.11 ### [`v2.2.10`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.10) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.9...v2.2.10) #### What's Changed - Update module golang.org/x/oauth2 to v0.12.0 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/127](https://togithub.com/kairos-io/kairos-agent/pull/127) - Update dependency [@​fortawesome/fontawesome-free](https://togithub.com/fortawesome/fontawesome-free) to v6.4.2 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/114](https://togithub.com/kairos-io/kairos-agent/pull/114) - Update module github.com/mudler/yip to v1.4.0 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/135](https://togithub.com/kairos-io/kairos-agent/pull/135) - Update actions/checkout action to v4 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/140](https://togithub.com/kairos-io/kairos-agent/pull/140) - Bump yip to latest by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/141](https://togithub.com/kairos-io/kairos-agent/pull/141) **Full Changelog**: kairos-io/kairos-agent@v2.2.9...v2.2.10 ### [`v2.2.9`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.9) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.8...v2.2.9) #### What's Changed - Track active/passive boot for upgrade workflow by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/133](https://togithub.com/kairos-io/kairos-agent/pull/133) - Bump to latest yip by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/134](https://togithub.com/kairos-io/kairos-agent/pull/134) **Full Changelog**: kairos-io/kairos-agent@v2.2.8...v2.2.9 ### [`v2.2.8`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.8) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.7...v2.2.8) #### What's Changed - Fix manual-install reboot/poweroff flags by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/131](https://togithub.com/kairos-io/kairos-agent/pull/131) - Fix recovery image calculation by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/132](https://togithub.com/kairos-io/kairos-agent/pull/132) **Full Changelog**: kairos-io/kairos-agent@v2.2.7...v2.2.8 ### [`v2.2.7`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.7) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.6...v2.2.7) #### What's Changed - Adjust size to take into account upgrades by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/130](https://togithub.com/kairos-io/kairos-agent/pull/130) **Full Changelog**: kairos-io/kairos-agent@v2.2.6...v2.2.7 ### [`v2.2.6`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.6) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.5...v2.2.6) #### What's Changed - Several improvements for size calculation by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/129](https://togithub.com/kairos-io/kairos-agent/pull/129) **Full Changelog**: kairos-io/kairos-agent@v2.2.5...v2.2.6 ### [`v2.2.5`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.5) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.4...v2.2.5) #### What's Changed - Fix space calculation on recovery by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/128](https://togithub.com/kairos-io/kairos-agent/pull/128) **Full Changelog**: kairos-io/kairos-agent@v2.2.4...v2.2.5 ### [`v2.2.4`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.4) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.3...v2.2.4) #### Changelog - [`3e9befa`](https://togithub.com/kairos-io/kairos-agent/commit/3e9befa) Add recovery upgrade flag to upgrade command + msg ([#​123](https://togithub.com/kairos-io/kairos-agent/issues/123)) - [`4108aa9`](https://togithub.com/kairos-io/kairos-agent/commit/4108aa9) Auto calculate image size on actions ([#​122](https://togithub.com/kairos-io/kairos-agent/issues/122)) - [`48095b6`](https://togithub.com/kairos-io/kairos-agent/commit/48095b6) Auto calculate partiton size on install ([#​121](https://togithub.com/kairos-io/kairos-agent/issues/121)) - [`b5e1e7a`](https://togithub.com/kairos-io/kairos-agent/commit/b5e1e7a) Fix goreleaser artifact names ([#​125](https://togithub.com/kairos-io/kairos-agent/issues/125)) - [`1a72f56`](https://togithub.com/kairos-io/kairos-agent/commit/1a72f56) Restore loading env from config file ([#​124](https://togithub.com/kairos-io/kairos-agent/issues/124)) - [`e05c2a3`](https://togithub.com/kairos-io/kairos-agent/commit/e05c2a3) Update .codecov.yaml - [`1048a5b`](https://togithub.com/kairos-io/kairos-agent/commit/1048a5b) Update module github.com/labstack/echo/v4 to v4.11.1 ([#​117](https://togithub.com/kairos-io/kairos-agent/issues/117)) - [`7d8de3b`](https://togithub.com/kairos-io/kairos-agent/commit/7d8de3b) Update module github.com/onsi/gomega to v1.27.10 ([#​99](https://togithub.com/kairos-io/kairos-agent/issues/99)) - [`639e787`](https://togithub.com/kairos-io/kairos-agent/commit/639e787) Update module github.com/pterm/pterm to v0.12.65 ([#​120](https://togithub.com/kairos-io/kairos-agent/issues/120)) - [`3a6bd03`](https://togithub.com/kairos-io/kairos-agent/commit/3a6bd03) Update unit-tests.yml ### [`v2.2.3`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.3) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.2...v2.2.3) #### What's Changed - Improve error message by [@​jimmykarily](https://togithub.com/jimmykarily) in [https://github.com/kairos-io/kairos-agent/pull/119](https://togithub.com/kairos-io/kairos-agent/pull/119) - Make unattended reset work by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/110](https://togithub.com/kairos-io/kairos-agent/pull/110) **Full Changelog**: kairos-io/kairos-agent@v2.2.2...v2.2.3 ### [`v2.2.2`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.2) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.1...v2.2.2) #### What's Changed - Allow creating dirs in rootfs via cc by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/109](https://togithub.com/kairos-io/kairos-agent/pull/109) - Extra cleanup for install partitions by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/108](https://togithub.com/kairos-io/kairos-agent/pull/108) - Tests and improve createExtraDirsInRootfs by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/111](https://togithub.com/kairos-io/kairos-agent/pull/111) - Drop override of message options after install by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/112](https://togithub.com/kairos-io/kairos-agent/pull/112) - Make interactive installer use the collector as well by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/113](https://togithub.com/kairos-io/kairos-agent/pull/113) - Update dependency cypress to v12.17.3 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/92](https://togithub.com/kairos-io/kairos-agent/pull/92) - Update dependency jquery to v3.7.0 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/94](https://togithub.com/kairos-io/kairos-agent/pull/94) - Update dependency codemirror to v5.65.14 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/86](https://togithub.com/kairos-io/kairos-agent/pull/86) - Update dependency bootstrap to v5.3.1 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/54](https://togithub.com/kairos-io/kairos-agent/pull/54) - Update dependency alpinejs to v3.12.3 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/80](https://togithub.com/kairos-io/kairos-agent/pull/80) - Update module k8s.io/mount-utils to v0.27.4 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/93](https://togithub.com/kairos-io/kairos-agent/pull/93) **Full Changelog**: kairos-io/kairos-agent@v2.2.1...v2.2.2 ### [`v2.2.1`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.1) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.2.0...v2.2.1) #### What's Changed - Drop logrusWrapper by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/105](https://togithub.com/kairos-io/kairos-agent/pull/105) - Rework install workflow for event stuff by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/106](https://togithub.com/kairos-io/kairos-agent/pull/106) - Update module github.com/kairos-io/kairos-sdk to v0.0.11 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/107](https://togithub.com/kairos-io/kairos-agent/pull/107) **Full Changelog**: kairos-io/kairos-agent@v2.2.0...v2.2.1 ### [`v2.2.0`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.2.0) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.1.12...v2.2.0) #### What's Changed - Update module github.com/jaypipes/ghw to v0.12.0 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/89](https://togithub.com/kairos-io/kairos-agent/pull/89) - Update module github.com/kairos-io/kairos-sdk to v0.0.9 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/87](https://togithub.com/kairos-io/kairos-agent/pull/87) - Update module github.com/pterm/pterm to v0.12.63 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/88](https://togithub.com/kairos-io/kairos-agent/pull/88) - Update module github.com/spf13/viper to v1.16.0 by [@​renovate](https://togithub.com/renovate) in [https://github.com/kairos-io/kairos-agent/pull/50](https://togithub.com/kairos-io/kairos-agent/pull/50) - Load elemental config/spec from cloud config by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/82](https://togithub.com/kairos-io/kairos-agent/pull/82) - Merge data from events into reset by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/91](https://togithub.com/kairos-io/kairos-agent/pull/91) - More config tests by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/97](https://togithub.com/kairos-io/kairos-agent/pull/97) - Cleanup and simplify elementalConfig by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/98](https://togithub.com/kairos-io/kairos-agent/pull/98) - Rework reboot/shutdown to use the hooks by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/96](https://togithub.com/kairos-io/kairos-agent/pull/96) - Rework install a bit more by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/100](https://togithub.com/kairos-io/kairos-agent/pull/100) - Drop runconfig in favour of config by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/101](https://togithub.com/kairos-io/kairos-agent/pull/101) - Merge elemental config into agent config by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/102](https://togithub.com/kairos-io/kairos-agent/pull/102) - Fix config loading, install device and call sanitize by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/103](https://togithub.com/kairos-io/kairos-agent/pull/103) - Add tests for Platform by [@​Itxaka](https://togithub.com/Itxaka) in [https://github.com/kairos-io/kairos-agent/pull/104](https://togithub.com/kairos-io/kairos-agent/pull/104) **Full Changelog**: kairos-io/kairos-agent@v2.1.11...v2.2.0 ### [`v2.1.12`](https://togithub.com/kairos-io/kairos-agent/releases/tag/v2.1.12) [Compare Source](https://togithub.com/kairos-io/kairos-agent/compare/v2.1.11...v2.1.12) Bump SDK to v0.0.11 **Full Changelog**: kairos-io/kairos-agent@v2.1.11...v2.1.12 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 11pm every weekday,before 7am every weekday,every weekend" in timezone Europe/Brussels, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/kairos-io/provider-kairos). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMS4wIiwidXBkYXRlZEluVmVyIjoiMzcuODcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Instead of saving files and whatnot, we can directly pass the event cc
data as a reader and have it merged into the final config