Skip to content

Commit c4c5c35

Browse files
authored
Merge pull request #130 from cybertec-postgresql/rc-0.9.1
Rc 0.9.1
2 parents e193f61 + e1a1192 commit c4c5c35

46 files changed

Lines changed: 1213 additions & 2076 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 61 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,70 @@
11
---
2-
name: Postgres Operator issue template
2+
name: CYBERTEC-PG-Operator issue template
33
about: How are you using the operator?
4-
title: ''
4+
title: '[BUG] Brief description of the problem'
55
labels: ''
66
assignees: ''
77

88
---
99

10-
Please, answer some short questions which should help us to understand your problem / question better?
10+
To quickly narrow down the problem, we need details about your infrastructure.
1111

12-
- **Which image of the operator are you using?** e.g. registry.opensource.zalan.do/acid/postgres-operator:v1.10.1
13-
- **Where do you run it - cloud or metal? Kubernetes or OpenShift?** [AWS K8s | GCP ... | Bare Metal K8s]
14-
- **Are you running Postgres Operator in production?** [yes | no]
15-
- **Type of issue?** [Bug report, question, feature request, etc.]
12+
- **Operator version / image:** [e.g. docker.io/cybertecpostgresql/cybertec-pg-operator:v0.9.0-1]
13+
- **Postgres Docker Image:** [e.g., containers.cybertec.at/cybertec-pg-container/postgres:rocky9-18.1-1]
14+
- **Kubernetes Platform:** [Please check or add]
15+
- [ ] Vanilla Kubernetes (Bare Metal / VM)
16+
- [ ] OpenShift
17+
- [ ] Rancher / RKE / RKE2
18+
- [ ] AWS EKS
19+
- [ ] Google GKE
20+
- [ ] Azure AKS
21+
- [ ] Minikube / Kind / K3s
22+
- [ ] Other: ________
23+
- **Kubernetes version:** [Output of `kubectl version`, e.g. v1.28.3]
24+
- **Storage Class:** [e.g., standard, gp2, longhorn, ceph-rbd]
25+
- **Is the operator running in production?** [Yes / No]
1626

17-
Some general remarks when posting a bug report:
18-
- Please, check the operator, pod (Patroni) and postgresql logs first. When copy-pasting many log lines please do it in a separate GitHub gist together with your Postgres CRD and configuration manifest.
19-
- If you feel this issue might be more related to the [Spilo](https://github.com/zalando/spilo/issues) docker image or [Patroni](https://github.com/zalando/patroni/issues), consider opening issues in the respective repos.
27+
---
28+
29+
### Problem Description
30+
31+
**What happened?**
32+
Describe the unexpected behavior.
33+
34+
**What did you expect?**
35+
Describe what should have happened.
36+
37+
---
38+
39+
### Steps to reproduce
40+
41+
How can we reproduce the problem?
42+
1. Applied Postgres cluster manifest (see below)
43+
2. Executed command: `...`
44+
3. Error occurs when ...
45+
46+
---
47+
48+
### Relevant logs and manifests
49+
50+
**IMPORTANT:** Please use code blocks (```) to format logs and YAML files in a readable way.
51+
52+
**1. Operator logs:**
53+
(Please check the logs of the operator pod for errors)
54+
```text
55+
Insert logs here...
56+
```
57+
58+
**2. Postgres / Patroni /pgBackRest logs: (If the pod starts but the DB is not running):**
59+
(Please check the logs of the postgres or pgbackrest pod for errors)
60+
```text
61+
Insert logs here...
62+
```
63+
64+
**3. Postgres Cluster Manifest (YAML): (Please remove passwords or sensitive data!)**
65+
```yaml
66+
Insert Manifest here...
67+
```
68+
69+
**Additional information**
70+
Are there any special circumstances in your setup? (e.g., service mesh such as Istio/Linkerd, special network policies, air-gapped environment?)
Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
1-
## Problem description
2-
3-
4-
5-
## Linked issues
1+
## Description
2+
## Type of Change
3+
- [ ] Bug fix (non-breaking change which fixes an issue)
4+
- [ ] New feature (non-breaking change which adds functionality)
5+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
6+
- [ ] Documentation update
67

78

9+
## Linked Issues
10+
---
811

912
## Checklist
1013

11-
Thanks for submitting a pull request to the Postgres Operator project.
12-
Please, ensure your contribution matches the following items:
14+
Thanks for submitting a pull request to the CYBERTEC-pg-operator project!
15+
Please ensure your contribution matches the following items:
16+
17+
- [ ] **Code Formatting:** My code follows the Go formatting standards. (Your IDE should do this automatically, or run `go fmt`).
18+
- [ ] **Generated Code:** I have updated [generated code](https://cybertec-postgresql.github.io/CYBERTEC-pg-operator/contribution#code-generation) (clientset, deepcopy) when introducing new fields to the `cpo.opensource.cybertec.at` API package.
19+
- [ ] **Configuration & CRDs:** New [configuration options](https://cybertec-postgresql.github.io/CYBERTEC-pg-operator/contribution#introduce-additional-configuration-parameters) are reflected in:
20+
- [ ] The Go struct definitions
21+
- [ ] The CRD validation manifests (YAML)
22+
- [ ] The Helm Charts
23+
- [ ] The sample manifests
24+
- [ ] **Tests:** New functionality is covered by [unit tests](https://cybertec-postgresql.github.io/CYBERTEC-pg-operator/contribution#unit-tests) and/or [e2e tests](https://cybertec-postgresql.github.io/CYBERTEC-pg-operator/contribution#end-to-end-tests).
25+
- [ ] **Existing PRs:** I have checked existing open PRs to ensure there are no duplicates or conflicts.
1326

14-
- [ ] Your go code is [formatted](https://blog.golang.org/gofmt). Your IDE should do it automatically for you.
15-
- [ ] You have updated [generated code](https://github.com/zalando/postgres-operator/blob/master/docs/developer.md#code-generation) when introducing new fields to the `acid.zalan.do` api package.
16-
- [ ] New [configuration options](https://github.com/zalando/postgres-operator/blob/master/docs/developer.md#introduce-additional-configuration-parameters) are reflected in CRD validation, helm charts and sample manifests.
17-
- [ ] New functionality is covered by [unit](https://github.com/zalando/postgres-operator/blob/master/docs/developer.md#unit-tests) and/or [e2e](https://github.com/zalando/postgres-operator/blob/master/docs/developer.md#end-to-end-tests) tests.
18-
- [ ] You have checked existing open PRs for possible overlay and referenced them.
27+
## How has this been tested?

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ This architecture forms the basis for a modern, highly available and scalable Po
7575
| 0.8.0 | 13 - 17 | 2.53 | 4.0.2 | 1.21+ | 1.21.7 |
7676
| 0.8.3 | 13 - 17 | 2.54+ | 4.0.5 | 1.21+ | 1.22.12 |
7777
| 0.9.0 | 13 - 18 | 2.56+ | 4.1.0 | 1.21+ | 1.25.2 |
78+
| 0.9.1 | 13 - 18 | 2.56+ | 4.1.0 | 1.21+ | 1.25.6 |
7879

7980
---
8081

charts/postgres-cluster/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: postgres-cluster
33
description: Deploys a PostgreSQL cluster using the PostgreSQL operator
44

55
type: application
6-
version: 0.8.0
6+
version: 0.9.1
77

8-
appVersion: "0.8.0-1"
8+
appVersion: "0.9.1-1"
99

1010
maintainers:
1111
- name: CYBERTEC PostgreSQL International GmbH

charts/postgres-cluster/index.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.
-7.9 KB
Binary file not shown.

charts/postgres-cluster/values.yaml

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
# my-annotation: value
1313

1414
cluster:
15-
dockerImage: docker.io/cybertecpostgresql/cybertec-pg-container:postgres-18.0-1
15+
dockerImage: containers.cybertec.at/cybertec-pg-container/postgres:rocky9-18.1-1
1616
numberOfInstances: 2
1717

1818
postgresql:
19-
version: "17"
19+
version: "18"
2020
#parameters:
2121
# work_mem: "40MB"
2222

@@ -25,7 +25,7 @@ cluster:
2525
# value: custom
2626

2727
volume:
28-
size: 1Gi
28+
size: 5Gi
2929
#storageClass: my-storage
3030
#selector:
3131
# matchExpressions:
@@ -45,7 +45,7 @@ cluster:
4545

4646
resources:
4747
requests:
48-
cpu: 10m
48+
cpu: 100m
4949
memory: 100Mi
5050
limits:
5151
cpu: 500m
@@ -63,13 +63,19 @@ cluster:
6363
failsafe_mode: false
6464
initdb:
6565
encoding: "UTF8"
66-
locale: "C.UTF-8"
67-
data-checksums: "true"
66+
locale: "en_US.UTF-8"
67+
locale-provider: "icu"
68+
icu-locale: "en_US"
6869
pg_hba:
69-
- local all all trust
70-
- local replication standby trust
71-
- host replication standby all scram-sha-256
72-
- host all all all scram-sha-256
70+
- local all all trust
71+
- hostssl all +cpo_pam 127.0.0.1/32 pam
72+
- host all all 127.0.0.1/32 scram-sha-256
73+
- hostssl all +cpo_pam ::1/128 pam
74+
- host all all ::1/128 scram-sha-256
75+
- local replication cpo_replication trust
76+
- hostssl replication cpo_replication all scram-sha-256
77+
- hostnossl all all all reject
78+
- hostssl all all all scram-sha-256
7379
#slots:
7480
# permanent_physical_1:
7581
# type: physical
@@ -95,9 +101,13 @@ cluster:
95101
synchronous_node_count: 1
96102
maximum_lag_on_failover: 33554432
97103

104+
#monitor:
105+
# image: "containers.cybertec.at/cybertec-pg-container/exporter:rocky9-18.1-2"
106+
107+
98108
#backup:
99109
# pgbackrest:
100-
# image: "docker.io/cybertecpostgresql/cybertec-pg-container:pgbackrest-17.0-1"
110+
# image: "containers.cybertec.at/cybertec-pg-container/pgbackrest:rocky9-18.1-1"
101111
# configuration:
102112
# secret: "xyz"
103113
# protection:
@@ -123,7 +133,11 @@ cluster:
123133
# id: "unique restore identifier"
124134
# repo: repo1
125135
# options:
126-
# target-time: "2023-01-02 03:04:05+06"
136+
# target-time: "2026-01-02 03:04:05+01"
137+
138+
#tde: # Only usable if you have an active PGEE subscription and access to the PGEE images, which must be entered under cluster.dockerImage.
139+
# enable: true
140+
# keybits: 256
127141

128142
#users: # Application/Robot users
129143
# appadmin:
@@ -179,7 +193,7 @@ cluster:
179193
# cluster: name-of-cluster-to-clone
180194

181195
#connectionPooler:
182-
# dockerImage: docker.io/cybertecpostgresql/cybertec-pg-container:pgbouncer-1.23-2
196+
# dockerImage: containers-cybertec.at/cybertec-pg-container/pgbouncer:rocky9-1.25-1
183197
# numberOfInstances: 2
184198
# mode: transaction # session/transaction mode pooling
185199
# schema: "pooler"

charts/postgres-operator/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: postgres-operator
3-
version: 0.8.0
4-
appVersion: 0.8.0
3+
version: 0.9.1
4+
appVersion: 0.9.0-1
55
home: https://github.com/cybertec-postgresql/cybertec-pg-operator
66
description: Postgres Operator creates and manages PostgreSQL clusters running in Kubernetes
77
keywords:

charts/postgres-operator/crds/operatorconfigurations.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ kind: CustomResourceDefinition
33
metadata:
44
name: operatorconfigurations.cpo.opensource.cybertec.at
55
labels:
6-
app.kubernetes.io/name: postgres-operator
6+
app.kubernetes.io/name: cpo
7+
app.kubernetes.io/version: {{ .Chart.Version }}
78
spec:
9+
conversion:
10+
strategy: None
811
group: cpo.opensource.cybertec.at
912
names:
1013
kind: OperatorConfiguration
@@ -336,6 +339,9 @@ spec:
336339
spilo_allow_privilege_escalation:
337340
type: boolean
338341
default: true
342+
container_readonly_root_filesystem:
343+
type: boolean
344+
default: false
339345
spilo_runasuser:
340346
type: integer
341347
spilo_runasgroup:
@@ -653,7 +659,7 @@ spec:
653659
default: "pooler"
654660
connection_pooler_image:
655661
type: string
656-
default: "registry.opensource.zalan.do/acid/pgbouncer:master-27"
662+
default: "containers.cybertec.at/cybertec-pg-container/pgbouncer:rocky9-1.25-2"
657663
connection_pooler_max_db_connections:
658664
type: integer
659665
default: 60

charts/postgres-operator/crds/postgresqls.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,19 @@ spec:
694694
type: string
695695
recoveryEventType:
696696
type: string
697+
tde:
698+
nullable: true
699+
properties:
700+
enable:
701+
type: boolean
702+
keybits:
703+
type: integer
704+
format: int32
705+
default: 128
706+
enum:
707+
- 128
708+
- 192
709+
- 256
697710
teamId:
698711
type: string
699712
tls:

0 commit comments

Comments
 (0)