This commit adds the placement spec option when creating
a CephObjectStore using `orch apply rgw`.
Signed-off-by: Joseph Sawaya <jsawaya@redhat.com>
# translate . to - (fingers crossed!) instead.
name = spec.service_id.replace('.', '-')
-
+ all_hosts = self.get_hosts()
def _create_zone() -> cos.CephObjectStore:
port = None
secure_port = None
port=port,
securePort=secure_port,
instances=spec.placement.count or 1,
- )
+ placement=ccl.NodeAffinity(
+ requiredDuringSchedulingIgnoredDuringExecution=ccl.RequiredDuringSchedulingIgnoredDuringExecution(
+ nodeSelectorTerms=ccl.NodeSelectorTermsList(
+ [
+ placement_spec_to_node_selector(spec.placement, all_hosts)
+ ]
+ )
+ )
+ )
+ ),
)
)
if spec.rgw_zone: