Reloader icon indicating copy to clipboard operation
Reloader copied to clipboard

Provide annotations to exclude reloading resources

Open LochanRn opened this issue 4 months ago • 1 comments

This PR fixes : https://github.com/stakater/Reloader/issues/740

Provide annotations to exclude reloading resources based on the annotation set on the owner resources. Exclude Configmaps Annotation: configmaps.exclude.reloader.stakater.com/reload Exclude Secrets Annotation: secrets.exclude.reloader.stakater.com/reload

Example for excluding nginx-cm-1,nginx-cm-2 configmap in a deployment

apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    configmaps.exclude.reloader.stakater.com/reload: "nginx-cm-1,nginx-cm-2"
spec:
  template: 
    metadata:
...

Example for excluding nginx-secret secret in a deployment

apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    secrets.exclude.reloader.stakater.com/reload: nginx-secret
spec:
  template: 
    metadata:
...

LochanRn avatar Oct 10 '24 10:10 LochanRn