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

Panic when attempting to show and environment missing a spec.json #55

jdbaldry opened this issue Aug 16, 2019 · 2 comments · Fixed by #56


Copy link

commented Aug 16, 2019

Using 0.3.0 image with an existing environment from ksonnet.
Steps to reproduce:

  • Perform tk init -f in the existing ksonnet project.
  • Create an environment with a valid jsonnet file but missing the spec.json.
  • Perform tk show <environment>
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x882fd8]

goroutine 1 [running]:*Kubernetes).Reconcile(0x0, 0xc0018803f0, 0x0, 0x0, 0x0, 0xc00048bce8, 0x5b8175, 0xc0000b8500, 0xc00048bcc0, 0xa6f1af)
        /drone/src/pkg/kubernetes/kubernetes.go:67 +0x118
main.showCmd.func1(0xc0000ce500, 0xc000164e90, 0x1, 0x1)
        /drone/src/cmd/tk/workflow.go:145 +0x122*Command).execute(0xc0000ce500, 0xc00001e1a0, 0x1, 0x1, 0xc0000ce500, 0xc00001e1a0)
        /go/pkg/mod/ +0x2ae*Command).ExecuteC(0xc0000ce000, 0xc000164e20, 0xc00011e270, 0x0)
        /go/pkg/mod/ +0x2fc*Command).Execute(...)
        /drone/src/cmd/tk/main.go:106 +0x43f

Not a huge dealio, and the proper init workflow works fine it's something I encountered looking to switchover from ks to tk.

@issue-label-bot issue-label-bot bot added the kind/bug label Aug 16, 2019


This comment has been minimized.

Copy link

commented Aug 16, 2019

Issue-Label Bot is automatically applying the label kind/bug to this issue, with a confidence of 0.99. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.


This comment has been minimized.

Copy link

commented Aug 16, 2019

Thanks! Will look into this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.