fabric8-services / fabric8-jenkins-idler

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

Get the whole list of clusters back for proxy but only have idler activated on the OSO ones #304

Closed chmouel closed 5 years ago

chmouel commented 5 years ago

Currently we just filter out the whole list that are not OSO on idler. For OSD we still need to report back to proxy the whole cluster lists but we want to make sure to don't be active for non OSO clusters.

Related snippet:

https://github.com/fabric8-services/fabric8-jenkins-idler/blob/ebf73b784db1341c44307c8424eb51ac1f679769/internal/cluster/service.go#L22-L28

We still want to do that by regexp until we get a OSD flag in the cluster API,

Related: https://github.com/openshiftio/openshift.io/issues/4574