rig icon indicating copy to clipboard operation
rig copied to clipboard

Cannot dry-run the first rollout on the operator.

Open Munklinde96 opened this issue 6 months ago • 0 comments

When dry-running the first rollout, it fails in the operator as the namespace does not yet exist. I get the following error

"error committing changes","error":"could not render create to /v1, Kind=ServiceAccount/test/my-capsule: not_found: namespaces \"test\" not found","stacktrace":"github.com/rigdev/rig/pkg/pipeline.executeRequestInner[...]\n\t/home/runner/_work/rig/rig/pkg/pipeline/pipeline.go:194\ngithub.com/rigdev/rig/pkg/pipeline.ExecuteRequest[...]\n\t/home/runner/_work/rig/rig/pkg/pipeline/pipeline.go:149\ngithub.com/rigdev/rig/pkg/pipeline.(*CapsulePipeline).RunCapsule\n\t/home/runner/_work/rig/rig/pkg/pipeline/pipeline.go:106\ngithub.com/rigdev/rig/pkg/service/pipeline.(*service).DryRun\n\t/home/runner/_work/rig/rig/pkg/service/pipeline/service.go:150\ngithub.com/rigdev/rig/pkg/handler/api/pipeline.(*handler).DryRun\n\t/home/runner/_work/rig/rig/pkg/handler/api/pipeline/dry_run.go:54\nconnectrpc.com/connect.NewUnaryHandler[...].func1\n\t/home/runner/go/pkg/mod/connectrpc.com/[email protected]/handler.go:52\nconnectrpc.com/connect.NewUnaryHandler[...].func2\n\t/home/runner/go/pkg/mod/connectrpc.com/[email protected]/handler.go:70\nconnectrpc.com/connect.(*Handler).ServeHTTP\n\t/home/runner/go/pkg/mod/connectrpc.com/[email protected]/handler.go:238\ngithub.com/rigdev/rig-go-api/operator/api/v1/pipeline/pipelineconnect.NewServiceHandler.func1\n\t/home/runner/_work/rig/rig/gen/go/rig/operator/api/v1/pipeline/pipelineconnect/service.connect.go:126\nnet/http.HandlerFunc.ServeHTTP\n\t/home/runner/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:2166\nnet/http.(*ServeMux).ServeHTTP\n\t/home/runner/go/pkg/mod/golang.org/[email protected]/src/net/http/server.go:2683\ngolang.org/x/net/http2.(*serverConn).runHandler\n\t/home/runner/go/pkg/mod/golang.org/x/[email protected]/http2/server.go:2414"}

This means that we can only see the resulting resource on a platform level.

Munklinde96 avatar Aug 21 '24 13:08 Munklinde96