Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in grafonnet #2414

Closed
roelandvanbatenburg opened this issue May 2, 2024 · 1 comment
Closed

Error in grafonnet #2414

roelandvanbatenburg opened this issue May 2, 2024 · 1 comment
Labels

Comments

@roelandvanbatenburg
Copy link
Contributor

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.

@roelandvanbatenburg
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants