Skip to content

Commit

Permalink
change access permission to default in general.
Browse files Browse the repository at this point in the history
  backport of openyurtio#1576 for release-v1.0

Signed-off-by: Tomoya Fujita <[email protected]>
  • Loading branch information
fujitatomoya committed Jul 10, 2023
1 parent d98ecfb commit ffbcb6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/yurtadm/util/kubernetes/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func CheckAndInstallKubelet(kubernetesResourceServer, clusterVersion string) err
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 @@ -207,7 +207,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 ffbcb6d

Please sign in to comment.