Skip to content

Commit

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

Signed-off-by: Kevin Hellemun <[email protected]>
  • Loading branch information
OGKevin committed Jun 4, 2021
1 parent f9f2d1c commit 32526f5
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 32526f5

Please sign in to comment.