mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #76534 from ping035627/k8s-190413
Expect directory permissions to be 0700
This commit is contained in:
commit
cee320a809
@ -231,7 +231,7 @@ func GetKubeletDir(dryRun bool) (string, error) {
|
||||
// backupAPIServerCertAndKey backups the old cert and key of kube-apiserver to a specified directory.
|
||||
func backupAPIServerCertAndKey(certAndKeyDir string) error {
|
||||
subDir := filepath.Join(certAndKeyDir, "expired")
|
||||
if err := os.Mkdir(subDir, 0766); err != nil {
|
||||
if err := os.Mkdir(subDir, 0700); err != nil {
|
||||
return errors.Wrapf(err, "failed to created backup directory %s", subDir)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user