fabric8-services / fabric8-jenkins-idler

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

Allow the idler to exclude some deployments from idling #232

Closed jfchevrette closed 5 years ago

jfchevrette commented 6 years ago

We need to have a way to exclude some deployments from being idled. This is useful when we need to troubleshoot a jenkins instance running in production where we cant easily reproduce the problem in staging.

For instance, if the idler sees a specific annotation on the DC, skip idling it and dont scale it down.

One more reason to do this is that development of idler requires connecting to prod-preview and restricting local idler to a single user using the JC_FIXED_UUID env var. Since an idler is already running in prod-preview it often handles the openshift event causing more than the actual dc events to be generated.

Thus the proposal is to allow idler to ignore certain users on prod-preview perhaps by using the feature-toggle-service (see related discussion)

Also related: https://github.com/fabric8-services/fabric8-jenkins-idler/issues/83

pradeepto commented 5 years ago

@pradeepitm12 Any updates on this issue?

hrishin commented 5 years ago

@pradeepitm12 if done, could we close this?