cuelang/cue

exec.Run runner of kind "XXX" not found with k8s resources

b4nst opened this issue · 1 comments

b4nst commented

What version of CUE are you using (cue version)?

$ cue version
cue version v0.4.0 darwin/amd64

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.

command: deploy: {
	apply: exec.Run & {
		r:                  release.#Release
		stdin: r.output
		cmd:   "cat"
	}
}

r.output being a string generated by a yaml.MarshalStream of a list in release.#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 by cli.Print with proper changes (stdin --> text, remove cmd)

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 error

runner of kind "XXX" not found

XXX being the kind value of the first resource displayed (e.g. Deployment)

This issue has been migrated to cue-lang/cue#1061.

For more details about CUE's migration to a new home, please see cue-lang/cue#1078.