acoustic-carpenter-78188
06/02/2023, 11:56 PMflyte demo cluster
When I try to create a project from a file
Then it should be created in the demo cluster
But it currently panics with an invalid memory address
> flytectl create project --file ./flyte/projects/myproject.yaml
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x147b463]
goroutine 1 [running]:
<http://github.com/flyteorg/flytectl/cmd/core.CommandContext.AdminClient(...)|github.com/flyteorg/flytectl/cmd/core.CommandContext.AdminClient(...)>
/home/runner/work/flytectl/flytectl/cmd/core/cmd_ctx.go:57
<http://github.com/flyteorg/flytectl/cmd/create.createProjectsCommand({0x2563718|github.com/flyteorg/flytectl/cmd/create.createProjectsCommand({0x2563718>, 0xc00005c228}, {0xc000ec5b40?, 0x100000049c165?, 0x25633c0?}, {0x0, {0x0, 0x0}, {0x0, 0x0}, ...})
/home/runner/work/flytectl/flytectl/cmd/create/project.go:62 +0xe3
<http://github.com/flyteorg/flytectl/cmd/core.generateCommandFunc.func1(0xc000af2f00|github.com/flyteorg/flytectl/cmd/core.generateCommandFunc.func1(0xc000af2f00>?, {0xc000a41620, 0x0, 0x2})
/home/runner/work/flytectl/flytectl/cmd/core/cmd.go:70 +0x93d
<http://github.com/spf13/cobra.(*Command).execute(0xc000af2f00|github.com/spf13/cobra.(*Command).execute(0xc000af2f00>, {0xc000a41600, 0x2, 0x2})
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:856 +0x67c
<http://github.com/spf13/cobra.(*Command).ExecuteC(0xc000a6e780)|github.com/spf13/cobra.(*Command).ExecuteC(0xc000a6e780)>
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:974 +0x3bd
<http://github.com/spf13/cobra.(*Command).Execute(...)|github.com/spf13/cobra.(*Command).Execute(...)>
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:902
<http://github.com/flyteorg/flytectl/cmd.ExecuteCmd()|github.com/flyteorg/flytectl/cmd.ExecuteCmd()>
/home/runner/work/flytectl/flytectl/cmd/root.go:137 +0x1e
main.main()
/home/runner/work/flytectl/flytectl/main.go:12 +0x1d
Expected behavior
A project to be created from the file
Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
☑︎ Yes
Have you read the Code of Conduct?
☑︎ Yes
flyteorg/flyte