fabric8-services / fabric8-jenkins-idler

OpenShift.io service to idle resp.unidle Jenkins instances
Apache License 2.0
4 stars 15 forks source link

Add status api to return the state of jenkins pod #239

Closed sthaha closed 6 years ago

sthaha commented 6 years ago

This a sub-task of https://github.com/openshiftio/openshift.io/issues/3356#issuecomment-387840234 which requires a status api that jenkins-proxy can call. The exisited IsIdle is not sufficient as IsIdle returning false does not mean the pod is running as it can also mean starting.

We will need a REST API in jenkins proxy which returns a 200 if Jenkins is up, and a non-200 if Jenkins is not up ( and being unidled ).