From 32526f57190c5076cfe4fec7c8c32792a6302ec4 Mon Sep 17 00:00:00 2001 From: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> Date: Fri, 4 Jun 2021 12:00:43 +0200 Subject: [PATCH] fix: sidecar: reloader: fix output config file permission Fixes: 4307 Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> --- pkg/reloader/reloader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/reloader/reloader.go b/pkg/reloader/reloader.go index d878f5382b7..b618fd171b3 100644 --- a/pkg/reloader/reloader.go +++ b/pkg/reloader/reloader.go @@ -290,7 +290,7 @@ func (r *Reloader) apply(ctx context.Context) error { defer func() { _ = os.Remove(tmpFile) }() - if err := ioutil.WriteFile(tmpFile, b, 0600); err != nil { + if err := ioutil.WriteFile(tmpFile, b, 0644); err != nil { return errors.Wrap(err, "write file") } if err := os.Rename(tmpFile, r.cfgOutputFile); err != nil {