Skip to content

Commit

Permalink
Merge pull request #2 from cyprienandres/master
Browse files Browse the repository at this point in the history
dump
  • Loading branch information
dparbhakar committed Aug 26, 2020
2 parents f5471a2 + 5ca9657 commit 087f217
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ spec:
mountPath: /etc/config
resources:
limits:
memory: 500M
memory: 1Gi
requests:
memory: 500M
memory: 1Gi
cpu: 10m
volumes:
- name: config-volume
Expand Down
4 changes: 1 addition & 3 deletions pkg/mongodb/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ func CreateDump(plan *config.Plan) (MongoDBDump, error) {

log.Infof("Done creating dump for %s", plan.Name)
err = logToFile(mongoDBDump.LogFile, output)
if err != nil {
removeFile(mongoDBDump.ArchiveFile)
}
removeFile(mongoDBDump.ArchiveFile)

return mongoDBDump, err
}
Expand Down

0 comments on commit 087f217

Please sign in to comment.