Skip to content

Commit

Permalink
fix: write KubernetesCACert chmodded 0400 instead of 0500
Browse files Browse the repository at this point in the history
Looks like this was an error made long ago, fixed similarly for etcd
in b52b206.

Signed-off-by: Lennard Klein <lennard.klein@eu.equinix.com>
Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
(cherry picked from commit 0ff4c7c)
  • Loading branch information
lennardk authored and smira committed Sep 17, 2021
1 parent 6adaee3 commit 5700c81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/machined/pkg/system/services/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (k *Kubelet) PreFunc(ctx context.Context, r runtime.Runtime) error {
return err
}

if err := ioutil.WriteFile(constants.KubernetesCACert, r.Config().Cluster().CA().Crt, 0o500); err != nil {
if err := ioutil.WriteFile(constants.KubernetesCACert, r.Config().Cluster().CA().Crt, 0o400); err != nil {
return err
}

Expand Down

0 comments on commit 5700c81

Please sign in to comment.