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.

Marshaling error while trying to deploy helm chart

See original GitHub issue

Problem description

When trying to deploy a helm chart using pulumi, a marshaling error occurs and the program fails

Errors & Logs

Diagnostics:
  pulumi:pulumi:Stack (chart-crd-dev):
    2020/12/06 09:55:33 info: skipping unknown hook: "crd-install"
 
    error: program failed: cannot marshal an input of type *v1.Service as a value of type pulumi.Resource
    exit status 1
 
    error: an unhandled error occurred: program exited with non-zero exit code: 1

It’s a different resource each time but same error. It also doesn’t happens with pulumi-kubernetes v2.7.1 and below

Affected product version(s)

go 1.15.5 pulumi v2.15.1 pulumi-kubernetes 2.7.3

Reproducing the issue

package main

import (
	"github.com/pulumi/pulumi-kubernetes/sdk/v2/go/kubernetes/helm/v3"
	"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {

		_, err := helm.NewChart(ctx, "jaeger-operator", helm.ChartArgs{
			Chart: pulumi.String("jaeger-operator"),
			FetchArgs: helm.FetchArgs{
				Repo: pulumi.String("https://jaegertracing.github.io/helm-charts"),
			},
		})
		if err != nil {
			return err
		}

		return nil
	})
}

Might be related to https://github.com/pulumi/pulumi-kubernetes/issues/1396

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
HagaiBarelcommented, Dec 22, 2020

Can confirm this is resolved in pulumi-kubernetes v2.7.5 with pulumi v2.16.0. Thanks @lblackstone !

1reaction
lblackstonecommented, Dec 14, 2020

Wondering if the actual fix I need is #1406, rather than what was released in v2.15.6?

Yes, this fix hasn’t made it into the k8s provider yet. We ran into a couple other bugs that are blocking the release, but will get this out ASAP. Thanks for your patience; you should be able to use a k8s provider version < v2.15.3 in the meantime if this is blocking you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Helm chart deployment failes with deserializing error #1396
When trying to install the kubernetes-dashboard helm chart version "2.8.1" on a EKS cluster using this code I get a exception.
Read more >
Helm chart generated yaml is invalid - (Kustomize parse errors)
Using helm command to deploy GitLab into Kubernetes works without any error. However, kustomize command fails to parse yaml generated by helm ...
Read more >
Troubleshooting - Helm
When I add a Helm repo, I get the error 'Error: Repo "https://kubernetes-charts.storage.googleapis.com" is no longer available'. The Helm Chart repositories are ...
Read more >
Troubleshooting "Invalid Character Looking For Beginning Of ...
This error happens when the json package attempts to unmarshal a string that is not JSON. Consider you are trying to unmarshal an...
Read more >
Intermittent "Operation cannot be fulfilled on resourcequotas ...
I was unable to recreate issue. I tried in OpenShift 4.6, 4,7 and 4.8. In all cases I have a 3 workers and...
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