mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-03 11:45:20 +00:00
Merge pull request #5526 from qiuming-best/insecurity-skip-fix
fix restic backup failure with self-signed certification backend storage
This commit is contained in:
1
changelogs/unreleased/5526-qiuming-best
Normal file
1
changelogs/unreleased/5526-qiuming-best
Normal file
@@ -0,0 +1 @@
|
||||
fix restic backup failure with self-signed certification backend storage
|
||||
@@ -147,7 +147,9 @@ func (rp *resticProvider) RunBackup(
|
||||
snapshotIdCmd := restic.GetSnapshotCommand(rp.repoIdentifier, rp.credentialsFile, tags)
|
||||
snapshotIdCmd.Env = rp.cmdEnv
|
||||
snapshotIdCmd.CACertFile = rp.caCertFile
|
||||
|
||||
if len(rp.extraFlags) != 0 {
|
||||
snapshotIdCmd.ExtraFlags = append(snapshotIdCmd.ExtraFlags, rp.extraFlags...)
|
||||
}
|
||||
snapshotID, err := restic.GetSnapshotID(snapshotIdCmd)
|
||||
if err != nil {
|
||||
return "", false, errors.WithStack(fmt.Errorf("error getting snapshot id with error: %v", err))
|
||||
|
||||
Reference in New Issue
Block a user