diff --git a/helm-charts/azure-advanced-backup/Chart.yaml b/helm-charts/azure-advanced-backup/Chart.yaml index 698c622..31631b2 100644 --- a/helm-charts/azure-advanced-backup/Chart.yaml +++ b/helm-charts/azure-advanced-backup/Chart.yaml @@ -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" diff --git a/helm-charts/azure-advanced-backup/README.md b/helm-charts/azure-advanced-backup/README.md index b4f902e..9166b25 100644 --- a/helm-charts/azure-advanced-backup/README.md +++ b/helm-charts/azure-advanced-backup/README.md @@ -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 @@ -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. | diff --git a/helm-charts/azure-advanced-backup/templates/cronjob.yaml b/helm-charts/azure-advanced-backup/templates/cronjob.yaml index ac08d61..a311e1d 100644 --- a/helm-charts/azure-advanced-backup/templates/cronjob.yaml +++ b/helm-charts/azure-advanced-backup/templates/cronjob.yaml @@ -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 diff --git a/helm-charts/azure-advanced-backup/values.yaml b/helm-charts/azure-advanced-backup/values.yaml index 1143b43..7dd9205 100644 --- a/helm-charts/azure-advanced-backup/values.yaml +++ b/helm-charts/azure-advanced-backup/values.yaml @@ -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: ""