velero/pkg/restic
Bridget McErlean edeec848d3
Skip restic backup/restore of DownwardAPI volumes (#4076)
Velero was including DownwardAPI volumes when backing up with restic.
When restoring these volumes, it triggered a known issue with restic (as
seen in #3863). Like projected volumes, these volumes should be skipped
as their contents are populated by the Kubernetes API server.

With this change, we are now skipping the restic backup of volumes with
a DownwardAPI source. We are also skipping the restore of any volume
that had a DownwardAPI source as there will exist backups that were
taken prior to this fix being introduced. This will allow these backups
to be restored succesfully.

Signed-off-by: Bridget McErlean <bmcerlean@vmware.com>
2021-09-01 13:51:44 +08:00
..
mocks Updates for org move to vmware-tanzu (#1920) 2019-09-30 17:26:56 -04:00
aws.go Use Credential from BSL for restic commands (#3489) 2021-03-11 13:10:51 -05:00
aws_test.go Use Credential from BSL for restic commands (#3489) 2021-03-11 13:10:51 -05:00
azure.go Use Credential from BSL for restic commands (#3489) 2021-03-11 13:10:51 -05:00
azure_test.go Use Credential from BSL for restic commands (#3489) 2021-03-11 13:10:51 -05:00
backupper.go Restic Backup: Add check if Pod is successful or failed for emptyDir.… (#3993) 2021-08-04 12:53:06 +08:00
backupper_test.go k8s 1.18 import (#2651) 2020-07-16 12:21:37 -04:00
command.go fix copyright boilerplate 2020-06-18 14:14:15 -07:00
command_factory.go
command_factory_test.go
command_test.go fix copyright boilerplate 2020-06-18 14:14:15 -07:00
common.go Skip restic backup/restore of DownwardAPI volumes (#4076) 2021-09-01 13:51:44 +08:00
common_test.go Skip restic backup/restore of DownwardAPI volumes (#4076) 2021-09-01 13:51:44 +08:00
config.go Refactor GetRepoIdentifier tests and add new case 2021-06-09 16:40:45 -04:00
config_test.go Refactor GetRepoIdentifier tests and add new case 2021-06-09 16:40:45 -04:00
exec_commands.go Use Credential from BSL for restic commands (#3489) 2021-03-11 13:10:51 -05:00
exec_commands_test.go properly handle empty restic stdout during progress updates (#2231) 2020-02-03 12:49:23 -07:00
gcp.go Use Credential from BSL for restic commands (#3489) 2021-03-11 13:10:51 -05:00
gcp_test.go Use Credential from BSL for restic commands (#3489) 2021-03-11 13:10:51 -05:00
repo_locker.go
repository_ensurer.go k8s 1.18 import (#2651) 2020-07-16 12:21:37 -04:00
repository_keys.go Use Credential from BSL for restic commands (#3489) 2021-03-11 13:10:51 -05:00
repository_keys_test.go Use Credential from BSL for restic commands (#3489) 2021-03-11 13:10:51 -05:00
repository_manager.go Add PVC UID label to PVR (as we already have for PVB) (#3792) 2021-05-20 09:16:06 +08:00
restorer.go Add PVC UID label to PVR (as we already have for PVB) (#3792) 2021-05-20 09:16:06 +08:00