def get_armada_build(self, task_id=dn.ARMADA_BUILD_DAG_NAME): """Generate the armada build step Armada build does the deployment of helm charts """ return SubDagOperator(subdag=deploy_site_armada( self.parent_dag_name, task_id, args=self.default_args), task_id=task_id, on_failure_callback=step_failure_handler, dag=self.dag)
validate_site_design = SubDagOperator( subdag=validate_site_design(PARENT_DAG_NAME, VALIDATE_SITE_DESIGN_DAG_NAME, args=default_args), task_id=VALIDATE_SITE_DESIGN_DAG_NAME, on_failure_callback=failure_handlers.step_failure_handler, dag=dag) drydock_build = SubDagOperator( subdag=deploy_site_drydock(PARENT_DAG_NAME, DRYDOCK_BUILD_DAG_NAME, args=default_args), task_id=DRYDOCK_BUILD_DAG_NAME, on_failure_callback=failure_handlers.step_failure_handler, dag=dag) armada_build = SubDagOperator( subdag=deploy_site_armada(PARENT_DAG_NAME, ARMADA_BUILD_DAG_NAME, args=default_args), task_id=ARMADA_BUILD_DAG_NAME, on_failure_callback=failure_handlers.step_failure_handler, dag=dag) # DAG Wiring concurrency_check.set_upstream(action_xcom) get_design_version.set_upstream(concurrency_check) validate_site_design.set_upstream(get_design_version) drydock_build.set_upstream(validate_site_design) armada_build.set_upstream(drydock_build)