fabric8-services / fabric8-jenkins-idler

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

Remove regexp based free starter cluster detection #306

Closed chmouel closed 5 years ago

chmouel commented 5 years ago

We now have an API :

https://github.com/fabric8-services/fabric8-cluster/issues/31

which we can use and remove the regexp based filtering

There is other things to do in this area, we want to have idler only enabled for those OSO clusters but we don't want to simply ignore the others, we want to be able to pass thru the requests still but instead of going to idler we want to go to the user jenkins directly.

See details here: https://github.com/openshiftio/openshift.io/issues/4574

this is a work for jenkins-proxy and jenkins-idler

kishansagathiya commented 5 years ago

@chmouel So, I get a cluster list from fabric8-cluster's API, and match only those clusters where type is OSO, right ?

chmouel commented 5 years ago

for idler yes, for proxy you need to detect when it is a OSD and then don't go to idler when it's the case, (see openshiftio issue)