forked from TrueCloudLab/frostfs-node
[#779] adm: Support deploying policy contract
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
0b0e5dab24
commit
1ab567870a
1 changed files with 3 additions and 1 deletions
|
@ -42,6 +42,7 @@ const (
|
||||||
containerContract = "container"
|
containerContract = "container"
|
||||||
frostfsIDContract = "frostfsid"
|
frostfsIDContract = "frostfsid"
|
||||||
netmapContract = "netmap"
|
netmapContract = "netmap"
|
||||||
|
policyContract = "policy"
|
||||||
proxyContract = "proxy"
|
proxyContract = "proxy"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -51,6 +52,7 @@ var (
|
||||||
containerContract,
|
containerContract,
|
||||||
frostfsIDContract,
|
frostfsIDContract,
|
||||||
netmapContract,
|
netmapContract,
|
||||||
|
policyContract,
|
||||||
proxyContract,
|
proxyContract,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -568,7 +570,7 @@ func (c *initializeContext) getContractDeployData(ctrName string, keysParam []an
|
||||||
c.Contracts[containerContract].Hash,
|
c.Contracts[containerContract].Hash,
|
||||||
keysParam,
|
keysParam,
|
||||||
configParam)
|
configParam)
|
||||||
case proxyContract:
|
case proxyContract, policyContract:
|
||||||
items = nil
|
items = nil
|
||||||
default:
|
default:
|
||||||
panic(fmt.Sprintf("invalid contract name: %s", ctrName))
|
panic(fmt.Sprintf("invalid contract name: %s", ctrName))
|
||||||
|
|
Loading…
Reference in a new issue