From 3d3b9e312ac6996e8d45f5121e4637ce78e5426f Mon Sep 17 00:00:00 2001 From: Ashish Amarnath Date: Fri, 10 Jul 2020 14:07:05 -0700 Subject: [PATCH] =?UTF-8?q?Revert=20"=F0=9F=90=9B=20fix=20file=20perission?= =?UTF-8?q?s=20on=20the=20manifest=20JSON=20in=20backup=20archive=20(#2685?= =?UTF-8?q?)"=20(#2700)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dae5230aae6cc238b1ec1c0c38eddbe3cfaaacbb Signed-off-by: Ashish Amarnath --- changelogs/unreleased/2685-ashish-amarnath | 1 - pkg/backup/item_backupper.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 changelogs/unreleased/2685-ashish-amarnath diff --git a/changelogs/unreleased/2685-ashish-amarnath b/changelogs/unreleased/2685-ashish-amarnath deleted file mode 100644 index 18ea0ce1f..000000000 --- a/changelogs/unreleased/2685-ashish-amarnath +++ /dev/null @@ -1 +0,0 @@ -update file permissions on JSON manifests in the backup archive diff --git a/pkg/backup/item_backupper.go b/pkg/backup/item_backupper.go index 03b618ddf..e2652abca 100644 --- a/pkg/backup/item_backupper.go +++ b/pkg/backup/item_backupper.go @@ -264,7 +264,7 @@ func (ib *itemBackupper) backupItem(logger logrus.FieldLogger, obj runtime.Unstr Name: filePath, Size: int64(len(itemBytes)), Typeflag: tar.TypeReg, - Mode: 0644, + Mode: 0755, ModTime: time.Now(), }