Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): bump github.com/cloudbase/garm from 0.1.3 to 0.1.4 (#103)
Bumps [github.com/cloudbase/garm](https://github.com/cloudbase/garm) from 0.1.3 to 0.1.4. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/cloudbase/garm/releases">github.com/cloudbase/garm's releases</a>.</em></p> <blockquote> <h2>garm v0.1.4</h2> <p>Welcome to GARM version v0.1.4!</p> <p>Before we dive into the highlights, there are a couple of things we need to mention.</p> <h2>Breaking change warning⚠️ </h2> <p>This version removes the LXD internal provider in favor of two new external providers:</p> <ul> <li><a href="https://github.com/cloudbase/garm-provider-lxd">garm-provider-lxd</a></li> <li><a href="https://github.com/cloudbase/garm-provider-incus">garm-provider-incus</a></li> </ul> <p>This was done mainly due to the <a href="https://redirect.github.com/canonical/lxd/pull/12663">licensing change</a> of LXD. If you're using LXD and are upgrading from previous versions, you <strong>must</strong> download the <a href="https://github.com/cloudbase/garm-provider-lxd">LXD external provider</a> and <a href="https://github.com/cloudbase/garm-provider-lxd/blob/main/testdata/garm-provider-lxd.toml">configure it</a>.</p> <p>Another breaking (sort of) change is in the <code>garm-cli</code>. The <code>--force</code> flag in the <code>runner remove</code> command, is no longer mandatory when removing a runner. Moreover, the <code>--force</code> flag now ignores provider errors. In previous versions, if a provider erred when removing a runner, GARM would keep trying until it succeeded. The problem was that if a provider was misconfigured, we would be stuck with a runner in error state until re manually removed it from the database. The <code>--force</code> flag allows us to remove a runner from GARM even if the provider returns an error.</p> <h2>Database upgrade⚠️ </h2> <p>This version will execute a database migration. While we try not to break anything when making database migrations, it's always a good idea to create a backup of your DB as well as any configuration files. If anything goes wrong, you can revert the changes.</p> <p>To safely create a backup of you DB, you can use the <code>sqlite3</code> CLI:</p> <pre lang="bash"><code># Change the path to your DB to the one configured in your config.toml sqlite3 /etc/garm/garm.db .backup /path/to/backup/location/garm-backup.db </code></pre> <h1>Highlights</h1> <p>This release is packed with optimizations, changes and a couple of nice features.</p> <h2>JIT runners</h2> <p>The main highlight of this release is the ability to use <a href="https://github.blog/changelog/2023-06-02-github-actions-just-in-time-self-hosted-runners/">just-in-time self-hosted runners</a>. To accommodate this change, GARM now has more robust metadata endpoints that can serve the needed JIT files. This will most likely be expanded in the future to include setup scripts for clouds where we have userdata size constraints.</p> <p>JIT runners allows us to avoid sending a runner registration token over the wire. Registration tokens can be used to register multiple runners and have a validity of one hour. A bad actor may intercept this token and use it to register their own runners. With JIT runners, only one runner may use the credentials at any given point in time. The credentials are fetched from GARM by the runner when it spins up.</p> <p>This feature can be disabled in the provider config by specifying:</p> <pre lang="toml"><code>[[provider]] disable_jit_config = true </code></pre> <h2>easily access controller info</h2> <p>We now have the ability to gain more insight into how GARM is configured. We've added a new command which can show us some info about the controller:</p> <pre lang="bash"><code></tr></table> </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/cloudbase/garm/commit/747604ebfa5b7c8ca72e772e653763e0c786211a"><code>747604e</code></a> Merge branch 'up-main' into release/v0.1</li> <li><a href="https://github.com/cloudbase/garm/commit/e575053f7c4a18eaa26cbb6cd17727437c1236bf"><code>e575053</code></a> Merge pull request <a href="https://redirect.github.com/cloudbase/garm/issues/210">#210</a> from gabriel-samfira/add-new-providers</li> <li><a href="https://github.com/cloudbase/garm/commit/342ed8e9904fe978ecf9e0b9f69c994a2fb1df0f"><code>342ed8e</code></a> Add new providers</li> <li><a href="https://github.com/cloudbase/garm/commit/c44f02c90fb7175f922457be6fa9fa5e8867a962"><code>c44f02c</code></a> Merge branch 'up-main' into release/v0.1</li> <li><a href="https://github.com/cloudbase/garm/commit/96208bb3c234317fa2d7ec0d2db5ed2df24e7ce6"><code>96208bb</code></a> Merge pull request <a href="https://redirect.github.com/cloudbase/garm/issues/209">#209</a> from gabriel-samfira/fix-typos</li> <li><a href="https://github.com/cloudbase/garm/commit/eb729320f9c86bbd4c95564324594547da8bfb11"><code>eb72932</code></a> Fix typos in garm-cli</li> <li><a href="https://github.com/cloudbase/garm/commit/6ca50dc4b20581f527d538e5fb7f74736c0e8a16"><code>6ca50dc</code></a> Merge pull request <a href="https://redirect.github.com/cloudbase/garm/issues/208">#208</a> from gabriel-samfira/update-readme</li> <li><a href="https://github.com/cloudbase/garm/commit/803f7afd7058e4eb2cadba7f55440aaf582ccd78"><code>803f7af</code></a> Add GCP to the list of providers</li> <li><a href="https://github.com/cloudbase/garm/commit/3b9e822ee0efbcdcdba8182250e5d45bce86c33d"><code>3b9e822</code></a> Merge pull request <a href="https://redirect.github.com/cloudbase/garm/issues/207">#207</a> from gabriel-samfira/update-readme</li> <li><a href="https://github.com/cloudbase/garm/commit/8efdcba359521db8027c4c1631bec0998d7c5ead"><code>8efdcba</code></a> Update README</li> <li>Additional commits viewable in <a href="https://github.com/cloudbase/garm/compare/v0.1.3...v0.1.4">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/cloudbase/garm&package-manager=go_modules&previous-version=0.1.3&new-version=0.1.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information