question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Helm V3 Release assertion fail on update

See original GitHub issue

Hello!

  • 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)

Issue details

I’m using the Release resource to deploy https://k8s.ory.sh/helm/kratos.html chart. It deploys fine and everything runs normally. But if I do a pulumi up after, it fails with an assertion error, which doesn’t have a lot of details except for the stack trace.

  pulumi:pulumi:Stack (idp-app-k8s-dev):
    panic: fatal: An assertion has failed
    goroutine 522 [running]:
    github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.failfast(...)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.24.1/go/common/util/contract/failfast.go:23
    github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.Assert(...)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.24.1/go/common/util/contract/assert.go:26
    github.com/pulumi/pulumi-kubernetes/provider/v3/pkg/provider.(*kubeProvider).Check(0xc0001ee180, {0x253b408, 0xc002d21620}, 0xc0022ddef0)
    	/home/runner/work/pulumi-kubernetes/pulumi-kubernetes/provider/pkg/provider/provider.go:1239 +0x1579
    github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Check_Handler.func1({0x253b408, 0xc002d21620}, {0x2080a00, 0xc0022ddef0})
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.24.1/proto/go/provider.pb.go:2593 +0x78
    github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x253b408, 0xc002d0b440}, {0x2080a00, 0xc0022ddef0}, 0xc002835e40, 0xc0023f77b8)
    	/home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x425
    github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Check_Handler({0x2124c60, 0xc0001ee180}, {0x253b408, 0xc002d0b440}, 0xc002b5b800, 0xc0004c4000)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.24.1/proto/go/provider.pb.go:2595 +0x138
    google.golang.org/grpc.(*Server).processUnaryRPC(0xc000150540, {0x257b9a8, 0xc000103040}, 0xc002d15320, 0xc0004ba150, 0x39528b0, 0x0)
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.43.0/server.go:1282 +0xccf
    google.golang.org/grpc.(*Server).handleStream(0xc000150540, {0x257b9a8, 0xc000103040}, 0xc002d15320, 0x0)
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.43.0/server.go:1616 +0xa2a
    google.golang.org/grpc.(*Server).serveStreams.func1.2()
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.43.0/server.go:921 +0x98
    created by google.golang.org/grpc.(*Server).serveStreams.func1
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.43.0/server.go:919 +0x294
 
  kubernetes:helm.sh/v3:Release (kratos):
    error: transport is closing

Steps to reproduce

  1. pulumi up to deploy https://k8s.ory.sh/helm/kratos.html with Release resource
  2. Run pulumi up again

Expected: To run and present a full preview and then prompt to continue Actual: Crashes with the above stack trace without preview.

I’m using 3.16.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
viveklakcommented, Apr 1, 2022
1reaction
viveklakcommented, Mar 10, 2022

Could you share your code? You might have input types in the args to the release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Helm upgrade fails the release after adding a new resource
That error indicates that you introduced a new resource into the chart, but that resource already existed in the cluster. Helm does not...
Read more >
Chart Tests - Helm
For a chart consumer, this is a great way to check that their release of a chart (or application) works as expected.
Read more >
Breaking Changes in Helm 3 (and How to Fix Them) - ITNEXT
Helm 3 only installs releases into preexisting namespace and will throw an error stating the destination namespace doesn't exist. As of Helm v3.2.0, ......
Read more >
How To Unit Test Your Helm Charts - Engin Diri
The act section is where you act upon the system under test. The assert section allows you to make the claims about the...
Read more >
airflow-helm-unittest - Git at Google
The matchSnapshot assertion validate the content rendered the same as cached last time. It fails if the content changed, and you should check...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found