diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index 238a053..ac0b95f 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -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 diff --git a/pkg/mongodb/dump.go b/pkg/mongodb/dump.go index e7de0b8..37cad27 100644 --- a/pkg/mongodb/dump.go +++ b/pkg/mongodb/dump.go @@ -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 }