Marshaling error while trying to deploy helm chart
See original GitHub issueProblem 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:
- Created 3 years ago
- Comments:11 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Can confirm this is resolved in
pulumi-kubernetes v2.7.5
withpulumi v2.16.0
. Thanks @lblackstone !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.