From 388ab4a87fda3e48d72ee6d829fd43776e8420da Mon Sep 17 00:00:00 2001 From: mreiger Date: Tue, 16 Mar 2021 16:26:16 +0100 Subject: [PATCH] Make golangci-lint happy --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 224f873..f913c54 100644 --- a/main.go +++ b/main.go @@ -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) } }