Tags: joshhunt/grafanactl
Tags
Support paginated responses in list requests (grafana#143) ### What This commit updates the List method for the clients to automatically fetch all objects, even if the response is paginated. This is done by using the built-in `client-go` pager. This commit also updates the `GetMultiple` method on the clients to use concurrent `Get` requests under the hood, rather than relying on the `List`. Lastly, it fixes a bug where fetching all objects of a given API group was sending duplicate list requests for each API versions. ### Why Long responses for List requests can be paginated by the server, meaning that the CLI won't actually fetch everything, instead only fetching the first batch of objects. The changes to GetMultiple were required for the same reason - in the presence of pagination, using List is very wasteful. The fix for fetching duplicate objects via multiple API versions is aimed to fixing performance issues. Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com>
Fix API errors interface compliance (grafana#139) ### What This PR addresses API error interface compliance which was broken in grafana#128. This led to the problem that API errors were not identified properly as `NotFound` or `AlreadyExists`, making `grafanactl push` not work as expected. ### Why To make sure that `grafanactl push` can properly create objects which don't exist or overwrite existing objects. --------- Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com>
Mention feature toggles in dashboards-as-code docs (grafana#130) ### What This commit updates the dashboards-as-code doc to mention the requirement for a feature toggle. ### Why Said FT is requires for `grafanactl resources serve` to work properly. Closes grafana#107 Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com>
Bump the go group across 1 directory with 6 updates (grafana#124) Bumps the go group with 6 updates in the / directory: | Package | From | To | | --- | --- | --- | | [github.com/Masterminds/semver/v3](https://github.com/Masterminds/semver) | `3.3.1` | `3.4.0` | | [github.com/go-chi/chi/v5](https://github.com/go-chi/chi) | `5.2.1` | `5.2.2` | | [github.com/goccy/go-yaml](https://github.com/goccy/go-yaml) | `1.17.1` | `1.18.0` | | [github.com/grafana/grafana-app-sdk/logging](https://github.com/grafana/grafana-app-sdk) | `0.39.3` | `0.40.1` | | [github.com/spf13/pflag](https://github.com/spf13/pflag) | `1.0.6` | `1.0.7` | | [k8s.io/cli-runtime](https://github.com/kubernetes/cli-runtime) | `0.33.0` | `0.33.3` | Updates `github.com/Masterminds/semver/v3` from 3.3.1 to 3.4.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/Masterminds/semver/releases">github.com/Masterminds/semver/v3's releases</a>.</em></p> <blockquote> <h2>v3.4.0</h2> <p>There are a few changes in this release to highlight:</p> <ol> <li><code>Constraints</code> now has a property <code>IncludePrerelease</code>. When set to true the <code>Check</code> and <code>Validate</code> methods will include prereleases.</li> <li>When an AND group has one constraint with a prerelease but more than one constraint then prereleases will be included. For example, <code>>1.0.0-beta.1 < 2</code>. In the past this would not have included prereleases because each constraint needed to have a prerelease. Now, only one constraint needs to have a prerelease. This is considered a long standing bug fix. Note, this does not carry across OR groups. For example, <code>>1.0.0-beta.1 < 2 || > 3</code>. In this case, prereleases will not be included when evaluating against <code>>3</code>.</li> <li><code>NewVersion</code> coercion with leading "0"'s is restored. This can be disabled by setting the package level property <code>CoerceNewVersion</code> to <code>false</code>.</li> </ol> <h2>What's Changed</h2> <ul> <li>fix the CodeQL link by <a href="https://github.com/dmitris"><code>@dmitris</code></a> in <a href="https://redirect.github.com/Masterminds/semver/pull/257">Masterminds/semver#257</a></li> <li>Restore detailed errors when failed to parse with NewVersion by <a href="https://github.com/mattfarina"><code>@mattfarina</code></a> in <a href="https://redirect.github.com/Masterminds/semver/pull/262">Masterminds/semver#262</a></li> <li>updating go version tested with by <a href="https://github.com/mattfarina"><code>@mattfarina</code></a> in <a href="https://redirect.github.com/Masterminds/semver/pull/263">Masterminds/semver#263</a></li> <li>Restore the ability to have leading 0's with NewVersion by <a href="https://github.com/mattfarina"><code>@mattfarina</code></a> in <a href="https://redirect.github.com/Masterminds/semver/pull/266">Masterminds/semver#266</a></li> <li>Handle pre-releases on all in an and group by <a href="https://github.com/mattfarina"><code>@mattfarina</code></a> in <a href="https://redirect.github.com/Masterminds/semver/pull/267">Masterminds/semver#267</a></li> <li>Add property to include prereleases by <a href="https://github.com/mattfarina"><code>@mattfarina</code></a> in <a href="https://redirect.github.com/Masterminds/semver/pull/268">Masterminds/semver#268</a></li> <li>Updating the error message handling by <a href="https://github.com/mattfarina"><code>@mattfarina</code></a> in <a href="https://redirect.github.com/Masterminds/semver/pull/269">Masterminds/semver#269</a></li> <li>Update the release notes and readme for new version by <a href="https://github.com/mattfarina"><code>@mattfarina</code></a> in <a href="https://redirect.github.com/Masterminds/semver/pull/270">Masterminds/semver#270</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/dmitris"><code>@dmitris</code></a> made their first contribution in <a href="https://redirect.github.com/Masterminds/semver/pull/257">Masterminds/semver#257</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/Masterminds/semver/compare/v3.3.1...v3.4.0">https://github.com/Masterminds/semver/compare/v3.3.1...v3.4.0</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Masterminds/semver/blob/master/CHANGELOG.md">github.com/Masterminds/semver/v3's changelog</a>.</em></p> <blockquote> <h2>3.4.0 (2025-06-27)</h2> <h3>Added</h3> <ul> <li><a href="https://redirect.github.com/Masterminds/semver/issues/268">#268</a>: Added property to Constraints to include prereleases for Check and Validate</li> </ul> <h3>Changed</h3> <ul> <li><a href="https://redirect.github.com/Masterminds/semver/issues/263">#263</a>: Updated Go testing for 1.24, 1.23, and 1.22</li> <li><a href="https://redirect.github.com/Masterminds/semver/issues/269">#269</a>: Updated the error message handling for message case and wrapping errors</li> <li><a href="https://redirect.github.com/Masterminds/semver/issues/266">#266</a>: Restore the ability to have leading 0's when parsing with NewVersion. Opt-out of this by setting CoerceNewVersion to false.</li> </ul> <h3>Fixed</h3> <ul> <li><a href="https://redirect.github.com/Masterminds/semver/issues/257">#257</a>: Fixed the CodeQL link (thanks <a href="https://github.com/dmitris"><code>@dmitris</code></a>)</li> <li><a href="https://redirect.github.com/Masterminds/semver/issues/262">#262</a>: Restored detailed errors when failed to parse with NewVersion. Opt-out of this by setting DetailedNewVersionErrors to false for faster performance.</li> <li><a href="https://redirect.github.com/Masterminds/semver/issues/267">#267</a>: Handle pre-releases for an "and" group if one constraint includes them</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Masterminds/semver/commit/61fc460d28283a91c53be65c2e0f20b494ac8ad9"><code>61fc460</code></a> Merge pull request <a href="https://redirect.github.com/Masterminds/semver/issues/270">#270</a> from mattfarina/relnotes-3.4.0</li> <li><a href="https://github.com/Masterminds/semver/commit/69a63e729f6254d980ff39c4ac89b5990f2be449"><code>69a63e7</code></a> Update the release notes and readme for new version</li> <li><a href="https://github.com/Masterminds/semver/commit/dc05094bcba909be3d0c14364bb14b5e9142dad4"><code>dc05094</code></a> Merge pull request <a href="https://redirect.github.com/Masterminds/semver/issues/269">#269</a> from mattfarina/lowercase-error-strings</li> <li><a href="https://github.com/Masterminds/semver/commit/a2cd9c2c2e49a0a0af115a08be31d410eacdf9e4"><code>a2cd9c2</code></a> Updating the error message handling</li> <li><a href="https://github.com/Masterminds/semver/commit/9760c473b7cc395e48276f7f2d0c33ae824e123a"><code>9760c47</code></a> Merge pull request <a href="https://redirect.github.com/Masterminds/semver/issues/268">#268</a> from mattfarina/include-prerelease</li> <li><a href="https://github.com/Masterminds/semver/commit/c3747513c320448dfaf6f75c6a06a14a6221896f"><code>c374751</code></a> Add property to include prereleases</li> <li><a href="https://github.com/Masterminds/semver/commit/057c901b9979a2a6b8e06adfbf96349a641ba2e1"><code>057c901</code></a> Merge pull request <a href="https://redirect.github.com/Masterminds/semver/issues/267">#267</a> from mattfarina/fix-259</li> <li><a href="https://github.com/Masterminds/semver/commit/abab1c2f5fcf52a1483bfc4be892a0ad42afd09a"><code>abab1c2</code></a> Handle pre-releases on all in an and group</li> <li><a href="https://github.com/Masterminds/semver/commit/ebda872fa10e6cc730c5973bbdb512b9511eb65e"><code>ebda872</code></a> Merge pull request <a href="https://redirect.github.com/Masterminds/semver/issues/266">#266</a> from mattfarina/restore-calver</li> <li><a href="https://github.com/Masterminds/semver/commit/4ed619ef3b4f63d7c94b2e19725c2719054de3bd"><code>4ed619e</code></a> Restore the ability to have leading 0's with NewVersion</li> <li>Additional commits viewable in <a href="https://github.com/Masterminds/semver/compare/v3.3.1...v3.4.0">compare view</a></li> </ul> </details> <br /> Updates `github.com/go-chi/chi/v5` from 5.2.1 to 5.2.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/go-chi/chi/releases">github.com/go-chi/chi/v5's releases</a>.</em></p> <blockquote> <h2>v5.2.2</h2> <h2>What's Changed</h2> <ul> <li>Use strings.Cut in a few places by <a href="https://github.com/JRaspass"><code>@JRaspass</code></a> in <a href="https://redirect.github.com/go-chi/chi/pull/971">go-chi/chi#971</a></li> <li>Fix non-constant format strings in t.Fatalf by <a href="https://github.com/JRaspass"><code>@JRaspass</code></a> in <a href="https://redirect.github.com/go-chi/chi/pull/972">go-chi/chi#972</a></li> <li>Apply fieldalignment fixes to optimize struct memory layout by <a href="https://github.com/pixel365"><code>@pixel365</code></a> in <a href="https://redirect.github.com/go-chi/chi/pull/974">go-chi/chi#974</a></li> <li>go 1.24 by <a href="https://github.com/pkieltyka"><code>@pkieltyka</code></a> in <a href="https://redirect.github.com/go-chi/chi/pull/977">go-chi/chi#977</a></li> <li>chore: delint ioutil usage by <a href="https://github.com/costela"><code>@costela</code></a> in <a href="https://redirect.github.com/go-chi/chi/pull/962">go-chi/chi#962</a></li> <li>Fixed typo in Router interface definition by <a href="https://github.com/mithileshgupta12"><code>@mithileshgupta12</code></a> in <a href="https://redirect.github.com/go-chi/chi/pull/958">go-chi/chi#958</a></li> <li>Add support for TinyGo by <a href="https://github.com/efraimbart"><code>@efraimbart</code></a> in <a href="https://redirect.github.com/go-chi/chi/pull/978">go-chi/chi#978</a></li> <li>Exclude middleware/profiler.go in TinyGo, as there's no net/http/pprof pkg by <a href="https://github.com/cxjava"><code>@cxjava</code></a> in <a href="https://redirect.github.com/go-chi/chi/pull/982">go-chi/chi#982</a></li> <li>Make use of strings.Cut by <a href="https://github.com/scop"><code>@scop</code></a> in <a href="https://redirect.github.com/go-chi/chi/pull/1005">go-chi/chi#1005</a></li> <li>Change install command format to code block by <a href="https://github.com/sglkc"><code>@sglkc</code></a> in <a href="https://redirect.github.com/go-chi/chi/pull/1001">go-chi/chi#1001</a></li> <li>Correct documentation by <a href="https://github.com/mrdomino"><code>@mrdomino</code></a> in <a href="https://redirect.github.com/go-chi/chi/pull/992">go-chi/chi#992</a></li> </ul> <h2>Security fix</h2> <ul> <li>Fixes <a href="https://github.com/go-chi/chi/security/advisories/GHSA-vrw8-fxc6-2r93">GHSA-vrw8-fxc6-2r93</a> - "Host Header Injection Leads to Open Redirect in RedirectSlashes" <a href="https://github.com/go-chi/chi/commit/1be7ad938cc9c5b39a9dea01a5c518848928ab65">commit</a> <ul> <li>a lower-severity Open Redirect that can't be exploited in browser or email client, as it requires manipulation of a Host header</li> <li>reported by Anuraag Baishya, <a href="https://github.com/anuraagbaishya"><code>@anuraagbaishya</code></a>. Thank you!</li> </ul> </li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/pixel365"><code>@pixel365</code></a> made their first contribution in <a href="https://redirect.github.com/go-chi/chi/pull/974">go-chi/chi#974</a></li> <li><a href="https://github.com/mithileshgupta12"><code>@mithileshgupta12</code></a> made their first contribution in <a href="https://redirect.github.com/go-chi/chi/pull/958">go-chi/chi#958</a></li> <li><a href="https://github.com/efraimbart"><code>@efraimbart</code></a> made their first contribution in <a href="https://redirect.github.com/go-chi/chi/pull/978">go-chi/chi#978</a></li> <li><a href="https://github.com/cxjava"><code>@cxjava</code></a> made their first contribution in <a href="https://redirect.github.com/go-chi/chi/pull/982">go-chi/chi#982</a></li> <li><a href="https://github.com/sglkc"><code>@sglkc</code></a> made their first contribution in <a href="https://redirect.github.com/go-chi/chi/pull/1001">go-chi/chi#1001</a></li> <li><a href="https://github.com/mrdomino"><code>@mrdomino</code></a> made their first contribution in <a href="https://redirect.github.com/go-chi/chi/pull/992">go-chi/chi#992</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/go-chi/chi/compare/v5.2.1...v5.2.2">https://github.com/go-chi/chi/compare/v5.2.1...v5.2.2</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/go-chi/chi/commit/23c395f8524a30334126ca16fb4d37b88745b9b9"><code>23c395f</code></a> Correct documentation (<a href="https://redirect.github.com/go-chi/chi/issues/992">#992</a>)</li> <li><a href="https://github.com/go-chi/chi/commit/5516d147c14a2b03824be7076fc6200bed906901"><code>5516d14</code></a> docs: change install code to code block (<a href="https://redirect.github.com/go-chi/chi/issues/1001">#1001</a>)</li> <li><a href="https://github.com/go-chi/chi/commit/e235052c10146fb724439442fc9d9a23e19fe931"><code>e235052</code></a> Make use of strings.Cut (<a href="https://redirect.github.com/go-chi/chi/issues/1005">#1005</a>)</li> <li><a href="https://github.com/go-chi/chi/commit/1be7ad938cc9c5b39a9dea01a5c518848928ab65"><code>1be7ad9</code></a> Merge commit from fork</li> <li><a href="https://github.com/go-chi/chi/commit/d7034fdfdaefd10f1bc1a7b813bc979f2eda3a36"><code>d7034fd</code></a> Exclude profiler when use tinygo (<a href="https://redirect.github.com/go-chi/chi/issues/982">#982</a>)</li> <li><a href="https://github.com/go-chi/chi/commit/d04703412f631922c8dd1527c6500627174828c1"><code>d047034</code></a> support tinygo (<a href="https://redirect.github.com/go-chi/chi/issues/978">#978</a>)</li> <li><a href="https://github.com/go-chi/chi/commit/fe2c065bc046056aecfa141022509a1e25bdd04b"><code>fe2c065</code></a> Fixed the typo (<a href="https://redirect.github.com/go-chi/chi/issues/958">#958</a>)</li> <li><a href="https://github.com/go-chi/chi/commit/1aae5b2d2dc8f9e8ea1f68a7462693aaaa5f368c"><code>1aae5b2</code></a> chore: delint ioutil usage (<a href="https://redirect.github.com/go-chi/chi/issues/962">#962</a>)</li> <li><a href="https://github.com/go-chi/chi/commit/c6225e35a4880a9a884c135b5f847a74e1e3a01e"><code>c6225e3</code></a> go 1.24 (<a href="https://redirect.github.com/go-chi/chi/issues/977">#977</a>)</li> <li><a href="https://github.com/go-chi/chi/commit/e846b8304c769c4f1a51c9de06bebfaa4576bd88"><code>e846b83</code></a> Apply fieldalignment fixes to optimize struct memory layout (<a href="https://redirect.github.com/go-chi/chi/issues/974">#974</a>)</li> <li>Additional commits viewable in <a href="https://github.com/go-chi/chi/compare/v5.2.1...v5.2.2">compare view</a></li> </ul> </details> <br /> Updates `github.com/goccy/go-yaml` from 1.17.1 to 1.18.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/goccy/go-yaml/releases">github.com/goccy/go-yaml's releases</a>.</em></p> <blockquote> <h2>1.18.0</h2> <h2>What's Changed</h2> <ul> <li>feat: add global <code>OmitEmpty</code> encoding option by <a href="https://github.com/bwplotka"><code>@bwplotka</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/691">goccy/go-yaml#691</a></li> <li>chore: clarify omitempty behaviour. by <a href="https://github.com/bwplotka"><code>@bwplotka</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/696">goccy/go-yaml#696</a></li> <li>Treat output from TextMarshaler as string by <a href="https://github.com/shuheiktgw"><code>@shuheiktgw</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/698">goccy/go-yaml#698</a></li> <li>Update golangci-lint to v2.1.2 by <a href="https://github.com/shuheiktgw"><code>@shuheiktgw</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/701">goccy/go-yaml#701</a></li> <li>Tidy benchmarks/go.mod by <a href="https://github.com/eikemeier"><code>@eikemeier</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/686">goccy/go-yaml#686</a></li> <li>Remove testmod task by <a href="https://github.com/goccy"><code>@goccy</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/715">goccy/go-yaml#715</a></li> <li>Clean up encoder.go by <a href="https://github.com/shuheiktgw"><code>@shuheiktgw</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/703">goccy/go-yaml#703</a></li> <li>Fix validation error position for container type by <a href="https://github.com/goccy"><code>@goccy</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/716">goccy/go-yaml#716</a></li> <li>Add nil checking for error handling by <a href="https://github.com/goccy"><code>@goccy</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/719">goccy/go-yaml#719</a></li> <li>Ignore validation for alias map key by <a href="https://github.com/goccy"><code>@goccy</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/720">goccy/go-yaml#720</a></li> <li>Avoid returning an error for null document by <a href="https://github.com/shuheiktgw"><code>@shuheiktgw</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/721">goccy/go-yaml#721</a></li> <li>Add Go 1.24 to test matrix by <a href="https://github.com/shuheiktgw"><code>@shuheiktgw</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/722">goccy/go-yaml#722</a></li> <li>Set null value for empty document by <a href="https://github.com/goccy"><code>@goccy</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/725">goccy/go-yaml#725</a></li> <li>Support implicit null by <a href="https://github.com/goccy"><code>@goccy</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/727">goccy/go-yaml#727</a></li> <li>Support omitzero by <a href="https://github.com/goccy"><code>@goccy</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/729">goccy/go-yaml#729</a></li> <li>feat: Dont make copies of structs for validation by <a href="https://github.com/shuheiktgw"><code>@shuheiktgw</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/737">goccy/go-yaml#737</a></li> <li>Prevent panic when decoding string named types by <a href="https://github.com/shuheiktgw"><code>@shuheiktgw</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/743">goccy/go-yaml#743</a></li> <li>Fix misaligned indentation in comments by <a href="https://github.com/shuheiktgw"><code>@shuheiktgw</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/734">goccy/go-yaml#734</a></li> <li>Add support for multi-line double-quoted strings with CRLF line endings by <a href="https://github.com/shuheiktgw"><code>@shuheiktgw</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/744">goccy/go-yaml#744</a></li> <li>Update custom marshaler and unmarshaler to accept context by <a href="https://github.com/pgeiem"><code>@pgeiem</code></a> in <a href="https://redirect.github.com/goccy/go-yaml/pull/745">goccy/go-yaml#745</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/bwplotka"><code>@bwplotka</code></a> made their first contribution in <a href="https://redirect.github.com/goccy/go-yaml/pull/691">goccy/go-yaml#691</a></li> <li><a href="https://github.com/eikemeier"><code>@eikemeier</code></a> made their first contribution in <a href="https://redirect.github.com/goccy/go-yaml/pull/686">goccy/go-yaml#686</a></li> <li><a href="https://github.com/pgeiem"><code>@pgeiem</code></a> made their first contribution in <a href="https://redirect.github.com/goccy/go-yaml/pull/745">goccy/go-yaml#745</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/goccy/go-yaml/compare/v1.17.1...v1.18.0">https://github.com/goccy/go-yaml/compare/v1.17.1...v1.18.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/goccy/go-yaml/commit/52dacb84f31d55f1d4f0916d48707456a7c90ecb"><code>52dacb8</code></a> Update custom marshaler and unmarshaler to accept context (<a href="https://redirect.github.com/goccy/go-yaml/issues/745">#745</a>)</li> <li><a href="https://github.com/goccy/go-yaml/commit/680eea761fbf6abded9ec1ee7957c20bd8ac4cfa"><code>680eea7</code></a> Add support for multi-line double-quoted strings with CRLF line endings (<a href="https://redirect.github.com/goccy/go-yaml/issues/744">#744</a>)</li> <li><a href="https://github.com/goccy/go-yaml/commit/f1c23f747b02cf7af81d3d1792909cb43f5def1c"><code>f1c23f7</code></a> Fix misaligned indentation in comments (<a href="https://redirect.github.com/goccy/go-yaml/issues/734">#734</a>)</li> <li><a href="https://github.com/goccy/go-yaml/commit/6a6c998c2fd0102e5edb17c7054420a35ec12cd5"><code>6a6c998</code></a> Prevent panic when decoding string named types (<a href="https://redirect.github.com/goccy/go-yaml/issues/743">#743</a>)</li> <li><a href="https://github.com/goccy/go-yaml/commit/04f9bb53f72ea66b15c198164c7195c87108d608"><code>04f9bb5</code></a> feat: Dont make copies of structs for validation (<a href="https://redirect.github.com/goccy/go-yaml/issues/737">#737</a>)</li> <li><a href="https://github.com/goccy/go-yaml/commit/c430438700dc5bcac447fc0a6a88e6e756ba7f52"><code>c430438</code></a> Support omitzero (<a href="https://redirect.github.com/goccy/go-yaml/issues/729">#729</a>)</li> <li><a href="https://github.com/goccy/go-yaml/commit/500180b7b72264c5442e1d5e32269f73f89eb28c"><code>500180b</code></a> support implicit null (<a href="https://redirect.github.com/goccy/go-yaml/issues/727">#727</a>)</li> <li><a href="https://github.com/goccy/go-yaml/commit/e61dcd0829750b3b82ab1300c629751c525cd23a"><code>e61dcd0</code></a> set null value for empty document (<a href="https://redirect.github.com/goccy/go-yaml/issues/725">#725</a>)</li> <li><a href="https://github.com/goccy/go-yaml/commit/4b07c0d4851994ed29d585de04d20cb7c7533359"><code>4b07c0d</code></a> Add Go 1.24 to test matrix (<a href="https://redirect.github.com/goccy/go-yaml/issues/722">#722</a>)</li> <li><a href="https://github.com/goccy/go-yaml/commit/427b18e1b78a5ee3604a04056b08dff9db4ed2d7"><code>427b18e</code></a> Avoid returning an error for null document (<a href="https://redirect.github.com/goccy/go-yaml/issues/721">#721</a>)</li> <li>Additional commits viewable in <a href="https://github.com/goccy/go-yaml/compare/v1.17.1...v1.18.0">compare view</a></li> </ul> </details> <br /> Updates `github.com/grafana/grafana-app-sdk/logging` from 0.39.3 to 0.40.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/grafana/grafana-app-sdk/releases">github.com/grafana/grafana-app-sdk/logging's releases</a>.</em></p> <blockquote> <h2>v0.40.1</h2> <h2>Changelog</h2> <ul> <li>22ae456d742874b94e0f456269f2680a18d6eb81 Bump github.com/grafana/cog from 0.0.36 to 0.0.37 in the all group (<a href="https://redirect.github.com/grafana/grafana-app-sdk/issues/878">#878</a>)</li> <li>0432b6bc8365b768620ad2bf693cabcf40393dd1 Bump the all group in /plugin with 2 updates (<a href="https://redirect.github.com/grafana/grafana-app-sdk/issues/866">#866</a>)</li> <li>6c21950539b1cb9c4f7051b16e0fba363bccea7a Bump the all group with 2 updates (<a href="https://redirect.github.com/grafana/grafana-app-sdk/issues/874">#874</a>)</li> <li>6dc204be97488fe3836e4c0af01b946238b75f47 Bump the all group with 3 updates (<a href="https://redirect.github.com/grafana/grafana-app-sdk/issues/867">#867</a>)</li> <li>03cb2beb9a42868dcd8e8c50a9d0142bc4dd1192 Bump the all group with 5 updates (<a href="https://redirect.github.com/grafana/grafana-app-sdk/issues/870">#870</a>)</li> <li>af5021f206ffc8e949e9c2802d0f33af752c990b fix(k8s): ensure the installer handles multiple kinds in the same gv (<a href="https://redirect.github.com/grafana/grafana-app-sdk/issues/881">#881</a>)</li> </ul> <h2>v0.40.0</h2> <h1>What Changed in this Release</h1> <p>This release introduces a breaking change to overhaul the app manifest, and the ability to create a standalone API server to run an App (or install an App onto an existing API server). It is a release of the merged of the <a href="https://redirect.github.com/grafana/grafana-app-sdk/pull/864">feat/apiserver branch into main</a>.</p> <h2>App Manifest Changes</h2> <p><strong>NOTE: You may use the flag <code>--useoldmanifestkinds</code> in the <code>generate</code> command to continue to generate using the old manifest and kind pattern, but this functionality will be removed in a future release</strong></p> <p>To better reflect the API paradigm, the app manifest has changed from containing a <code>kinds</code> field which has a list of kinds which each have a list of versions (which each have a version-specific schema), to a <code>versions</code> field that contains a set of versions, each of which contains kinds available in that version (with that version-specific schema for the kind).</p> <p>This means that a manifest CUE file which previously looked like:</p> <pre lang="cue"><code>{ appName: "test" kinds: [{ kind: "Foo" current: "v2" versions: { "v1": { schema: { ... } } "v2": { schema: { ... } } } }] } </code></pre> <p>would now look like:</p> <pre lang="cue"><code>{ appName: "test" versions: { "v1": { kinds: [{ kind: "Foo" schema: { ... } }] } </tr></table> </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/grafana/grafana-app-sdk/commit/af5021f206ffc8e949e9c2802d0f33af752c990b"><code>af5021f</code></a> fix(k8s): ensure the installer handles multiple kinds in the same gv (<a href="https://redirect.github.com/grafana/grafana-app-sdk/issues/881">#881</a>)</li> <li><a href="https://github.com/grafana/grafana-app-sdk/commit/22ae456d742874b94e0f456269f2680a18d6eb81"><code>22ae456</code></a> Bump github.com/grafana/cog from 0.0.36 to 0.0.37 in the all group (<a href="https://redirect.github.com/grafana/grafana-app-sdk/issues/878">#878</a>)</li> <li><a href="https://github.com/grafana/grafana-app-sdk/commit/6c21950539b1cb9c4f7051b16e0fba363bccea7a"><code>6c21950</code></a> Bump the all group with 2 updates (<a href="https://redirect.github.com/grafana/grafana-app-sdk/issues/874">#874</a>)</li> <li><a href="https://github.com/grafana/grafana-app-sdk/commit/03cb2beb9a42868dcd8e8c50a9d0142bc4dd1192"><code>03cb2be</code></a> Bump the all group with 5 updates (<a href="https://redirect.github.com/grafana/grafana-app-sdk/issues/870">#870</a>)</li> <li><a href="https://github.com/grafana/grafana-app-sdk/commit/0432b6bc8365b768620ad2bf693cabcf40393dd1"><code>0432b6b</code></a> Bump the all group in /plugin with 2 updates (<a href="https://redirect.github.com/grafana/grafana-app-sdk/issues/866">#866</a>)</li> <li><a href="https://github.com/grafana/grafana-app-sdk/commit/6dc204be97488fe3836e4c0af01b946238b75f47"><code>6dc204b</code></a> Bump the all group with 3 updates (<a href="https://redirect.github.com/grafana/grafana-app-sdk/issues/867">#867</a>)</li> <li><a href="https://github.com/grafana/grafana-app-sdk/commit/e284a8db0e3aa3755d4b5fb6a32ba0936af399c6"><code>e284a8d</code></a> API Server & Custom Subresource Route Support (<a href="https://redirect.github.com/grafana/grafana-app-sdk/issues/864">#864</a>)</li> <li><a href="https://github.com/grafana/grafana-app-sdk/commit/8d448998c94aa747ccf03f2453b399deb434c502"><code>8d44899</code></a> CopyObjectInto: Follow pointer values and copy them instead of copying addres...</li> <li><a href="https://github.com/grafana/grafana-app-sdk/commit/0d80d6562f5ee9536ba853b43e8e33c32b1ef2f3"><code>0d80d65</code></a> Bump golang.org/x/sync from 0.15.0 to 0.16.0 in the all group (<a href="https://redirect.github.com/grafana/grafana-app-sdk/issues/861">#861</a>)</li> <li><a href="https://github.com/grafana/grafana-app-sdk/commit/bf2d08222b0eddd928414caec5e11250bf580dad"><code>bf2d082</code></a> feat: add namespace in tilt uniqueness (<a href="https://redirect.github.com/grafana/grafana-app-sdk/issues/857">#857</a>)</li> <li>Additional commits viewable in <a href="https://github.com/grafana/grafana-app-sdk/compare/v0.39.3...v0.40.1">compare view</a></li> </ul> </details> <br /> Updates `github.com/spf13/pflag` from 1.0.6 to 1.0.7 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/spf13/pflag/releases">github.com/spf13/pflag's releases</a>.</em></p> <blockquote> <h2>v1.0.7</h2> <h2>What's Changed</h2> <ul> <li>Fix defaultIsZeroValue check for generic Value types by <a href="https://github.com/MidnightRocket"><code>@MidnightRocket</code></a> in <a href="https://redirect.github.com/spf13/pflag/pull/422">spf13/pflag#422</a></li> <li>feat: Use structs for errors returned by pflag. by <a href="https://github.com/eth-p"><code>@eth-p</code></a> in <a href="https://redirect.github.com/spf13/pflag/pull/425">spf13/pflag#425</a></li> <li>Fix typos by <a href="https://github.com/co63oc"><code>@co63oc</code></a> in <a href="https://redirect.github.com/spf13/pflag/pull/428">spf13/pflag#428</a></li> <li>fix <a href="https://redirect.github.com/spf13/pflag/issues/423">#423</a> : Add helper function and some documentation to parse shorthand go test flags. by <a href="https://github.com/valdar"><code>@valdar</code></a> in <a href="https://redirect.github.com/spf13/pflag/pull/424">spf13/pflag#424</a></li> <li>add support equivalent to golang flag.TextVar(), also fixes the test failure as described in <a href="https://redirect.github.com/spf13/pflag/issues/368">#368</a> by <a href="https://github.com/hujun-open"><code>@hujun-open</code></a> in <a href="https://redirect.github.com/spf13/pflag/pull/418">spf13/pflag#418</a></li> <li>add support for Func() and BoolFunc() <a href="https://redirect.github.com/spf13/pflag/issues/426">#426</a> by <a href="https://github.com/LeGEC"><code>@LeGEC</code></a> in <a href="https://redirect.github.com/spf13/pflag/pull/429">spf13/pflag#429</a></li> <li>fix: correct argument length check in FlagSet.Parse by <a href="https://github.com/ShawnJeffersonWang"><code>@ShawnJeffersonWang</code></a> in <a href="https://redirect.github.com/spf13/pflag/pull/409">spf13/pflag#409</a></li> <li>fix usage message for func flags, fix arguments order by <a href="https://github.com/LeGEC"><code>@LeGEC</code></a> in <a href="https://redirect.github.com/spf13/pflag/pull/431">spf13/pflag#431</a></li> <li>Add support for time.Time flags by <a href="https://github.com/max-frank"><code>@max-frank</code></a> in <a href="https://redirect.github.com/spf13/pflag/pull/348">spf13/pflag#348</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/MidnightRocket"><code>@MidnightRocket</code></a> made their first contribution in <a href="https://redirect.github.com/spf13/pflag/pull/422">spf13/pflag#422</a></li> <li><a href="https://github.com/eth-p"><code>@eth-p</code></a> made their first contribution in <a href="https://redirect.github.com/spf13/pflag/pull/425">spf13/pflag#425</a></li> <li><a href="https://github.com/co63oc"><code>@co63oc</code></a> made their first contribution in <a href="https://redirect.github.com/spf13/pflag/pull/428">spf13/pflag#428</a></li> <li><a href="https://github.com/valdar"><code>@valdar</code></a> made their first contribution in <a href="https://redirect.github.com/spf13/pflag/pull/424">spf13/pflag#424</a></li> <li><a href="https://github.com/hujun-open"><code>@hujun-open</code></a> made their first contribution in <a href="https://redirect.github.com/spf13/pflag/pull/418">spf13/pflag#418</a></li> <li><a href="https://github.com/LeGEC"><code>@LeGEC</code></a> made their first contribution in <a href="https://redirect.github.com/spf13/pflag/pull/429">spf13/pflag#429</a></li> <li><a href="https://github.com/ShawnJeffersonWang"><code>@ShawnJeffersonWang</code></a> made their first contribution in <a href="https://redirect.github.com/spf13/pflag/pull/409">spf13/pflag#409</a></li> <li><a href="https://github.com/max-frank"><code>@max-frank</code></a> made their first contribution in <a href="https://redirect.github.com/spf13/pflag/pull/348">spf13/pflag#348</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/spf13/pflag/compare/v1.0.6...v1.0.7">https://github.com/spf13/pflag/compare/v1.0.6...v1.0.7</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/spf13/pflag/commit/f9cbdd9ca94287ab4ef0848e67ecd77cf1361d48"><code>f9cbdd9</code></a> Merge pull request <a href="https://redirect.github.com/spf13/pflag/issues/348">#348</a> from max-frank/add-time-flag-support</li> <li><a href="https://github.com/spf13/pflag/commit/e3be2ebcffcc36be35e23d418d3e0ba86239826a"><code>e3be2eb</code></a> Reduce duplication by forwarding to sibling functions</li> <li><a href="https://github.com/spf13/pflag/commit/7cc25e3bdd8c540b243f70c366ba1f1856fcd9e9"><code>7cc25e3</code></a> Don't export <code>TimeValue</code> (yet)</li> <li><a href="https://github.com/spf13/pflag/commit/d15848db482b52179577da9738cf9702d8d28466"><code>d15848d</code></a> Remove unnecessary time test stderr dev null redirect</li> <li><a href="https://github.com/spf13/pflag/commit/c5ce22e836c6268eb270e8f28ae5e3729a27c82d"><code>c5ce22e</code></a> Use time.Time for expectations in time flag tests</li> <li><a href="https://github.com/spf13/pflag/commit/1992c5a7b88da3490ad7ac088c72dd20b466ee8d"><code>1992c5a</code></a> Add support for time.Time flags</li> <li><a href="https://github.com/spf13/pflag/commit/1c62fb2813da5f1d1b893a49180a41b3f6be3262"><code>1c62fb2</code></a> Merge pull request <a href="https://redirect.github.com/spf13/pflag/issues/431">#431</a> from LeGEC/430-fix-usage-message-for-func-flags</li> <li><a href="https://github.com/spf13/pflag/commit/1a4b5b2e5c7ee4a194cebc579bb34198187df73d"><code>1a4b5b2</code></a> fix discrepancy in order of arguments for Func() and BoolFunc() <a href="https://redirect.github.com/spf13/pflag/issues/433">#433</a></li> <li><a href="https://github.com/spf13/pflag/commit/4730aa0d979f34d4f7427d524b84043557ba72ef"><code>4730aa0</code></a> fix help message for Func and BoolFunc flags <a href="https://redirect.github.com/spf13/pflag/issues/430">#430</a></li> <li><a href="https://github.com/spf13/pflag/commit/f4c97c2487b06cff392d2958534e7195f79847fb"><code>f4c97c2</code></a> minor: fix typos in comments</li> <li>Additional commits viewable in <a href="https://github.com/spf13/pflag/compare/v1.0.6...v1.0.7">compare view</a></li> </ul> </details> <br /> Updates `k8s.io/cli-runtime` from 0.33.0 to 0.33.3 <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/kubernetes/cli-runtime/commit/51cde5349a645b14c5b9872b4eb5a1726765ba10"><code>51cde53</code></a> Update dependencies to v0.33.3 tag</li> <li>See full diff in <a href="https://github.com/kubernetes/cli-runtime/compare/v0.33.0...v0.33.3">compare view</a></li> </ul> </details> <br /> 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 <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Include all supported versions when no specific version is provided i… …n selectors (grafana#121) ### What Modify `MakeFilters` in `Registry` to return filters for all supported versions, when no specific version is provided in selectors, by using the new `LookupAllVersionsForPartialGVK` method from `RegistryIndex` to return all supported versions for a resource type. ### Why Previously, when users ran `grafanactl resources push dashboard` without specifying an API version, only dashboards with the preferred version were pushed. Dashboards with other versions (like `v0alpha1` when `v1beta1` was preferred) were ignored, because `MakeFilters` only returned a filter for the preferred version. This fix ensures that when no specific version is provided in selectors, the command will push resources with ALL supported versions, preventing any resources from being ignored due to version mismatch. Fixes grafana#101 Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com>
Replace pull / push / validate directories with paths (grafana#89) Co-authored-by: Kévin Gomez <kevin.gomez@grafana.com>
Fix push command when creating resources (grafana#51) Because of a shadowed `err`, the `resources push` command reported resources as "pushed" without ever actually trying to create them.
PreviousNext