Skip to content

Commit cc9074c

Browse files
authored
Bump operator to v1.13.0 (zalando#2729)
* bump operator to v1.13.0 * align configmap with CRD config * remove default from CRD config option additional_secret_mount_path * enable automatic major version upgrades by default
1 parent cb06a1e commit cc9074c

32 files changed

+235
-217
lines changed

.github/ISSUE_TEMPLATE/postgres-operator-issue-template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ assignees: ''
99

1010
Please, answer some short questions which should help us to understand your problem / question better?
1111

12-
- **Which image of the operator are you using?** e.g. ghcr.io/zalando/postgres-operator:v1.12.2
12+
- **Which image of the operator are you using?** e.g. ghcr.io/zalando/postgres-operator:v1.13.0
1313
- **Where do you run it - cloud or metal? Kubernetes or OpenShift?** [AWS K8s | GCP ... | Bare Metal K8s]
1414
- **Are you running Postgres Operator in production?** [yes | no]
1515
- **Type of issue?** [Bug report, question, feature request, etc.]

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ mocks:
7878
GO111MODULE=on go generate ./...
7979

8080
tools:
81-
GO111MODULE=on go get -d k8s.io/[email protected].10
81+
GO111MODULE=on go get -d k8s.io/[email protected].12
8282
GO111MODULE=on go install github.com/golang/mock/[email protected]
8383
GO111MODULE=on go mod tidy
8484

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,13 @@ production for over five years.
5757

5858
| Release | Postgres versions | K8s versions | Golang |
5959
| :-------- | :---------------: | :---------------: | :-----: |
60-
| v1.13.0* | 12 → 16 | 1.27+ | 1.22.5 |
61-
| v1.12.2 | 11 → 16 | 1.27+ | 1.22.3 |
60+
| v1.13.0 | 12 → 16 | 1.27+ | 1.22.5 |
61+
| v1.12.0 | 11 → 16 | 1.27+ | 1.22.3 |
6262
| v1.11.0 | 11 → 16 | 1.27+ | 1.21.7 |
6363
| v1.10.1 | 10 → 15 | 1.21+ | 1.19.8 |
6464
| v1.9.0 | 10 → 15 | 1.21+ | 1.18.9 |
6565
| v1.8.2 | 9.5 → 14 | 1.20 → 1.24 | 1.17.4 |
6666

67-
*not yet released
68-
6967
## Getting started
7068

7169
For a quick first impression follow the instructions of this

charts/postgres-operator-ui/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: postgres-operator-ui
3-
version: 1.12.2
4-
appVersion: 1.12.2
3+
version: 1.13.0
4+
appVersion: 1.13.0
55
home: https://github.com/zalando/postgres-operator
66
description: Postgres Operator UI provides a graphical interface for a convenient database-as-a-service user experience
77
keywords:

charts/postgres-operator-ui/index.yaml

+26-26
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ apiVersion: v1
22
entries:
33
postgres-operator-ui:
44
- apiVersion: v2
5-
appVersion: 1.12.2
6-
created: "2024-06-14T10:31:52.852963015+02:00"
5+
appVersion: 1.13.0
6+
created: "2024-08-21T18:55:36.524305158+02:00"
77
description: Postgres Operator UI provides a graphical interface for a convenient
88
database-as-a-service user experience
9-
digest: cbcef400c23ccece27d97369ad629278265c013e0a45c0b7f33e7568a082fedd
9+
digest: e0444e516b50f82002d1a733527813c51759a627cefdd1005cea73659f824ea8
1010
home: https://github.com/zalando/postgres-operator
1111
keywords:
1212
- postgres
@@ -22,14 +22,14 @@ entries:
2222
sources:
2323
- https://github.com/zalando/postgres-operator
2424
urls:
25-
- postgres-operator-ui-1.12.2.tgz
26-
version: 1.12.2
25+
- postgres-operator-ui-1.13.0.tgz
26+
version: 1.13.0
2727
- apiVersion: v2
28-
appVersion: 1.11.0
29-
created: "2024-06-14T10:31:52.849576888+02:00"
28+
appVersion: 1.12.2
29+
created: "2024-08-21T18:55:36.521875733+02:00"
3030
description: Postgres Operator UI provides a graphical interface for a convenient
3131
database-as-a-service user experience
32-
digest: a45f2284045c2a9a79750a36997386444f39b01ac722b17c84b431457577a3a2
32+
digest: cbcef400c23ccece27d97369ad629278265c013e0a45c0b7f33e7568a082fedd
3333
home: https://github.com/zalando/postgres-operator
3434
keywords:
3535
- postgres
@@ -45,14 +45,14 @@ entries:
4545
sources:
4646
- https://github.com/zalando/postgres-operator
4747
urls:
48-
- postgres-operator-ui-1.11.0.tgz
49-
version: 1.11.0
48+
- postgres-operator-ui-1.12.2.tgz
49+
version: 1.12.2
5050
- apiVersion: v2
51-
appVersion: 1.10.1
52-
created: "2024-06-14T10:31:52.843219526+02:00"
51+
appVersion: 1.11.0
52+
created: "2024-08-21T18:55:36.51959105+02:00"
5353
description: Postgres Operator UI provides a graphical interface for a convenient
5454
database-as-a-service user experience
55-
digest: 2e5e7a82aebee519ec57c6243eb8735124aa4585a3a19c66ffd69638fbeb11ce
55+
digest: a45f2284045c2a9a79750a36997386444f39b01ac722b17c84b431457577a3a2
5656
home: https://github.com/zalando/postgres-operator
5757
keywords:
5858
- postgres
@@ -68,14 +68,14 @@ entries:
6868
sources:
6969
- https://github.com/zalando/postgres-operator
7070
urls:
71-
- postgres-operator-ui-1.10.1.tgz
72-
version: 1.10.1
71+
- postgres-operator-ui-1.11.0.tgz
72+
version: 1.11.0
7373
- apiVersion: v2
74-
appVersion: 1.9.0
75-
created: "2024-06-14T10:31:52.857573553+02:00"
74+
appVersion: 1.10.1
75+
created: "2024-08-21T18:55:36.516518177+02:00"
7676
description: Postgres Operator UI provides a graphical interface for a convenient
7777
database-as-a-service user experience
78-
digest: df434af6c8b697fe0631017ecc25e3c79e125361ae6622347cea41a545153bdc
78+
digest: 2e5e7a82aebee519ec57c6243eb8735124aa4585a3a19c66ffd69638fbeb11ce
7979
home: https://github.com/zalando/postgres-operator
8080
keywords:
8181
- postgres
@@ -91,14 +91,14 @@ entries:
9191
sources:
9292
- https://github.com/zalando/postgres-operator
9393
urls:
94-
- postgres-operator-ui-1.9.0.tgz
95-
version: 1.9.0
94+
- postgres-operator-ui-1.10.1.tgz
95+
version: 1.10.1
9696
- apiVersion: v2
97-
appVersion: 1.8.2
98-
created: "2024-06-14T10:31:52.855335455+02:00"
97+
appVersion: 1.9.0
98+
created: "2024-08-21T18:55:36.52712908+02:00"
9999
description: Postgres Operator UI provides a graphical interface for a convenient
100100
database-as-a-service user experience
101-
digest: fbfc90fa8fd007a08a7c02e0ec9108bb8282cbb42b8c976d88f2193d6edff30c
101+
digest: df434af6c8b697fe0631017ecc25e3c79e125361ae6622347cea41a545153bdc
102102
home: https://github.com/zalando/postgres-operator
103103
keywords:
104104
- postgres
@@ -114,6 +114,6 @@ entries:
114114
sources:
115115
- https://github.com/zalando/postgres-operator
116116
urls:
117-
- postgres-operator-ui-1.8.2.tgz
118-
version: 1.8.2
119-
generated: "2024-06-14T10:31:52.839113675+02:00"
117+
- postgres-operator-ui-1.9.0.tgz
118+
version: 1.9.0
119+
generated: "2024-08-21T18:55:36.512456099+02:00"
Binary file not shown.
Binary file not shown.

charts/postgres-operator-ui/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ replicaCount: 1
88
image:
99
registry: ghcr.io
1010
repository: zalando/postgres-operator-ui
11-
tag: v1.12.2
11+
tag: v1.13.0
1212
pullPolicy: "IfNotPresent"
1313

1414
# Optionally specify an array of imagePullSecrets.

charts/postgres-operator/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: postgres-operator
3-
version: 1.12.2
4-
appVersion: 1.12.2
3+
version: 1.13.0
4+
appVersion: 1.13.0
55
home: https://github.com/zalando/postgres-operator
66
description: Postgres Operator creates and manages PostgreSQL clusters running in Kubernetes
77
keywords:

charts/postgres-operator/crds/operatorconfigurations.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ spec:
160160
properties:
161161
major_version_upgrade_mode:
162162
type: string
163-
default: "off"
163+
default: "manual"
164164
major_version_upgrade_team_allow_list:
165165
type: array
166166
items:
@@ -472,7 +472,6 @@ spec:
472472
type: string
473473
additional_secret_mount_path:
474474
type: string
475-
default: "/meta/credentials"
476475
aws_region:
477476
type: string
478477
default: "eu-central-1"
@@ -511,7 +510,7 @@ spec:
511510
pattern: '^(\d+m|\d+(\.\d{1,3})?)$'
512511
logical_backup_docker_image:
513512
type: string
514-
default: "ghcr.io/zalando/postgres-operator/logical-backup:v1.12.2"
513+
default: "ghcr.io/zalando/postgres-operator/logical-backup:v1.13.0"
515514
logical_backup_google_application_credentials:
516515
type: string
517516
logical_backup_job_prefix:

charts/postgres-operator/index.yaml

+26-26
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ apiVersion: v1
22
entries:
33
postgres-operator:
44
- apiVersion: v2
5-
appVersion: 1.12.2
6-
created: "2024-06-14T10:30:44.071387784+02:00"
5+
appVersion: 1.13.0
6+
created: "2024-08-21T18:54:43.160735116+02:00"
77
description: Postgres Operator creates and manages PostgreSQL clusters running
88
in Kubernetes
9-
digest: 65858d14a40d7fd90c32bd9fc60021acc9555c161079f43a365c70171eaf21d8
9+
digest: a839601689aea0a7e6bc0712a5244d435683cf3314c95794097ff08540e1dfef
1010
home: https://github.com/zalando/postgres-operator
1111
keywords:
1212
- postgres
@@ -21,14 +21,14 @@ entries:
2121
sources:
2222
- https://github.com/zalando/postgres-operator
2323
urls:
24-
- postgres-operator-1.12.2.tgz
25-
version: 1.12.2
24+
- postgres-operator-1.13.0.tgz
25+
version: 1.13.0
2626
- apiVersion: v2
27-
appVersion: 1.11.0
28-
created: "2024-06-14T10:30:44.065353504+02:00"
27+
appVersion: 1.12.2
28+
created: "2024-08-21T18:54:43.152249286+02:00"
2929
description: Postgres Operator creates and manages PostgreSQL clusters running
3030
in Kubernetes
31-
digest: 3914b5e117bda0834f05c9207f007e2ac372864cf6e86dcc2e1362bbe46c14d9
31+
digest: 65858d14a40d7fd90c32bd9fc60021acc9555c161079f43a365c70171eaf21d8
3232
home: https://github.com/zalando/postgres-operator
3333
keywords:
3434
- postgres
@@ -43,14 +43,14 @@ entries:
4343
sources:
4444
- https://github.com/zalando/postgres-operator
4545
urls:
46-
- postgres-operator-1.11.0.tgz
47-
version: 1.11.0
46+
- postgres-operator-1.12.2.tgz
47+
version: 1.12.2
4848
- apiVersion: v2
49-
appVersion: 1.10.1
50-
created: "2024-06-14T10:30:44.059080224+02:00"
49+
appVersion: 1.11.0
50+
created: "2024-08-21T18:54:43.145837894+02:00"
5151
description: Postgres Operator creates and manages PostgreSQL clusters running
5252
in Kubernetes
53-
digest: cc3baa41753da92466223d0b334df27e79c882296577b404a8e9071411fcf19c
53+
digest: 3914b5e117bda0834f05c9207f007e2ac372864cf6e86dcc2e1362bbe46c14d9
5454
home: https://github.com/zalando/postgres-operator
5555
keywords:
5656
- postgres
@@ -65,14 +65,14 @@ entries:
6565
sources:
6666
- https://github.com/zalando/postgres-operator
6767
urls:
68-
- postgres-operator-1.10.1.tgz
69-
version: 1.10.1
68+
- postgres-operator-1.11.0.tgz
69+
version: 1.11.0
7070
- apiVersion: v2
71-
appVersion: 1.9.0
72-
created: "2024-06-14T10:30:44.084760658+02:00"
71+
appVersion: 1.10.1
72+
created: "2024-08-21T18:54:43.139552116+02:00"
7373
description: Postgres Operator creates and manages PostgreSQL clusters running
7474
in Kubernetes
75-
digest: 64df90c898ca591eb3a330328173ffaadfbf9ddd474d8c42ed143edc9e3f4276
75+
digest: cc3baa41753da92466223d0b334df27e79c882296577b404a8e9071411fcf19c
7676
home: https://github.com/zalando/postgres-operator
7777
keywords:
7878
- postgres
@@ -87,14 +87,14 @@ entries:
8787
sources:
8888
- https://github.com/zalando/postgres-operator
8989
urls:
90-
- postgres-operator-1.9.0.tgz
91-
version: 1.9.0
90+
- postgres-operator-1.10.1.tgz
91+
version: 1.10.1
9292
- apiVersion: v2
93-
appVersion: 1.8.2
94-
created: "2024-06-14T10:30:44.077744166+02:00"
93+
appVersion: 1.9.0
94+
created: "2024-08-21T18:54:43.168490032+02:00"
9595
description: Postgres Operator creates and manages PostgreSQL clusters running
9696
in Kubernetes
97-
digest: f77ffad2e98b72a621e5527015cf607935d3ed688f10ba4b626435acb9631b5b
97+
digest: 64df90c898ca591eb3a330328173ffaadfbf9ddd474d8c42ed143edc9e3f4276
9898
home: https://github.com/zalando/postgres-operator
9999
keywords:
100100
- postgres
@@ -109,6 +109,6 @@ entries:
109109
sources:
110110
- https://github.com/zalando/postgres-operator
111111
urls:
112-
- postgres-operator-1.8.2.tgz
113-
version: 1.8.2
114-
generated: "2024-06-14T10:30:44.052436544+02:00"
112+
- postgres-operator-1.9.0.tgz
113+
version: 1.9.0
114+
generated: "2024-08-21T18:54:43.126871802+02:00"
Binary file not shown.
Binary file not shown.

charts/postgres-operator/values.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
image:
22
registry: ghcr.io
33
repository: zalando/postgres-operator
4-
tag: v1.12.2
4+
tag: v1.13.0
55
pullPolicy: "IfNotPresent"
66

77
# Optionally specify an array of imagePullSecrets.
@@ -83,7 +83,7 @@ configUsers:
8383

8484
configMajorVersionUpgrade:
8585
# "off": no upgrade, "manual": manifest triggers action, "full": minimal version violation triggers too
86-
major_version_upgrade_mode: "off"
86+
major_version_upgrade_mode: "manual"
8787
# upgrades will only be carried out for clusters of listed teams when mode is "off"
8888
# major_version_upgrade_team_allow_list:
8989
# - acid
@@ -364,7 +364,7 @@ configLogicalBackup:
364364
# logical_backup_memory_request: ""
365365

366366
# image for pods of the logical backup job (example runs pg_dumpall)
367-
logical_backup_docker_image: "ghcr.io/zalando/postgres-operator/logical-backup:v1.12.2"
367+
logical_backup_docker_image: "ghcr.io/zalando/postgres-operator/logical-backup:v1.13.0"
368368
# path of google cloud service account json file
369369
# logical_backup_google_application_credentials: ""
370370

docs/administrator.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ the manifest. Still, a rolling update would be triggered updating the
7070
script will notice the version mismatch and start the old version again.
7171

7272
In this scenario the major version could then be run by a user from within the
73-
master pod. Exec into the container and run:
73+
primary pod. Exec into the container and run:
7474
```bash
7575
python3 /scripts/inplace_upgrade.py N
7676
```
@@ -81,6 +81,9 @@ upgrade procedure, refer to the [corresponding PR in Spilo](https://github.com/z
8181

8282
When `major_version_upgrade_mode` is set to `manual` the operator will run
8383
the upgrade script for you after the manifest is updated and pods are rotated.
84+
It is also possible to define `maintenanceWindows` in the Postgres manifest to
85+
better control when such automated upgrades should take place after increasing
86+
the version.
8487

8588
## Non-default cluster domain
8689

@@ -1452,7 +1455,7 @@ make docker
14521455
14531456
# build in image in minikube docker env
14541457
eval $(minikube docker-env)
1455-
docker build -t ghcr.io/zalando/postgres-operator-ui:v1.12.2 .
1458+
docker build -t ghcr.io/zalando/postgres-operator-ui:v1.13.0 .
14561459
14571460
# apply UI manifests next to a running Postgres Operator
14581461
kubectl apply -f manifests/

docs/reference/cluster_manifest.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ These parameters are grouped directly under the `spec` key in the manifest.
115115
inaccessible from outside of the Kubernetes cluster.
116116

117117
* **maintenanceWindows**
118-
a list defines specific time frames when major version upgrades are permitted
119-
to occur, restricting major version upgrades to these designated periods only.
120-
Accepted formats include "01:00-06:00" for daily maintenance windows or
118+
a list which defines specific time frames when certain maintenance operations
119+
are allowed. So far, it is only implemented for automatic major version
120+
upgrades. Accepted formats are "01:00-06:00" for daily maintenance windows or
121121
"Sat:00:00-04:00" for specific days, with all times in UTC.
122122

123123
* **users**

docs/reference/operator_parameters.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ CRD-configuration, they are grouped under the `major_version_upgrade` key.
242242
`"manual"` = manifest triggers action,
243243
`"full"` = manifest and minimal version violation trigger upgrade.
244244
Note, that with all three modes increasing the version in the manifest will
245-
trigger a rolling update of the pods. The default is `"off"`.
245+
trigger a rolling update of the pods. The default is `"manual"`.
246246

247247
* **major_version_upgrade_team_allow_list**
248248
Upgrades will only be carried out for clusters of listed teams when mode is
@@ -822,7 +822,7 @@ grouped under the `logical_backup` key.
822822
runs `pg_dumpall` on a replica if possible and uploads compressed results to
823823
an S3 bucket under the key `/<configured-s3-bucket-prefix>/<pg_cluster_name>/<cluster_k8s_uuid>/logical_backups`.
824824
The default image is the same image built with the Zalando-internal CI
825-
pipeline. Default: "ghcr.io/zalando/postgres-operator/logical-backup:v1.12.2"
825+
pipeline. Default: "ghcr.io/zalando/postgres-operator/logical-backup:v1.13.0"
826826

827827
* **logical_backup_google_application_credentials**
828828
Specifies the path of the google cloud service account json file. Default is empty.

docs/user.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ If you need to define a `nodeAffinity` for all your Postgres clusters use the
758758
## In-place major version upgrade
759759

760760
Starting with Spilo 13, operator supports in-place major version upgrade to a
761-
higher major version (e.g. from PG 11 to PG 13). To trigger the upgrade,
761+
higher major version (e.g. from PG 14 to PG 16). To trigger the upgrade,
762762
simply increase the version in the manifest. It is your responsibility to test
763763
your applications against the new version before the upgrade; downgrading is
764764
not supported. The easiest way to do so is to try the upgrade on the cloned

0 commit comments

Comments
 (0)