Open tjtelan opened 2 years ago
Hi, do you know if this is still valid? Is it not already covered by the fluvio profile
command?
Hi @n3wtron, thanks for your interest in this issue, though it feels obsolete.
To switch the CLI from one cluster to another, one can use fluvio profile switch
.
@digikata should we close this issue? Alternatively, if there is still work needed, we should open a new issue and state the new problem.
The default Rust client assumes a local cluster, with preference given to the config file at
~/.fluvio/config
.You can also connect to a different cluster by providing a
FluvioConfig
.But for the CLI and our other clients, users need to modify
~/.fluvio/config
to connect to another cluster, which is not always a practical approach.In my opinion this behavior was permitted by
Profile
(and maybe alsoConfig
) being heavily leveraged in thefluvio
crate. It enabled shortcuts for the CLI that other clients don't need to assume. Like having a config file to load from a specific location on the filesystem.What I think needs to happen:
Profile
(and maybeConfig
too?) out offluvio
and intofluvio-cli-common
(or related crates), since it is effectively a CLI only concept for a user of multiple clusters. Not directly used by Fluvio cluster.FluvioConfig
in the other language client libraries, so it can be used to connect to other clusters (or add other connect methods to provide the same effect)