Reloader
Reloader copied to clipboard
Provide annotations to exclude reloading resources
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:
...