forked from TrueCloudLab/frostfs-node
[#840] adm: Update FrostFS ID deploy arguments
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
b2c63e57ba
commit
f1db468d48
3 changed files with 47 additions and 48 deletions
|
@ -47,7 +47,7 @@ const (
|
|||
proxyContract = "proxy"
|
||||
)
|
||||
|
||||
const frostfsIDAuthorizedKeysConfigKey = "frostfsid.authorized_keys"
|
||||
const frostfsIDAdminConfigKey = "frostfsid.admin"
|
||||
|
||||
var (
|
||||
contractList = []string{
|
||||
|
@ -538,12 +538,16 @@ func (c *initializeContext) getContractDeployData(ctrName string, keysParam []an
|
|||
nnsCs.Hash,
|
||||
"container")
|
||||
case frostfsIDContract:
|
||||
hs, err := getFrostfsIDAuthorizedKeys(viper.GetViper(), c.CommitteeAcc.PublicKey().GetScriptHash())
|
||||
h, found, err := getFrostfsIDAdmin(viper.GetViper())
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
items = append(items, hs)
|
||||
if found {
|
||||
items = append(items, h)
|
||||
} else {
|
||||
items = append(items, nil)
|
||||
}
|
||||
case netmapContract:
|
||||
md := getDefaultNetmapContractConfigMap()
|
||||
if method == updateMethodName {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue