docs icon indicating copy to clipboard operation
docs copied to clipboard

Panic in kubernetes-go-guestbook example program

Open mnlumi opened this issue 2 years ago • 2 comments

What happened?

While upgrading the kubenetes-go-guestbook/simple from v3 to v4, this test fails as the result of a panic. I was able to reproduce locally as well. This does not panic in v3.

Expected Behavior

I expect the program to run successfully as it did in v3.

Steps to reproduce

Create a new pulumi program with the example https://github.com/pulumi/examples/tree/master/kubernetes-go-guestbook/simple, run pulumi up, see panic.

Output of pulumi about

CLI
Version      3.76.1
Go Version   go1.20.6
Go Compiler  gc

Plugins
NAME        VERSION
go          unknown
kubernetes  4.0.3

Host
OS       darwin
Version  13.0.1
Arch     arm64

Dependencies:
NAME                                        VERSION
github.com/pulumi/pulumi-kubernetes/sdk/v4  4.0.3
github.com/pulumi/pulumi/sdk/v3             3.76.1

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

mnlumi avatar Aug 03 '23 17:08 mnlumi

I took a quick look, and the panic appears to be in the user (test) code rather than the provider, so I think this can be downgraded from a P1.

I see two different test failures, but I'm guessing that the v3 provider may have been missing an invalid configuration that v4 is catching in both cases.

lblackstone avatar Aug 03 '23 18:08 lblackstone

@cnunciato Could you please take a look at the kubernetes-go-guestbook program. In the tests on this PR, there's an index out of range error. I'm not sure what is needed here.

pulumi:pulumi:Stack kubernetes-go-guestbook-p-it-fv-az268-1-simple-49e141fe create panic: runtime error: index out of range [0] with length 0

mnlumi avatar Aug 28 '23 14:08 mnlumi

Not clear why this is an issue in the docs repo, since this is an issue with an example and there's no link to a docs page. There's a close PR linked with this issue, so assuming this is fixed elsewhere and closing.

jkodroff avatar Jun 02 '25 14:06 jkodroff