Skip to content

Commit

Permalink
Merge pull request #36 from vmware-tanzu/main
Browse files Browse the repository at this point in the history
Fork Sync: Update from parent repository
  • Loading branch information
github-actions[bot] authored Nov 1, 2022
2 parents 925b625 + 76d3321 commit 6d950be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelogs/unreleased/5526-qiuming-best
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix restic backup failure with self-signed certification backend storage
4 changes: 3 additions & 1 deletion pkg/uploader/provider/restic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

1 comment on commit 6d950be

@vercel
Copy link

@vercel vercel bot commented on 6d950be Nov 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

velero – ./

velero-kaovilai.vercel.app
velero-git-main-kaovilai.vercel.app
velero.tig.pw
velero.vercel.app

Please sign in to comment.