Skip to content

Commit

Permalink
feat: Helm chart update for pg custom format
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger committed Aug 31, 2022
1 parent 58cf08f commit d77b11b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions helm-charts/azure-advanced-backup/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ description: |
helm install azure-advanced-backup azure-advanced-backup/azure-advanced-backup --version 0.1.0
type: application
version: 0.3.2
appVersion: "0.3.6"
version: 0.4.0
appVersion: "0.4.0"
home: "https://github.com/dodevops/azure-advanced-backup"
sources:
- "https://github.com/dodevops/azure-advanced-backup"
4 changes: 2 additions & 2 deletions helm-charts/azure-advanced-backup/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# azure-advanced-backup

![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.3.0](https://img.shields.io/badge/AppVersion-0.3.0-informational?style=flat-square)
![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.4.0](https://img.shields.io/badge/AppVersion-0.4.0-informational?style=flat-square)

Azure backup of databases and containers in a Kubernetes Cronjob

Expand Down Expand Up @@ -33,7 +33,7 @@ Azure backup of databases and containers in a Kubernetes Cronjob
| config.copySnapshots | string | `"true"` | If set to "true", copies the managed disk snapshots as a single VHD into the backup storage account. The existing VHD will be overwritten. If not set to "true", the snapshots will stay where they were created and get deleted after the days given in snapshotRetentionDays. |
| config.debug | string | `"no"` | Set to "yes" to enable debug output. **WARNING** This will potentially output sensitive information to the log! |
| config.managedDisks | string | `""` | Whitespace separated list of managed disks in the form `DISK_NAME:DISK_URI:RESOURCEGROUP_NAME` |
| config.postgres_databases | string | `""` | Whitespace separated list of database logins in the form `BACKUP_NAME:USERNAME:PASSWORD:HOST:DATABASE_NAME` |
| config.postgres | object | `{"databases":"","useCustomFormat":"no"}` | Whitespace separated list of database logins in the form `BACKUP_NAME:USERNAME:PASSWORD:HOST:DATABASE_NAME` |
| config.resourceGroupLockId | string | `""` | Set to the id of a resource group lock to remove when deleting snapshots and recreate it afterwards |
| config.schedule | string | `"0 0 * * *"` | Cronjob schedule |
| config.snapshotRetentionDays | int | `7` | Number of days to keep a snapshot. Note that this only applies if copySnapshots is set to false. |
Expand Down
4 changes: 3 additions & 1 deletion helm-charts/azure-advanced-backup/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: PG_DATABASES
value: {{ .Values.config.postgres_databases }}
value: {{ .Values.config.postgres.databases }}
- name: PG_USE_CUSTOM_FORMAT
value: {{ .Values.config.postgres.useCustomFormat }}
- name: AZ_APPLICATION_ID
value: {{ .Values.config.auth.applicationId }}
- name: AZCOPY_SPA_CLIENT_SECRET
Expand Down
6 changes: 4 additions & 2 deletions helm-charts/azure-advanced-backup/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ config:

# -- Whitespace separated list of database logins in the form
# `BACKUP_NAME:USERNAME:PASSWORD:HOST:DATABASE_NAME`
postgres_databases: ""

postgres:
databases: ""
useCustomFormat: "no"

backupStorage:
# -- Name of the storage account to sync the containers to
account: ""
Expand Down

0 comments on commit d77b11b

Please sign in to comment.