Skip to content
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

Merged
merged 2 commits into from
Sep 26, 2023
Merged

Pass the install event to the collector directly #150

merged 2 commits into from
Sep 26, 2023

Conversation

Itxaka
Copy link
Member

@Itxaka Itxaka commented Sep 25, 2023

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

@Itxaka Itxaka requested a review from a team September 25, 2023 10:35
@Itxaka
Copy link
Member Author

Itxaka commented Sep 25, 2023

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
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

Merging #150 (3afce22) into main (9f46af2) will increase coverage by 0.12%.
The diff coverage is 0.00%.

@@            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              
Files Coverage Δ
internal/agent/install.go 5.76% <0.00%> (+0.20%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Itxaka
Copy link
Member Author

Itxaka commented Sep 25, 2023

Im guessing witht he provider you can run kairos-agent notify 'agent.install' 'JSON_PAYLOAD' ?

@@ -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)
Copy link
Member

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

Copy link
Member Author

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...

Copy link
Member Author

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.

Copy link
Member Author

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....

Copy link
Contributor

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.

Copy link
Contributor

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:

func AddHeader(header, data string) string {

@@ -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") {
Copy link
Contributor

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:

func HasHeader(userdata, head string) (bool, string) {

Copy link
Member Author

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.

@Itxaka Itxaka changed the title Check for cloud-config header in data coming from events Pass the install event to the collector directly Sep 25, 2023
@Itxaka
Copy link
Member Author

Itxaka commented Sep 25, 2023

@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>
Copy link
Contributor

@jimmykarily jimmykarily left a 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>
@Itxaka
Copy link
Member Author

Itxaka commented Sep 26, 2023

collector patch merged, sdk commit updated

@Itxaka Itxaka enabled auto-merge (squash) September 26, 2023 07:35
@Itxaka Itxaka merged commit 677254e into main Sep 26, 2023
5 checks passed
@Itxaka Itxaka deleted the fix_bus_cc branch September 26, 2023 07:39
jimmykarily referenced this pull request in kairos-io/provider-kairos Dec 12, 2023
[![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
[@&#8203;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
[@&#8203;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
[@&#8203;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 [@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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 [@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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 [@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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

- [@&#8203;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 [@&#8203;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
[@&#8203;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
[@&#8203;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 [@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;fortawesome/fontawesome-free](https://togithub.com/fortawesome/fontawesome-free)
to v6.4.2 by [@&#8203;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
[@&#8203;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
[@&#8203;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 [@&#8203;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
[@&#8203;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 [@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
([#&#8203;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
([#&#8203;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
([#&#8203;121](https://togithub.com/kairos-io/kairos-agent/issues/121))
-
[`b5e1e7a`](https://togithub.com/kairos-io/kairos-agent/commit/b5e1e7a)
Fix goreleaser artifact names
([#&#8203;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
([#&#8203;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
([#&#8203;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
([#&#8203;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
([#&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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 [@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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 [@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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
[@&#8203;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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants