cli, etcd, lib: Remove the etcd client from main

We are slowly getting rid of more cruft and abstracting it nicely. More
to go!
This commit is contained in:
James Shubin
2025-03-19 06:01:42 -04:00
parent 5665259784
commit f269096eb9
3 changed files with 83 additions and 50 deletions

View File

@@ -199,7 +199,9 @@ func (obj *DeployArgs) Run(ctx context.Context, data *cliUtil.Data) (bool, error
var world engine.World
world = &etcd.World{ // XXX: What should some of these fields be?
Client: etcdClient,
Client: etcdClient, // XXX: remove me when etcdfs below is done
Seeds: obj.Seeds,
NS: lib.NS,
//MetadataPrefix: lib.MetadataPrefix,
//StoragePrefix: lib.StoragePrefix,
//StandaloneFs: ???.DeployFs, // used for static deploys
@@ -208,9 +210,9 @@ func (obj *DeployArgs) Run(ctx context.Context, data *cliUtil.Data) (bool, error
}
if obj.SshUrl != "" { // alternate world implementation over SSH
world = &etcdSSH.World{
URL: obj.SshUrl,
//Client: client,
NS: lib.NS,
URL: obj.SshUrl,
Seeds: obj.Seeds,
NS: lib.NS,
//MetadataPrefix: lib.MetadataPrefix,
//StoragePrefix: lib.StoragePrefix,
//StandaloneFs: ???.DeployFs, // used for static deploys