Skip to content

Commit

Permalink
Merge pull request #3487 from uselagoon/shared-restores
Browse files Browse the repository at this point in the history
fix: add the project directory to restore bucket path
  • Loading branch information
tobybellwood authored Jul 21, 2023
2 parents 453655e + 52236b6 commit c301efa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion node-packages/commons/src/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,10 @@ export const createMiscTask = async function(taskData: any) {
// Parse out the baasBucketName for any migrated projects
// check if the project is configured for a shared baas bucket
let [baasBucketName, shared] = await getBaasBucketName(result.environment.project, result.environment.openshift)

if (shared) {
// if it is a shared bucket, add the repo key to it too for restores
baasBucketName = `${baasBucketName}/baas-${makeSafe(taskData.data.project.name)}`
}
// Handle custom backup configurations
let lagoonBaasCustomBackupEndpoint = result.environment.project.envVariables.find(obj => {
return obj.name === "LAGOON_BAAS_CUSTOM_BACKUP_ENDPOINT"
Expand Down

0 comments on commit c301efa

Please sign in to comment.