From e0d7cce26a1492c0173bc60a77007216e8ac71ad Mon Sep 17 00:00:00 2001 From: Anthony Lin Date: Thu, 21 Dec 2017 16:38:43 +0000 Subject: [PATCH] Include Promenade in Preflight Check The promenade healthcheck API is ready for consumption This P.S. adds checks for Promenade /health API endpoint Change-Id: I19949bff4809794a967bb8fa010a2de5265b15fb --- shipyard_airflow/dags/preflight_checks.py | 1 - shipyard_airflow/plugins/ucp_preflight_check_operator.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/shipyard_airflow/dags/preflight_checks.py b/shipyard_airflow/dags/preflight_checks.py index 614f3928..83bff791 100644 --- a/shipyard_airflow/dags/preflight_checks.py +++ b/shipyard_airflow/dags/preflight_checks.py @@ -23,7 +23,6 @@ from airflow.operators import UcpHealthCheckOperator config_path = '/usr/local/airflow/plugins/shipyard.conf' -# TODO: Add Checks for Promenade when the API is ready def all_preflight_checks(parent_dag_name, child_dag_name, args): ''' Pre-Flight Checks Subdag diff --git a/shipyard_airflow/plugins/ucp_preflight_check_operator.py b/shipyard_airflow/plugins/ucp_preflight_check_operator.py index a01c274c..f5df99fa 100644 --- a/shipyard_airflow/plugins/ucp_preflight_check_operator.py +++ b/shipyard_airflow/plugins/ucp_preflight_check_operator.py @@ -41,10 +41,10 @@ class UcpHealthCheckOperator(BaseOperator): def execute(self, context): # Initialize variable - # TODO: Include Promenade when its API endpoint is ready ucp_components = [ 'armada', 'deckhand', + 'kubernetesprovisioner', 'physicalprovisioner', 'shipyard']