[#345] Add new args for ContainerRequest
All checks were successful
DCO check / DCO (pull_request) Successful in 5m8s

Signed-off-by: Dmitriy Zayakin <d.zayakin@yadro.com>
This commit is contained in:
Dmitriy Zayakin 2024-12-17 13:57:06 +03:00
parent 29aca20956
commit c8386793c5
2 changed files with 12 additions and 1 deletions

View file

@ -63,7 +63,15 @@ def _create_container_by_spec(
cluster: Cluster,
endpoint: str,
) -> str:
return create_container(wallet, shell, endpoint, container_request.parsed_rule(cluster), wait_for_creation=False)
return create_container(
wallet,
shell,
endpoint,
container_request.parsed_rule(cluster),
wait_for_creation=False,
nns_zone=container_request.ns_zone,
nns_name=container_request.ns_name,
)
def _apply_ape_rules(cid: str, frostfs_cli: FrostfsCli, endpoint: str, ape_rules: list[ape.Rule]):

View file

@ -21,6 +21,9 @@ class ContainerRequest:
short_name: str | None = None
ns_name: str | None = None
ns_zone: str | None = None
def __post_init__(self):
if self.ape_rules is None:
self.ape_rules = []