Skip to content

Commit

Permalink
change access permission to default in general. (#1584)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya Fujita <[email protected]>
(cherry picked from commit 95ba3a7)

Co-authored-by: Tomoya Fujita <[email protected]>
  • Loading branch information
github-actions[bot] and fujitatomoya authored Jul 4, 2023
1 parent 0c6489f commit 887bedf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/yurtadm/util/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func CheckAndInstallKubernetesCni(reuseCNIBin bool) error {
klog.V(1).Infof("Skip download cni, use already exist file: %s", savePath)
}

if err := os.MkdirAll(constants.KubeCniDir, 0600); err != nil {
if err := os.MkdirAll(constants.KubeCniDir, 0755); err != nil {
return err
}
if err := util.Untar(savePath, constants.KubeCniDir); err != nil {
Expand Down Expand Up @@ -285,7 +285,7 @@ func SetKubeletUnitConfig() error {
}
}

if err := os.WriteFile(constants.KubeletServiceConfPath, []byte(constants.KubeletUnitConfig), 0600); err != nil {
if err := os.WriteFile(constants.KubeletServiceConfPath, []byte(constants.KubeletUnitConfig), 0640); err != nil {
return err
}

Expand Down

0 comments on commit 887bedf

Please sign in to comment.