stakater / Reloader

A Kubernetes controller to watch changes in ConfigMap and Secrets and do rolling upgrades on Pods with their associated Deployment, StatefulSet, DaemonSet and DeploymentConfig – [✩Star] if you're using it!
https://docs.stakater.com/reloader/
Apache License 2.0
7.5k stars 501 forks source link

Allow to skip a resource by annotations. #317

Open magmax opened 2 years ago

magmax commented 2 years ago

Sometimes there is just one or two resources (cm/secrets) that require to be ignored, so annotating all of them to match can be harder than just marking the ones to be skipped.

Real example: jenkins has a configmap for JCasC (Jenkins Configuration As Code) managed by a configmap and reloaded automatically, but any other configmap/service should fire reloader to restart pods.

faizanahmad055 commented 1 year ago

At the moment, this functionality doesn't exist but you are welcome to contribute with a PR.

Gruummy commented 10 months ago

@faizanahmad055 and @rasheedamir

I have exactly the same need. Is someone willing to contribute also ? I would want to ask ... how it should be done as best ? I mean hints which label or annotation should be used to base the logic on such a exclude decision ?

Whom to ask to clarify this before somone starts to code ... to have a high change to get it review successully and then merged ?