Skip to content

Commit

Permalink
Merge pull request #13 from Rungway/mgob-gpg
Browse files Browse the repository at this point in the history
Introducing config for encryption
  • Loading branch information
endrec authored Oct 28, 2020
2 parents dc85078 + 5bca783 commit 003e22b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/mgob/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: |
MongoDB dockerized backup agent.
Runs scheduled backups with retention, S3 & SFTP upload, notifications, instrumentation with Prometheus and more.
name: mgob
version: 1.0.0
version: 1.1.0
sources:
- https://github.com/stefanprodan/mgob
maintainers:
Expand Down
4 changes: 2 additions & 2 deletions charts/mgob/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# mgob

![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square)
![Version: 1.1.0](https://img.shields.io/badge/Version-1.1.0-informational?style=flat-square)

MongoDB dockerized backup agent.
Runs scheduled backups with retention, S3 & SFTP upload, notifications, instrumentation with Prometheus and more.
Expand All @@ -23,7 +23,7 @@ Runs scheduled backups with retention, S3 & SFTP upload, notifications, instrume
| env | object | `{}` | |
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| image.repository | string | `"stefanprodan/mgob"` | Image repo |
| image.tag | float | `1.1` | Image tag |
| image.tag | float | `1.3` | Image tag |
| replicaCount | int | `1` | Number of replicas |
| resources | object | `{"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"100m","memory":"128Mi"}}` | Resource requests and limits ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
| secret | object | `{}` | Secret(s) to mount. For details, see [values.yaml](values.yaml) |
Expand Down
4 changes: 4 additions & 0 deletions charts/mgob/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ data:
target:
{{ toYaml . | nindent 6 | trim }}
{{- end }}
{{- with $value.encryption }}
encryption:
{{ toYaml . | nindent 6 | trim }}
{{- end }}
{{- with $value.s3 }}
s3:
{{ toYaml . | nindent 6 | trim }}
Expand Down
14 changes: 13 additions & 1 deletion charts/mgob/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ image:
# -- Image pull policy
pullPolicy: IfNotPresent
# -- Image tag
tag: 1.1
tag: 1.3
service:
# -- Service name
name: mgob
Expand Down Expand Up @@ -64,6 +64,18 @@ config: {}
# password: "secret"
# # add custom params to mongodump (eg. Auth or SSL support), leave blank if not needed
# params: "--ssl --authenticationDatabase admin"
# # Encryption (optional)
# encryption:
# # At the time being, only gpg asymmetric encryption is supported
# # Public key file or at least one recipient is mandatory
# gpg:
# # optional path to a public key file, only the first key is used.
# keyFile: /secret/mgob-key/key.pub
# # optional key server, defaults to hkps://keys.openpgp.org
# keyServer: hkps://keys.openpgp.org
# # optional list of recipients, they will be looked up on key server
# recipients:
# - [email protected]
# # S3 upload (optional)
# s3:
# url: "https://play.minio.io:9000"
Expand Down

0 comments on commit 003e22b

Please sign in to comment.