Hi, I'm trying out pulumi operator v2. My setup is...
# kubernetes
h
Hi, I'm trying out pulumi operator v2. My setup is with go, and I compiled it to a binary so I can ship it with my custom image. But it doesn't seem to pickup the runtime config from the project config? My config sets the binary. I can run it if I ssh to the pod and run pulumi preview. But the workspace pod is still complaining about
go: go.mod file not found in current directory or any parent directory
My project runtime config is like this
Copy code
runtime:
  name: go
  options:
    binary: ./some-binary
I was able to get it pass that failure by giving it the go.mod. But why does it require a go.mod?
h
i believe this is a limitation of the automation api https://github.com/pulumi/pulumi/issues/7219
h
I have the pulumi CLI available in the image. So the only thing missing was a
go.mod
file. And I was able to make it happy with an empty go.mod file
Running
pulumi install
(without the go.mod) fails with the same error
Copy code
❯ pulumi install           
Installing dependencies...

go: go.mod file not found in current directory or any parent directory; see 'go help modules'
error: installing dependencies: `go mod tidy` failed to install dependencies: exit status 1
pulumi install (without go.mod) fails with the same error.
My guess is, the pulumi k8s controller called an unnecessary install. It should probably skip that if the project sets the binary...
h
ah ok then this is probably https://github.com/pulumi/pulumi-kubernetes-operator/issues/374 i’m surprised we don’t already expose an option to disable the install step, it’s very reasonable IMO. please give that issue a 👍 !