-
Notifications
You must be signed in to change notification settings - Fork 294
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
cmd/cue: cmd exec.Run runner of kind "XXX" not found with k8s resources #1061
Comments
I can't remember exactly what was the issue, but it seems I fixed it. I remember that for some reason, adding a nested level in the command for task seemed to work better ( I think we can close this one since I ended up achieving my goals by cleaning my code. I strongly suspect PEBAK on this one. I can reopen it if I achieve to reproduce it. Thanks for your answer, and don't worry for the delay! |
Thanks for the quick follow up, @b4nst! |
Hey, I'm afraid I'm facing the same issue in a very similar context. I'm attaching a small public repo with a reproducible example: https://github.com/astraios/cuelangfoo Each time you run cue build
runner of kind "ServiceAccount" not found |
@astraios In your example you are passing a k8s resource, not an actual cue task The thing is https://github.com/cuelang/cue/blob/master/cmd/cue/cmd/custom.go#L168 |
OIC, thanks for that insight. I had a look at that file yesterday, but the fact that I was trying to turn my "Release" structure into an actual cue "task" completely escaped me. With the following approach it works!!!
My original idea was to have a "variable" I could work with in tasks. I guess my approach is not a correct one... |
Originally opened by @b4nst in cuelang/cue#1061
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest release?
yes
What did you do?
I'm still trying to cut down my module in order to send something short that reproduces my issue.
r.output
being a string generated by ayaml.MarshalStream
of a list inrelease.#Release
. This list contains Kubernetes definitions.I've noticed that if I use
yaml.Marshal(single-resource)
it works. It does not work with a list comprehension +strings.Join
(same error)The command works if I replace
exec.Run
bycli.Print
with proper changes (stdin
-->text
, removecmd
)What did you expect to see?
Command executed with sucess (prints
r.output
content)What did you see instead?
Prints
r.output
content then exit with errorXXX being the
kind
value of the first resource displayed (e.g.Deployment
)The text was updated successfully, but these errors were encountered: