Skip to content

Commit

Permalink
fix: sidecar: reloader: fix output config file permission (#4308)
Browse files Browse the repository at this point in the history
Fixes: 4307

Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
  • Loading branch information
OGKevin authored and onprem committed Jun 4, 2021
1 parent f9f2d1c commit 09aea6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/reloader/reloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 09aea6f

Please sign in to comment.