-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add command to render a Go template #159
Conversation
Codecov Report
@@ Coverage Diff @@
## main #159 +/- ##
==========================================
- Coverage 58.69% 58.68% -0.02%
==========================================
Files 37 38 +1
Lines 4656 4683 +27
==========================================
+ Hits 2733 2748 +15
- Misses 1691 1699 +8
- Partials 232 236 +4
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Good job! Just a comment to add a test for this. We will also need to document this when we merge it. |
…text Signed-off-by: Denis Luchkin-Zhou <[email protected]>
Updated the PR and rebased the branch. |
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.
Good job!
[![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>
For context, see kairos-io/kairos#1907.
Added a command
kairos-agent render-template -f <templatefile>
that reads in a Go template file and renders it.It sets the following as data context available to the template:
Config
: the Kairos configuration object (kairos-agent config get
)State
: the Kairos state object (kairos-agent state
)Any feedback is welcome.
Example