-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/allow backup cronjobs to be run by a k8s cronjob ams #310
Closed
LorenzoJokhan
wants to merge
24
commits into
devel
from
feature/allow-backup-cronjobs-to-be-run-by-a-k8s-cronjob-ams
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
680d99d
add github workflows with gitops flow
stijnvandervegt b076584
Update .github/workflows/gitops.yml
stijnvandervegt 8e62242
Update .github/workflows/gitops.yml
stijnvandervegt 56e48d6
Update .github/workflows/gitops.yml
stijnvandervegt 1d8fba7
Run gitops actions on release-* branches
rudivanhierden d382164
Merge branch 'feature/gitops-workflow' of github.com:draadnu/openstad…
stijnvandervegt 5c94461
Add formId to submissions
rudivanhierden a4fad31
Make submissions listable and viewable
rudivanhierden e045f06
Update changelog
rudivanhierden 19f8909
Refactor duplicate code for the sequelize filters to utility method
rudivanhierden c9f3e08
Refactor to reduce code complexity
rudivanhierden c02c07e
Merge pull request #27 from draadnl/feature/make-submissions-listable…
stijnvandervegt d1d46c1
Merge remote-tracking branch 'draad/master' into feature/submission-e…
stijnvandervegt c3abedc
Merge pull request #28 from draadnl/feature/submission-events-draad
stijnvandervegt b4c3972
Merge pull request #21 from draadnl/feature/gitops-workflow
stijnvandervegt 8510702
Merge remote-tracking branch 'origin/master'
stijnvandervegt ee8e88d
Merge remote-tracking branch 'amsterdam/master'
rudivanhierden 6f2e172
Use multipart upload & chunking for mongodb s3 backups
rudivanhierden 7c195c9
Refactor MongoDB S3 backup
rudivanhierden 1e4dd83
Update changelog
rudivanhierden a8739d7
Add backup.js to run MySQL / MongoDB S3 backup
rudivanhierden 5420817
Refactor to reduce complexity & duplication
rudivanhierden 7e7133e
Merge branch 'feature/mongodb-s3-backup-memory-fix' into feature/allo…
rudivanhierden c54f22e
Fix conflicts, remove workflow file
LorenzoJokhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const backupMapping = { | ||
'mongo': 'mongodb_s3_backups', | ||
'mysql': 'mysql_s3_backups' | ||
}; | ||
|
||
if (!!process.env.BACKUP_TYPE === false) { | ||
console.error ('No backup type given in ENV variables'); | ||
process.exit(1); | ||
} | ||
|
||
if (Object.keys(backupMapping).indexOf(process.env.BACKUP_TYPE) === -1) { | ||
console.error ('Backup type not supported'); | ||
process.exit(1); | ||
} | ||
|
||
const backup = require(`./src/cron/${backupMapping[process.env.BACKUP_TYPE]}`); | ||
|
||
async function run() { | ||
try { | ||
console.log(`${backupMapping[process.env.BACKUP_TYPE]}`); | ||
await backup.onTick(); | ||
} catch (err) { | ||
console.error('Backup went wrong', err); | ||
} | ||
} | ||
|
||
run(); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The changes in this file don't belong in this PR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you push this to the top of the file?