Skip to content

Commit

Permalink
pb-4579: Passing --sseType to kopia only when S3Config.SseType is pas…
Browse files Browse the repository at this point in the history
…sed.
  • Loading branch information
sivakumar subraani committed Oct 9, 2023
1 parent 758b06e commit 4a1cf78
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified bin/kopia
Binary file not shown.
2 changes: 1 addition & 1 deletion pkg/executor/kopia/kopiabackup.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ func populateS3AccessDetails(initCmd *kopia.Command, repository *executor.Reposi
initCmd.AddArg(repository.S3Config.AccessKeyID)
initCmd.AddArg("--secret-access-key")
initCmd.AddArg(repository.S3Config.SecretAccessKey)
initCmd.AddArg("--sseType")
// At present the backuplocation CR was set with "AES256" value for SSE-S3.
// So need to do this conversion.
switch repository.S3Config.SseType {
case "AES256":
initCmd.AddArg("--sseType")
initCmd.AddArg("SSE-S3")
}

Expand Down

0 comments on commit 4a1cf78

Please sign in to comment.