shipyard/shipyard_airflow
Anthony Lin 017faba69f Update K8s Preflight Check Operator
It seems that it is possible for pods to go into 'MatchNodeSelector'
status after a hard reboot of the node due to reasons mentioned in
[0]. The current preflight check opertor will fail the health checks
even when the entire cluster goes back to normal after the hard reboot
as it will flag any pod(s) that are not in 'Succeeded' or 'Running'
state. This means that our workflow will stop and go into failed state.

This patch set is meant to take care of such scenario and to relax the
health check requirements for the k8s cluster by logging the information
of such pods instead of failing the workflow (note that the status of such
pods will resemble [1]).

[0] https://github.com/kubernetes/kubernetes/issues/52902

[1]

 'status': {'conditions': None,
            'container_statuses': None,
            'host_ip': None,
            'init_container_statuses': None,
            'message': 'Pod Predicate MatchNodeSelector failed',
            'phase': 'Failed',
            'pod_ip': None,
            'qos_class': None,
            'reason': 'MatchNodeSelector',
            'start_time': datetime.datetime(2018, 3, 30, 15, 49, 39, tzinfo=tzlocal())}}

Change-Id: Idb1208d93cddc01cd0375a5ac2e6e73dd3dfad61
2018-04-04 17:36:30 -04:00
..
conf Make log levels configurable 2018-03-15 14:36:11 -04:00
control Make log levels configurable 2018-03-15 14:36:11 -04:00
dags [Fix] Armada Operator/Dag - Task Id and Xcom Key 2018-03-27 05:47:26 +00:00
db Make log levels configurable 2018-03-15 14:36:11 -04:00
plugins Update K8s Preflight Check Operator 2018-04-04 17:36:30 -04:00
schemas Refactor Armada Operator 2018-03-26 09:30:21 +00:00
__init__.py Add deploy site DAG skeleton 2017-08-15 16:23:42 -05:00
errors.py Logging to use request scope provided by uwsgi and standard logging filters 2017-11-21 14:45:40 -06:00
policy.py Shipyard API for Configdocs Status 2018-01-05 09:50:09 -06:00
shipyard.py Logging to use request scope provided by uwsgi and standard logging filters 2017-11-21 14:45:40 -06:00
shipyard_upgrade_db.py Add database upgrade entrypoint 2018-01-25 09:37:00 -05:00