Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Make golangci-lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiger committed Mar 16, 2021
1 parent 39f4ad5 commit 388ab4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,9 @@ func checkSecret(opts *Opts, client *k8s.Clientset) error {
}
f := path.Join(opts.TLSBaseDir, k)
logger.Debugw("Writing certificate to file", k, f)
err := ioutil.WriteFile(f, v, 0640)
err := ioutil.WriteFile(f, v, 0600)
if err != nil {
return fmt.Errorf("could not write secret to certificate base folder:%v", err)
return fmt.Errorf("could not write secret to certificate base folder:%w", err)
}
}

Expand Down

0 comments on commit 388ab4a

Please sign in to comment.