Skip to content

Commit

Permalink
change access permission to default in general. (#1576)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya Fujita <[email protected]>
  • Loading branch information
fujitatomoya authored Jul 2, 2023
1 parent f9d8025 commit 211cb4f
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 @@ -179,7 +179,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 @@ -301,7 +301,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 211cb4f

Please sign in to comment.