Merge pull request #76534 from ping035627/k8s-190413

Expect directory permissions to be 0700
This commit is contained in:
Kubernetes Prow Robot
2019-04-18 06:22:09 -07:00
committed by GitHub

View File

@@ -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)
}