Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails on SparkApplication #2

Closed
thrixton opened this issue Sep 10, 2020 · 2 comments
Closed

Fails on SparkApplication #2

thrixton opened this issue Sep 10, 2020 · 2 comments
Assignees
Milestone

Comments

@thrixton
Copy link

Downloading sparkoperator.k8s.io_sparkapplications.yaml and running via .\crd2pulumi.exe --nodejs .\SparkApplication.yaml, I get the below stack trace.

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x1 addr=0x20 pc=0x50a16d]

goroutine 1 [running]:
bytes.(*Buffer).WriteString(0x0, 0xc000fd4150, 0x6e, 0x3, 0x3, 0xc000fd4150)
        /usr/local/go/src/bytes/buffer.go:181 +0x2d
github.com/pulumi/crd2pulumi/gen.(*PackageGenerator).genNodeJSFiles(0xc00061dcb0, 0x1, 0xc000accc10, 0x1)
        /Users/albert/go/src/github.com/pulumi/crd2pulumi/gen/nodejs.go:100 +0xb89
github.com/pulumi/crd2pulumi/gen.(*PackageGenerator).genNodeJS(0xc000525cb0, 0xc000398010, 0xb, 0xc0003b2780, 0x1)
        /Users/albert/go/src/github.com/pulumi/crd2pulumi/gen/nodejs.go:35 +0x36
github.com/pulumi/crd2pulumi/gen.Generate(0xc0003c0190, 0x0, 0x0, 0x0, 0xc000700100, 0x1, 0x2, 0xc000139d00, 0xeb5919, 0x1ac2680)
        /Users/albert/go/src/github.com/pulumi/crd2pulumi/gen/generate.go:95 +0x21b
github.com/pulumi/crd2pulumi/cmd.glob..func2(0x1ac2680, 0xc000700100, 0x1, 0x2)
        /Users/albert/go/src/github.com/pulumi/crd2pulumi/cmd/root.go:119 +0xe0
github.com/spf13/cobra.(*Command).execute(0x1ac2680, 0xc00007e050, 0x2, 0x3, 0x1ac2680, 0xc00007e050)
        /Users/albert/go/pkg/mod/github.com/spf13/[email protected]/command.go:846 +0x2a4
github.com/spf13/cobra.(*Command).ExecuteC(0x1ac2680, 0x0, 0xf45ec0, 0xc000032478)
        /Users/albert/go/pkg/mod/github.com/spf13/[email protected]/command.go:950 +0x350
github.com/spf13/cobra.(*Command).Execute(...)
        /Users/albert/go/pkg/mod/github.com/spf13/[email protected]/command.go:887
github.com/pulumi/crd2pulumi/cmd.Execute(...)
        /Users/albert/go/src/github.com/pulumi/crd2pulumi/cmd/root.go:131
main.main()
        /Users/albert/go/src/github.com/pulumi/crd2pulumi/main.go:22 +0x35

Environment
OS: Windows 10, x64
crd2pulumi: 1.0.3

@stack72 stack72 added this to the current milestone Sep 10, 2020
@stack72
Copy link
Contributor

stack72 commented Sep 10, 2020

@albert-zhong is this fixed by what is in master with the panic fix?

@albert-zhong
Copy link
Contributor

albert-zhong commented Sep 10, 2020

@albert-zhong is this fixed by what is in master with the panic fix?

Yes, I just ran @thrixton 's sparkapplications CRD and it worked. Tomorrow when I wake up, I'll push some more fixes and cut a release so more people don't run into this bug.

@leezen leezen modified the milestones: current, 0.46 Nov 2, 2020
mattolenik pushed a commit that referenced this issue Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants