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/Release] Panic after changing values

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 successfully deployed a Release resource introduced in #1677. I then modified values in such a way that I expected it to remove 2 DaemonSet definitions. However when previewing it with those new values, it consistently fails with this panic:

$ pulumi preview
...
   panic: fatal: An assertion has failed
    goroutine 212 [running]:
    github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.failfast(...)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.14.0/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.14.0/go/common/util/contract/assert.go:26
    github.com/pulumi/pulumi-kubernetes/provider/v3/pkg/provider.(*patchConverter).addPatchValueToDiff(0xc002de4f78, 0xc003e3b3e0, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    	/home/runner/work/pulumi-kubernetes/pulumi-kubernetes/provider/pkg/provider/provider.go:2835 +0xb6b
    github.com/pulumi/pulumi-kubernetes/provider/v3/pkg/provider.(*patchConverter).addPatchMapToDiff(0xc002de4f78, 0xc003e463f0, 0x1, 0x1, 0xc003dea720, 0xc003e16840, 0xc003e17d10, 0xc003e2f260, 0xc003e46300, 0x10, ...)
    	/home/runner/work/pulumi-kubernetes/pulumi-kubernetes/provider/pkg/provider/provider.go:2935 +0x31d
    github.com/pulumi/pulumi-kubernetes/provider/v3/pkg/provider.(*patchConverter).addPatchValueToDiff(0xc002de4f78, 0xc003e463f0, 0x1, 0x1, 0x2da92c0, 0xc003dea720, 0x2da92c0, 0xc003e16840, 0x2da92c0, 0xc003e17d10, ...)
    	/home/runner/work/pulumi-kubernetes/pulumi-kubernetes/provider/pkg/provider/provider.go:2856 +0x17a
    github.com/pulumi/pulumi-kubernetes/provider/v3/pkg/provider.(*patchConverter).addPatchMapToDiff(0xc002de4f78, 0x0, 0x0, 0x0, 0xc003dea6f0, 0xc003e167e0, 0xc003e17cb0, 0xc003e2f200, 0x0, 0xc002de4f98, ...)
    	/home/runner/work/pulumi-kubernetes/pulumi-kubernetes/provider/pkg/provider/provider.go:2935 +0x31d
    github.com/pulumi/pulumi-kubernetes/provider/v3/pkg/provider.convertPatchToDiff(0xc003dea6f0, 0xc003e167e0, 0xc003e17cb0, 0xc003e2f200, 0xc003e3b2e0, 0x2, 0x2, 0x2, 0x200, 0x0)
    	/home/runner/work/pulumi-kubernetes/pulumi-kubernetes/provider/pkg/provider/provider.go:2762 +0x119
    github.com/pulumi/pulumi-kubernetes/provider/v3/pkg/provider.(*helmReleaseProvider).Diff(0xc00075dda0, 0x346f448, 0xc003a9c390, 0xc002dc8000, 0x7, 0xc001fee25d, 0x2)
    	/home/runner/work/pulumi-kubernetes/pulumi-kubernetes/provider/pkg/provider/helm_release.go:683 +0xbea
    github.com/pulumi/pulumi-kubernetes/provider/v3/pkg/provider.(*kubeProvider).Diff(0xc000702600, 0x346f448, 0xc003a9c390, 0xc002dc8000, 0xc000702600, 0x2dc6e01, 0xc003a9f200)
    	/home/runner/work/pulumi-kubernetes/pulumi-kubernetes/provider/pkg/provider/provider.go:1431 +0x6dc
    github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler.func1(0x346f448, 0xc003a9c390, 0x2fbbbe0, 0xc002dc8000, 0x2fd3b60, 0x464f5c8, 0x346f448, 0xc003a9c390)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.14.0/proto/go/provider.pb.go:2584 +0x89
    github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1(0x346f448, 0xc002db23c0, 0x2fbbbe0, 0xc002dc8000, 0xc002da4d40, 0xc0006c9548, 0x0, 0x0, 0x3424e20, 0xc000342f20)
    	/home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x30a
    github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler(0x3076a20, 0xc000702600, 0x346f448, 0xc002db23c0, 0xc002db02a0, 0xc000a6b960, 0x346f448, 0xc002db23c0, 0xc002dbe000, 0x8780)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.14.0/proto/go/provider.pb.go:2586 +0x150
    google.golang.org/grpc.(*Server).processUnaryRPC(0xc00043dc00, 0x348c298, 0xc000682480, 0xc003a50d80, 0xc000a6fce0, 0x45ebf68, 0x0, 0x0, 0x0)
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.38.0/server.go:1286 +0x52b
    google.golang.org/grpc.(*Server).handleStream(0xc00043dc00, 0x348c298, 0xc000682480, 0xc003a50d80, 0x0)
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.38.0/server.go:1609 +0xd0c
    google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc0003e4050, 0xc00043dc00, 0x348c298, 0xc000682480, 0xc003a50d80)
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.38.0/server.go:934 +0xab
    created by google.golang.org/grpc.(*Server).serveStreams.func1
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.38.0/server.go:932 +0x1fd

Restoring the values to what I had previously allows it to succeed.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
viveklakcommented, Oct 29, 2021

@blampe thanks for sharing as much context as you could. I will try to replicate and update.

0reactions
viveklakcommented, Jan 8, 2022

#1850 has been merged with a fix that should address this. It will be available in 3.13.1 release next week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Terraform state updated with new Chart values after apply ...
Panic Output. Steps to Reproduce. Plan and apply the helm_release; make a modification in the values (Add/change/remove any of the Helm ...
Read more >
Manage Helm Releases - Flux CD
It is possible to use Kustomize ConfigMap generator to trigger a Helm release upgrade every time the encoded values change.
Read more >
Changes Since Helm 2
Here's an exhaustive list of all the major changes introduced in Helm 3. ... More panic ensues. ... A JSON Schema can now...
Read more >
Known issues - IBM
View the Cannot create a Helm release on a remote cluster section for information about ... When changes are then made for the...
Read more >
How to declaratively run Helm charts using helmfile - Medium
values — a folder with a values that are specific for each application ... After those changes ingress Helm chart is responsible only...
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