grafana/hack
dependabot[bot] eac8913aa2
deps(go): bump modernc.org/sqlite from 1.44.3 to 1.47.0 (#120885)
* deps(go): bump modernc.org/sqlite from 1.44.3 to 1.47.0

Bumps [modernc.org/sqlite](https://gitlab.com/cznic/sqlite) from 1.44.3 to 1.47.0.
- [Changelog](https://gitlab.com/cznic/sqlite/blob/master/CHANGELOG.md)
- [Commits](https://gitlab.com/cznic/sqlite/compare/v1.44.3...v1.47.0)

---
updated-dependencies:
- dependency-name: modernc.org/sqlite
  dependency-version: 1.47.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-23 09:55:30 +01:00
..
boilerplate.go.txt
externalTools.go
go.mod deps(go): bump modernc.org/sqlite from 1.44.3 to 1.47.0 (#120885) 2026-03-23 09:55:30 +01:00
go.sum deps(go): bump modernc.org/sqlite from 1.44.3 to 1.47.0 (#120885) 2026-03-23 09:55:30 +01:00
make-aggregator-pki.sh fix: hack cert location (#118298) 2026-02-17 18:58:44 +01:00
openapi-codegen.sh Chore: Upgrade app-sdk to 0.50.1 (#117292) 2026-02-10 13:55:07 +03:00
README.md
update-codegen.sh Chore: Upgrade app-sdk to 0.50.1 (#117292) 2026-02-10 13:55:07 +03:00

Kubernetes HACK Alert

This is a hack folder for kubernetes codegen scripts. Oddly, a /hack/ folder seems to be standard kubernetes development practice ¯_(ツ)_/¯

The workflow is a WIP, however we are trying to leverage as many off-the-shelf patterns as possible.

For these scripts to work, your local GOROOT/src/grafana/grafana must point to this git checkout. For my setup this is:

 pwd
/Users/ryan/go/src/github.com/grafana
 ls -l
total 0
lrwxr-xr-x  1 ryan  staff  37 Oct  5 09:34 grafana -> /Users/ryan/workspace/grafana/grafana

The current workflow is to run the following:

# ensure k8s.io/code-generator pkg is up to date
go mod download

# the happy path
./hack/update-codegen.sh

Note that the script deletes existing openapi go code and regenerates in place so that you will temporarily see deleted files in your git status. After a successful run, you should see them restored.

If resource client is not generated for your resource make sure that it follows the k8s guidelines for structuring the resource definition

  • the directory is named after resource version, i.e. <resource_name>/v<version> (e.g. service/v0alpha1)
  • the resource directory contains file types.go that includes resource definitions
  • the resource definitions are annotated with comment // +genclient