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

path issue for the locutus example with jsonnet renderer #47

Open
morvencao opened this issue Apr 21, 2021 · 0 comments
Open

path issue for the locutus example with jsonnet renderer #47

morvencao opened this issue Apr 21, 2021 · 0 comments

Comments

@morvencao
Copy link

Found the follow issue while trying the locutus example with jsonnet renderer:

$ locutus --kubeconfig $KUBECONFIG --renderer=jsonnet --renderer.jsonnet.entrypoint=example/jsonnet/main.jsonnet --trigger=oneoff --render-only
level=info ts=2021-04-21T08:03:26.065791381Z caller=main.go:206 msg=running renderer=jsonnet trigger=oneoff
ts=2021-04-21T08:03:26.068048061Z caller=main.go:209 msg="Unhandled error received. Exiting..." err="failed to run trigger: failed to render: failed to evaluate: RUNTIME ERROR: couldn't open import \"rollout.json\": no match locally or in the Jsonnet library paths\n\texample/jsonnet/main.jsonnet:46:13-34\tobject <anonymous>\n\tDuring manifestation\t\n"

It is definitely path issue while importing rollout.json in example/jsonnet/main.jsonnet.

It works if we replace rollout.json with example/jsonnet/rollout.json, but it is not a good idea to use that relative path from CWD.

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

No branches or pull requests

1 participant