config: add CertificateFiles to FileWatcherSource list (#1878) (#1880)

Co-authored-by: Travis Groth <travisgroth@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2021-02-11 18:14:51 -05:00 committed by GitHub
parent 5bf790c099
commit 4308807479
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,6 +186,11 @@ func (src *FileWatcherSource) check(cfg *Config) {
cfg.Options.KeyFile,
cfg.Options.PolicyFile,
}
for _, pair := range cfg.Options.CertificateFiles {
fs = append(fs, pair.CertFile, pair.KeyFile)
}
for _, f := range fs {
_, _ = h.Write([]byte{0})
bs, err := ioutil.ReadFile(f)