https://flyte.org logo
#flyte-on-gcp
Title
# flyte-on-gcp
k

Keaton Ollech

03/05/2024, 9:54 PM
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

David Espejo (he/him)

03/06/2024, 3:48 PM
cc @Fabio Grätz in case you know
f

Fabio Grätz

03/06/2024, 3:58 PM
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

David Espejo (he/him)

03/06/2024, 4:24 PM
cc @Eduardo Apolinario (eapolinario) ^
k

Keaton Ollech

03/06/2024, 4:32 PM
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

Fabio Grätz

03/06/2024, 4:32 PM
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

Keaton Ollech

03/06/2024, 4:35 PM
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

Fabio Grätz

03/06/2024, 4:35 PM
Run an execution in flytesnacks and try again maybe 🙂
k

Keaton Ollech

03/06/2024, 5:16 PM
Ah of course, yes I'm getting results now. Thanks!
3 Views