The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/hack
Ryan McKinley d82f3be6f7
QueryService: Use types from sdk (#84029)
1 year ago
..
README.md K8s: Update common openapi generation scripts (#81857) 1 year ago
boilerplate.go.txt K8s: fix standalone command and add hack scripts (#79052) 1 year ago
externalTools.go K8s: update hack codegen script (#81216) 1 year ago
make-aggregator-pki.sh K8s: add a remote services file config option to specify aggregation config (#83646) 1 year ago
openapi-codegen.sh K8s: Update codegen to support new packages (#83347) 1 year ago
update-codegen.sh QueryService: Use types from sdk (#84029) 1 year ago

README.md

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.