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
commit cee320a809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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