Error in grafonnet
roelandvanbatenburg opened this issue · comments
What happened?
When generating the manifest I get this error:
RUNTIME ERROR: Field does not exist: get
vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.4.0/custom/util/grid.libsonnet:119:25-32
vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.4.0/custom/util/grid.libsonnet:121:29-34
<std>:774:24-47 thunk from <function <aux>>
<std>:774:9-57 function <aux>
<std>:775:5-28 function <anonymous>
vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.4.0/custom/util/grid.libsonnet:(93:5)-(172:6)
vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/apiserver.libsonnet:(320:11)-(345:10) thunk from <object <anonymous>>
vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.4.0/custom/dashboard.libsonnet:24:30-36 thunk from <object <anonymous>>
<std>:32:25-26 thunk from <function <anonymous>>
<std>:32:16-27 function <anonymous>
...
vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.4.0/custom/util/panel.libsonnet:(21:7)-(56:8)
vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.4.0/custom/util/panel.libsonnet:57:5-19 function <anonymous>
vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.4.0/custom/dashboard.libsonnet:27:12-48 object <anonymous>
<std>:932:43-47 thunk from <thunk from <thunk from <thunk from <thunk <lines> from <function <aux>>>>>>
<std>:904:10-11 function <aux>
<std>:932:39-78 thunk from <thunk from <thunk from <thunk <lines> from <function <aux>>>>>
<std>:936:9-28 builtin function <join>
<std>:937:5-23 function <anonymous>
vendor/github.com/brancz/kubernetes-grafana/grafana/grafana.libsonnet:100:25-79 object <anonymous>
During manifestation
Did you expect to see some different?
Yes, the manifest should exist
How to reproduce it (as minimally and precisely as possible):
Any example where the grafana dashboards are generated
Environment
-
Prometheus Operator version:
71e8adada95be82c66af8262fb935346ecf27caa
Anything else we need to know?:
Removing the default dashboards with:
{
values+: {
grafana+: {
dashboards: {}
},
},
}
resolves the issue.
#2388 reported the same error, but was marked as Resolved without a clear solution.
I found the solution here: #2376
We were still building with the quay.io/coreos/jsonnet-ci
docker image and that only had jsonnet version 0.15.
The instructions for using that image were removed in 0.11, but I missed that.
I have created my own image: ghcr.io/roelandvanbatenburg/kube-prometheus-builder
as I could not find any image that contained the required tools. I will try to make a PR to use this docker image as that is something that we prefer installing the dependencies on every developer machine.