Skip to content
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 .github/release-please/manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"charts/base-cluster":"9.3.2","charts/teuto-portal-k8s-worker":"3.3.0","charts/t8s-cluster":"9.3.1","charts/stellio-context-broker":"0.1.0","charts/chirpstack":"0.1.0","charts/common":"1.5.0","charts/ckan":"1.3.3","charts/teuto-cnpg":"2.1.0"}
{"charts/base-cluster":"9.3.2","charts/teuto-portal-k8s-worker":"3.3.0","charts/t8s-cluster":"9.3.1","charts/stellio-context-broker":"0.1.0","charts/chirpstack":"0.1.0","charts/common":"1.5.0","charts/ckan":"1.3.3","charts/teuto-cnpg":"3.0.0"}
16 changes: 16 additions & 0 deletions charts/teuto-cnpg/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## [3.0.0](https://github.com/teutonet/teutonet-helm-charts/compare/teuto-cnpg-v2.1.0...teuto-cnpg-v3.0.0) (2025-09-10)


### ⚠ BREAKING CHANGES

* **teuto-cnpg:** remodel to make use of the new way of creating barman backups ([#1663](https://github.com/teutonet/teutonet-helm-charts/issues/1663))

### Features

* **teuto-cnpg:** remodel to make use of the new way of creating barman backups ([#1663](https://github.com/teutonet/teutonet-helm-charts/issues/1663)) ([6c56e63](https://github.com/teutonet/teutonet-helm-charts/commit/6c56e635f67002250423794730b7f0495d6df5ff))


### Bug Fixes

* **teuto-cnpg/updateMethod:** set update method to switchover, set env-vars to make it compatible with newer barman ([#1572](https://github.com/teutonet/teutonet-helm-charts/issues/1572)) ([3082967](https://github.com/teutonet/teutonet-helm-charts/commit/30829679527a6c291fc30af1bcd0f9c91cee2657))

## [2.1.0](https://github.com/teutonet/teutonet-helm-charts/compare/teuto-cnpg-v2.0.0...teuto-cnpg-v2.1.0) (2025-07-29)


Expand Down
4 changes: 2 additions & 2 deletions charts/teuto-cnpg/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ maintainers:
- email: st@teuto.net
name: tasches
type: application
version: 2.1.0
version: 3.0.0
dependencies:
- name: common
repository: oci://ghcr.io/teutonet/teutonet-helm-charts
version: 1.2.1
sources:
- https://github.com/teutonet/teutonet-helm-charts/tree/teuto-cnpg-v2.1.0/charts/teuto-cnpg
- https://github.com/teutonet/teutonet-helm-charts/tree/teuto-cnpg-v3.0.0/charts/teuto-cnpg
- https://github.com/teutonet/teutonet-helm-charts/tree/main/charts/teuto-cnpg
annotations:
artifacthub.io/images: |-
Expand Down
104 changes: 96 additions & 8 deletions charts/teuto-cnpg/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- vim: set ft=markdown: --># teuto-cnpg

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

A Helm chart to abstract the managing of cnpg-databases from the original resource.

Expand All @@ -24,6 +24,29 @@ Databases need to be migrated manually:
- update helmchart
- start cnpg-operator

### 2.x.x -> 3.x.x

Cloudnative-PG made the in-operator backup deprecated.

Therefore a migration has to happen where the Backup block is moved
into the Objectstore.

In the values you need to remove .values.backup.barmanObjectStore block.
Those values now need to be set under .values.backup.s3 like this:

```
values:
backup:
s3:
endpointURL: https://api.ffm3.teutostack.de:6780
path: s3://backup/
secret:
name: backup-credentials
```

accessKeyId and accessSecretKey are set to `ACCESS_KEY_ID` and `accessSecretKeyEY` by default
but can be overwritten with .values.backup.s3.accessKeyId or .values.backup.s3.accessSecretKey.

# cnpg-wrapper configuration

**Title:** cnpg-wrapper configuration
Expand Down Expand Up @@ -186,16 +209,17 @@ Must be one of:

## <a name="backup"></a>7. ![Optional](https://img.shields.io/badge/Optional-yellow) Property `cnpg-wrapper configuration > backup`

| | |
| ------------------------- | --------------------------------------------------------------------------- |
| **Type** | `object` |
| **Additional properties** | ![Any type: allowed](https://img.shields.io/badge/Any%20type-allowed-green) |
| | |
| ------------------------- | -------------------------------------------------------------- |
| **Type** | `object` |
| **Additional properties** | ![Not allowed](https://img.shields.io/badge/Not%20allowed-red) |

**Description:** See: https://cloudnative-pg.io/documentation/1.16/backup_recovery/

| Property | Pattern | Type | Deprecated | Definition | Title/Description |
| ------------------------------- | ------- | ------ | ---------- | ---------- | ----------------- |
| - [schedule](#backup_schedule ) | No | string | No | - | cron syntax |
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
| ------------------------------- | ------- | ------ | ---------- | ---------- | ------------------ |
| - [schedule](#backup_schedule ) | No | string | No | - | cron syntax |
| + [s3](#backup_s3 ) | No | object | No | - | s3 related options |

### <a name="backup_schedule"></a>7.1. ![Optional](https://img.shields.io/badge/Optional-yellow) Property `cnpg-wrapper configuration > backup > schedule`

Expand All @@ -211,6 +235,70 @@ Must be one of:
0 0 0 * * *
```

### <a name="backup_s3"></a>7.2. ![Required](https://img.shields.io/badge/Required-blue) Property `cnpg-wrapper configuration > backup > s3`

| | |
| ------------------------- | -------------------------------------------------------------- |
| **Type** | `object` |
| **Additional properties** | ![Not allowed](https://img.shields.io/badge/Not%20allowed-red) |

**Description:** s3 related options

| Property | Pattern | Type | Deprecated | Definition | Title/Description |
| ---------------------------------------- | ------- | ------ | ---------- | ---------- | ------------------------- |
| + [path](#backup_s3_path ) | No | string | No | - | s3 path to write files to |
| + [endpointURL](#backup_s3_endpointURL ) | No | string | No | - | url of the api endpoint |
| - [secret](#backup_s3_secret ) | No | object | No | - | - |

#### <a name="backup_s3_path"></a>7.2.1. ![Required](https://img.shields.io/badge/Required-blue) Property `cnpg-wrapper configuration > backup > s3 > path`

| | |
| -------- | -------- |
| **Type** | `string` |

**Description:** s3 path to write files to

#### <a name="backup_s3_endpointURL"></a>7.2.2. ![Required](https://img.shields.io/badge/Required-blue) Property `cnpg-wrapper configuration > backup > s3 > endpointURL`

| | |
| -------- | -------- |
| **Type** | `string` |

**Description:** url of the api endpoint

#### <a name="backup_s3_secret"></a>7.2.3. ![Optional](https://img.shields.io/badge/Optional-yellow) Property `cnpg-wrapper configuration > backup > s3 > secret`

| | |
| ------------------------- | -------------------------------------------------------------- |
| **Type** | `object` |
| **Additional properties** | ![Not allowed](https://img.shields.io/badge/Not%20allowed-red) |

| Property | Pattern | Type | Deprecated | Definition | Title/Description |
| ------------------------------------------------------- | ------- | ------ | ---------- | ---------- | ----------------- |
| + [name](#backup_s3_secret_name ) | No | string | No | - | - |
| - [accessKeyId](#backup_s3_secret_accessKeyId ) | No | string | No | - | - |
| - [accessSecretKey](#backup_s3_secret_accessSecretKey ) | No | string | No | - | - |

##### <a name="backup_s3_secret_name"></a>7.2.3.1. ![Required](https://img.shields.io/badge/Required-blue) Property `cnpg-wrapper configuration > backup > s3 > secret > name`

| | |
| -------- | -------- |
| **Type** | `string` |

##### <a name="backup_s3_secret_accessKeyId"></a>7.2.3.2. ![Optional](https://img.shields.io/badge/Optional-yellow) Property `cnpg-wrapper configuration > backup > s3 > secret > accessKeyId`

| | |
| ----------- | ----------------- |
| **Type** | `string` |
| **Default** | `"ACCESS_KEY_ID"` |

##### <a name="backup_s3_secret_accessSecretKey"></a>7.2.3.3. ![Optional](https://img.shields.io/badge/Optional-yellow) Property `cnpg-wrapper configuration > backup > s3 > secret > accessSecretKey`

| | |
| ----------- | --------------------- |
| **Type** | `string` |
| **Default** | `"ACCESS_SECRET_KEY"` |

## <a name="databaseImage"></a>8. ![Optional](https://img.shields.io/badge/Optional-yellow) Property `cnpg-wrapper configuration > databaseImage`

| | |
Expand Down