Skip to content

init: panic when creating devspace without kubeConfig #214

@FabianKramm

Description

@FabianKramm
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x159f4e6]

goroutine 1 [running]:
github.com/covexo/devspace/cmd.(*InitCmd).configureKubernetes(0xc4207e6e00)
	/Users/travis/gopath/src/github.com/covexo/devspace/cmd/init.go:379 +0x306
github.com/covexo/devspace/cmd.(*InitCmd).Run(0xc4207e6e00, 0xc420a3e780, 0x2cd7ba8, 0x0, 0x0)
	/Users/travis/gopath/src/github.com/covexo/devspace/cmd/init.go:178 +0x708
github.com/covexo/devspace/cmd.(*InitCmd).Run-fm(0xc420a3e780, 0x2cd7ba8, 0x0, 0x0)
	/Users/travis/gopath/src/github.com/covexo/devspace/cmd/init.go:84 +0x52
github.com/covexo/devspace/vendor/github.com/spf13/cobra.(*Command).execute(0xc420a3e780, 0x2cd7ba8, 0x0, 0x0, 0xc420a3e780, 0x2cd7ba8)
	/Users/travis/gopath/src/github.com/covexo/devspace/vendor/github.com/spf13/cobra/command.go:766 +0x2c1
github.com/covexo/devspace/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x2c9c0e0, 0x0, 0x0, 0x0)
	/Users/travis/gopath/src/github.com/covexo/devspace/vendor/github.com/spf13/cobra/command.go:852 +0x30a
github.com/covexo/devspace/vendor/github.com/spf13/cobra.(*Command).Execute(0x2c9c0e0, 0x0, 0x0)
	/Users/travis/gopath/src/github.com/covexo/devspace/vendor/github.com/spf13/cobra/command.go:800 +0x2b
github.com/covexo/devspace/cmd.Execute()
	/Users/travis/gopath/src/github.com/covexo/devspace/cmd/root.go:39 +0x91
main.main()
	/Users/travis/gopath/src/github.com/covexo/devspace/main.go:15 +0x3e

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/initRelated to "devspace init"kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions