Request that the given component be added to the build.
(self, component)
| 428 | log.debug("cpatch working dir: %s", self._workdir) |
| 429 | |
| 430 | def add(self, component): |
| 431 | """Request that the given component be added to the build.""" |
| 432 | log.info("Including: %s", component) |
| 433 | dispatch = { |
| 434 | Component.PY_COMMON: self._py_common_job, |
| 435 | Component.CEPHADM: self._cephadm_job, |
| 436 | Component.PY_MGR: self._py_mgr_job, |
| 437 | Component.DASHBOARD: self._py_mgr_job, |
| 438 | Component.PYBIND: self._pybind_job, |
| 439 | Component.CORE: self._core_job, |
| 440 | Component.CEPHFS: self._cephfs_job, |
| 441 | Component.RBD: self._rbd_job, |
| 442 | Component.RGW: self._rgw_job, |
| 443 | } |
| 444 | job = dispatch[component] |
| 445 | if component == Component.DASHBOARD: |
| 446 | self._include_dashboard = True |
| 447 | if job not in {j for _, j in self._jobs}: |
| 448 | self._jobs.append((component, job)) |
| 449 | |
| 450 | def build(self): |
| 451 | """Build the container image.""" |