Bryan Yeung
07/21/2022, 5:41 AMadmin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: dns:///192.168.111.220
insecure: true
logger:
show-source: true
level: 0
Here is a screenshot of the console:Yuvraj
07/21/2022, 5:43 AMflytectl config init --host=192.168.111.220
flytectl get projects --logger.level 6
Bryan Yeung
07/21/2022, 5:46 AM(flyte) (base) btyeung@by-mbp flyte-learning % flytectl config init --host=192.168.111.220
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
This action will overwrite an existing config file at [/Users/btyeung/.flyte/config.yaml]. Do you want to continue? [y/n]: y
Init flytectl config file at [/Users/btyeung/.flyte/config.yaml]%
(flyte) (base) btyeung@by-mbp flyte-learning % flytectl get projects --logger.level 6
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
{"json":{},"level":"debug","msg":"Config section [storage] updated. No update handler registered.","ts":"2022-07-20T22:46:04-07:00"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0xa8 pc=0x10398e278]
goroutine 1 [running]:
<http://github.com/flyteorg/flytectl/cmd/get.getProjectsFunc({0x104913d08|github.com/flyteorg/flytectl/cmd/get.getProjectsFunc({0x104913d08>, 0x14000118000}, {0x140005bd860, 0x0, 0x103fdfe29?}, {0x0, {0x0, 0x0}, {0x0, 0x0}, ...})
/home/runner/work/flytectl/flytectl/cmd/get/project.go:82 +0xc8
<http://github.com/flyteorg/flytectl/cmd/core.generateCommandFunc.func1(0x1400093cc80|github.com/flyteorg/flytectl/cmd/core.generateCommandFunc.func1(0x1400093cc80>?, {0x140005bd860, 0x0, 0x2})
/home/runner/work/flytectl/flytectl/cmd/core/cmd.go:65 +0x508
<http://github.com/spf13/cobra.(*Command).execute(0x1400093cc80|github.com/spf13/cobra.(*Command).execute(0x1400093cc80>, {0x140005bd840, 0x2, 0x2})
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:852 +0x4c4
<http://github.com/spf13/cobra.(*Command).ExecuteC(0x1400093c780)|github.com/spf13/cobra.(*Command).ExecuteC(0x1400093c780)>
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x34c
<http://github.com/spf13/cobra.(*Command).Execute(...)|github.com/spf13/cobra.(*Command).Execute(...)>
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
<http://github.com/flyteorg/flytectl/cmd.ExecuteCmd()|github.com/flyteorg/flytectl/cmd.ExecuteCmd()>
/home/runner/work/flytectl/flytectl/cmd/root.go:137 +0x24
main.main()
/home/runner/work/flytectl/flytectl/main.go:12 +0x20
(flyte) (base) btyeung@by-mbp flyte-learning %
Yuvraj
07/21/2022, 5:50 AMcat ~/.flyte/config,yaml
Bryan Yeung
07/21/2022, 5:50 AMadmin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: dns:///192.168.111.220
authType: Pkce
insecure: false
logger:
show-source: true
level: 0
Yuvraj
07/21/2022, 5:51 AM--insecure
flag
flytectl config init --host=192.168.111.220 --insecure
Bryan Yeung
07/21/2022, 5:52 AMadmin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: dns:///192.168.111.220
authType: Pkce
insecure: true
logger:
show-source: true
level: 0
(flyte) (base) btyeung@by-mbp flyte-learning % flytectl get projects --logger.level 6
INFO[0000] [0] Couldn't find a config file []. Relying on env vars and pflags.
{"json":{},"level":"debug","msg":"Config section [storage] updated. No update handler registered.","ts":"2022-07-20T22:52:15-07:00"}
{"json":{},"level":"debug","msg":"Config section [root] updated. No update handler registered.","ts":"2022-07-20T22:52:15-07:00"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0xa8 pc=0x1031d6278]
goroutine 1 [running]:
<http://github.com/flyteorg/flytectl/cmd/get.getProjectsFunc({0x10415bd08|github.com/flyteorg/flytectl/cmd/get.getProjectsFunc({0x10415bd08>, 0x140000540c0}, {0x14000142ee0, 0x0, 0x103827e29?}, {0x0, {0x0, 0x0}, {0x0, 0x0}, ...})
/home/runner/work/flytectl/flytectl/cmd/get/project.go:82 +0xc8
<http://github.com/flyteorg/flytectl/cmd/core.generateCommandFunc.func1(0x140005ad680|github.com/flyteorg/flytectl/cmd/core.generateCommandFunc.func1(0x140005ad680>?, {0x14000142ee0, 0x0, 0x2})
/home/runner/work/flytectl/flytectl/cmd/core/cmd.go:65 +0x508
<http://github.com/spf13/cobra.(*Command).execute(0x140005ad680|github.com/spf13/cobra.(*Command).execute(0x140005ad680>, {0x14000142ec0, 0x2, 0x2})
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:852 +0x4c4
<http://github.com/spf13/cobra.(*Command).ExecuteC(0x14000a2db80)|github.com/spf13/cobra.(*Command).ExecuteC(0x14000a2db80)>
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x34c
<http://github.com/spf13/cobra.(*Command).Execute(...)|github.com/spf13/cobra.(*Command).Execute(...)>
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
<http://github.com/flyteorg/flytectl/cmd.ExecuteCmd()|github.com/flyteorg/flytectl/cmd.ExecuteCmd()>
/home/runner/work/flytectl/flytectl/cmd/root.go:137 +0x24
main.main()
/home/runner/work/flytectl/flytectl/main.go:12 +0x20
(flyte) (base) btyeung@by-mbp flyte-learning %
Yuvraj
07/21/2022, 5:52 AMBryan Yeung
07/21/2022, 5:53 AMYuvraj
07/21/2022, 5:57 AMBryan Yeung
07/21/2022, 6:00 AMadmin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: dns:///<youriphere>:80
authType: Pkce
insecure: true
logger:
show-source: true
level: 0
flytectl get projects --logger.level 6
returns projects (in other words makes a successful connection)Prafulla Mahindrakar
07/21/2022, 6:41 AMport is the port to return for each address. If not specified, 443 is used (but some implementations default to 80 for insecure channels).
Ketan (kumare3)