We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1192ca0 + e3dcd3c commit cee320aCopy full SHA for cee320a
cmd/kubeadm/app/phases/upgrade/postupgrade.go
@@ -231,7 +231,7 @@ func GetKubeletDir(dryRun bool) (string, error) {
231
// backupAPIServerCertAndKey backups the old cert and key of kube-apiserver to a specified directory.
232
func backupAPIServerCertAndKey(certAndKeyDir string) error {
233
subDir := filepath.Join(certAndKeyDir, "expired")
234
- if err := os.Mkdir(subDir, 0766); err != nil {
+ if err := os.Mkdir(subDir, 0700); err != nil {
235
return errors.Wrapf(err, "failed to created backup directory %s", subDir)
236
}
237
0 commit comments