Adds support for auto-reloading secrets and configmaps by annotation.

This commit is contained in:
Vlad Losev
2020-06-02 17:20:12 -07:00
parent 732cd5b53a
commit fda733ea5a
6 changed files with 224 additions and 53 deletions

View File

@@ -1,12 +1,20 @@
package options
var (
// ConfigmapUpdateOnChangeAnnotation is an annotation to detect changes in configmaps
// ConfigmapUpdateOnChangeAnnotation is an annotation to detect changes in
// configmaps specified by name
ConfigmapUpdateOnChangeAnnotation = "configmap.reloader.stakater.com/reload"
// SecretUpdateOnChangeAnnotation is an annotation to detect changes in secrets
// SecretUpdateOnChangeAnnotation is an annotation to detect changes in
// secrets specified by name
SecretUpdateOnChangeAnnotation = "secret.reloader.stakater.com/reload"
// ReloaderAutoAnnotation is an annotation to detect changes in secrets
ReloaderAutoAnnotation = "reloader.stakater.com/auto"
// ConfigmapUpdateAutoSearchAnnotation is an annotation to detect changes in
// configmaps searched by annotation
ConfigmapUpdateAutoSearchAnnotation = "configmap.reloader.stakater.com/auto-by-annotation"
// SecretUpdateAutoSearchAnnotation is an annotation to detect changes in
// secrets searched by annotation
SecretUpdateAutoSearchAnnotation = "secret.reloader.stakater.com/auto-by-annotation"
// LogFormat is the log format to use (json, or empty string for default)
LogFormat = ""
)