Hello, I'm configuring the token generation CLI ac...
# flyte-on-gcp
k
Hello, I'm configuring the token generation CLI according to these instructions but I'm unable to run commands like
flytectl get projects
. I get the error described in this comment, which states that it is due to
flytectl
not understanding the
proxyCommand
. Is there now a workaround for this error? I've looked but haven't been able to find one. I'm using
flytectl 0.8.14
d
cc @Fabio Grätz in case you know
f
Yes, I do, we realized the same last week. (We don’t use flytectl much which is why we realized this only now.) The problem is that flytectl uses flyteidl 1.9.x and needs to be upgraded to 1.10.x in order to support the proxy command. @Dennis Keck, a colleague of mine, recently opened a PR for this: https://github.com/flyteorg/flytectl/pull/464 Problem is that when we bump flytestdlib to 1.10.x as well, tests start failing and we haven’t yet figured out what needs to be adapted. Does anyone, maybe from union, know what needs to be adapted to support newer flytestdlib versions? If not, maybe we could upgrade only flyteidl for now and make a new release for @Keaton Ollech?
d
cc @Eduardo Apolinario (eapolinario) ^
k
Thanks for your response. Having the ability to use flytectl would be helpful but isn't urgent. Really, I was looking for a way to test that I had properly configured proxy authorization with the CLI in my
~/.flyte/config.yaml
, which I believe I can do using pyflyte (e.g.
pyflyte get launchplan
)
f
Copy code
from flytekit.remote import FlyteRemote

from flytekit.configuration import Config


remote = FlyteRemote(
    config=Config.auto(),
    default_project="flytesnacks",
    default_domain="development",
)


print(remote.recent_executions()[:10])
I always use this to test whether my auth config works ^^
But pyfilyte will do the trick too.
Let’s still upgrade this in flytectl though …
k
Oh true, I used that script as well. The result for me is just
[]
, which I wasn't sure how to interpret, so I wanted some additional confirmation
f
Run an execution in flytesnacks and try again maybe 🙂
k
Ah of course, yes I'm getting results now. Thanks!
j
I’m still seeing the same error when trying to use
flytectl
with
proxyCommand
in the config:
Copy code
bin/flytectl get projects                                                 

Error: 

1 error(s) decoding:

* '' has invalid keys: proxycommand
ERRO[0000] 

1 error(s) decoding:

* '' has invalid keys: proxycommand  src="main.go:13"
version:
Copy code
bin/flytectl version                                                                                                ⏎

 A new release of flytectl is available: 0.8.18 → v0.8.22 
To upgrade, run: flytectl upgrade 
<https://github.com/flyteorg/flytectl/releases/tag/v0.8.22> 

{
  "App": "flytectl",
  "Build": "0a0cbce",
  "Version": "0.8.18",
  "BuildTime": "2024-06-03 09:33:35.24546 -0400 EDT m=+0.046941834"
}%