Skip to content
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

Introducing config for encryption #13

Merged
merged 3 commits into from
Oct 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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