Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
tico24 authored Jun 14, 2021
2 parents 4842d3e + 1f9d6ad commit 5de46aa
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 19 deletions.
2 changes: 1 addition & 1 deletion charts/sorry-cypress/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: sorry-cypress
description: A Helm chart for Sorry Cypress
type: application
version: 1.0.0-alpha2
version: 1.0.0
appVersion: 1.0.3
home: https://sorry-cypress.dev/
sources:
Expand Down
22 changes: 5 additions & 17 deletions charts/sorry-cypress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,29 +135,17 @@ https://sorry-cypress.dev/director/configuration
| `director.ingress.hosts[0].path` | Root path to the service installation | `/` |
| `director.ingress.tls` | Ingress secrets for TLS certificates | `[]` |

### Mongo service
### Mongodb service

If the execution driver is set to `"../execution/mongo/driver"`, you may enable the internal MongoDB service deploy or provide an external one. Ignore this configuration when using other execution drivers.

| Parameter | Description | Default |
|--------------------------------|------------------------------------------------------------------------------------|-----------------|
| `mongo.enabled` | If enabled, it will deploy the internal MongoDB service. | `true` |
| `mongo.mongoDatabase` | The mongo database | `sorry-cypress` |
| `mongo.mongoServer` | The mongo server when providing an external one. Use it with `mongo.enabled=false` | `""` |
| `mongo.image.repository` | Image repository | `mongo` |
| `mongo.image.tag` | Image tag | `"4.0"` |
| `mongo.image.pullPolicy` | Image pull policy | `Always` |
| `mongo.persistence.enabled` | Flag for enabling persistent storage | `false` |
| `mongo.persistence.accessMode` | Volumes access mode to be set | `ReadWriteOnce` |
| `mongo.persistence.size` | Size of the volume | `1Gi` |
| `mongo.resources` | Resources to initialize the container | `{}` |
| `mongo.podAnnotations` | Set annotations for pods | `{}` |
| `mongo.podLabels` | Set additional labels for pods | `{}` |
| `mongo.affinity` | Set affinity for pods | `{}` |
| `mongo.nodeSelector` | Set node selector for pods | `{}` |
| `mongo.tolerations` | Set tolerations for pods | `[]` |
| `mongo.service.port` | Kubernetes service port | `4000` |
| `mongodb.enabled` | If enabled, it will deploy the internal MongoDB service. | `true` |
| `mongodb.mongoDatabase` | The mongo database | `sorry-cypress` |
| `mongodb.mongoServer` | The mongo server when providing an external one. Use it with `mongo.enabled=false` | `""` |

All other mongodb options are defined in [the Bitnami mongo db helm chart](https://github.com/bitnami/charts/blob/master/bitnami/mongodb/values.yaml).

### Screenshots And Videos

Expand Down
25 changes: 24 additions & 1 deletion charts/sorry-cypress/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
# 1.0.0
## Breaking Changes
Uses the bitnami mongodb helm chart. There is no automated upgrade path from previous versions... you will have to manually migrate data.
Uses the bitnami mongodb helm chart. There is no automated upgrade path from previous versions... you will have to manually migrate data.

Here are some very basic instructions on how you could manually migrate the data.
### Exec into the old mongo db pod and perform a backup:
cd /data
mongodump --out=/tmp/backup
cd /tmp
tar -Pczvf backup.tar.gz backup/

### copy the db dump from the pod
kubectl cp my-pod:my-file my-file

Eg:
kubectl cp sorry-cypress-mongo-0:/tmp/backup.tar.gz ~/Desktop/backup.tar.gz


### switch to the new context and copy file:
kubectl cp ~/Desktop/backup.tar.gz dev-sorry-cypress-mongodb-0:/tmp/

### Exec into the pod and restore
cd /tmp
tar -xvzf backup.tar.gz
cd /bitnami/mongodb/data
mongorestore --drop /tmp/backup

0 comments on commit 5de46aa

Please sign in to comment.