frostfs-node/cmd/frostfs-adm/internal/modules
Evgenii Stratonikov e82f79b0a8
adm: Allow to use --local-dump everywhere --rpc-endpoint is present
Currently, we allow using `--local-dump` in `morph init` command.
We also have this flag in other commands, but no `--protocol` which is
also needed. And in new command we do not have the ability to use local
dump at all.

This commit makes it possible to work either with an RPC or with
local-dump in every command.

Refs #1035.
Refs TrueCloudLab/frostfs-dev-env#42.

Writing gopatch this time was really satisfying, btw:
```
@@
var flags expression
@@
-flags.StringP(commonflags.EndpointFlag, ...)
+commonflags.InitRPC(flags)

@@
var flags expression
@@
-_ = viper.BindPFlag(commonflags.EndpointFlag, flags.Lookup(...))
+commonflags.BindRPC(flags)
```

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-11-20 14:38:26 +03:00
..
config [#1459] .golangci.yml: Add intrange linter, fix issues 2024-10-30 15:18:22 +00:00
metabase [#1412] adm: Resolve container type by metabase upgrade 2024-10-08 11:41:51 +03:00
morph adm: Allow to use --local-dump everywhere --rpc-endpoint is present 2024-11-20 14:38:26 +03:00
storagecfg [#1004] blobovnicza: Use TTL for blobovnicza tree cache 2024-04-26 19:54:29 +03:00
root.go [#1334] metabase: Add upgrade from v2 to v3 2024-08-30 09:06:20 +03:00