Skip to content

Commit 1347b96

Browse files
authored
feat(postgres): update postgres operator (#688)
* chore: update image vendoring Signed-off-by: David van der Spek <[email protected]> * init migrate to upstream helm chart Signed-off-by: David van der Spek <[email protected]> * cleanup values and values template Signed-off-by: David van der Spek <[email protected]> * update crds Signed-off-by: David van der Spek <[email protected]> * update images Signed-off-by: David van der Spek <[email protected]> * fix chart.yaml Signed-off-by: David van der Spek <[email protected]> * cleanup test yamls Signed-off-by: David van der Spek <[email protected]> * bump chart version Signed-off-by: David van der Spek <[email protected]> --------- Signed-off-by: David van der Spek <[email protected]>
1 parent 4c47a7e commit 1347b96

15 files changed

+159
-937
lines changed

postgres/helm/postgres/Chart.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dependencies:
2+
- name: postgres-operator
3+
repository: https://opensource.zalando.com/postgres-operator/charts/postgres-operator
4+
version: 1.10.0
5+
digest: sha256:8a4c3456823ccf13ae99787a7a9cbc5ea9de45219c4448de832ee14b1195142c
6+
generated: "2023-05-16T13:12:01.799753+02:00"

postgres/helm/postgres/Chart.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@ apiVersion: v2
22
name: postgres
33
description: A Helm chart for deploying the zalando postgres operator
44
type: application
5-
version: 0.2.11
6-
appVersion: "1.8.2"
5+
version: 0.2.13
6+
appVersion: "1.10.0"
7+
dependencies:
8+
- name: postgres-operator
9+
version: 1.10.0
10+
repository: https://opensource.zalando.com/postgres-operator/charts/postgres-operator
17 KB
Binary file not shown.

postgres/helm/postgres/crds/operatorconfigurations.yaml

Lines changed: 57 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ spec:
6868
type: string
6969
docker_image:
7070
type: string
71-
default: "registry.opensource.zalan.do/acid/spilo-14:2.1-p6"
71+
default: "ghcr.io/zalando/spilo-15:3.0-p1"
7272
enable_crd_registration:
7373
type: boolean
7474
default: true
@@ -88,6 +88,9 @@ spec:
8888
enable_spilo_wal_path_compat:
8989
type: boolean
9090
default: false
91+
enable_team_id_clustername_prefix:
92+
type: boolean
93+
default: false
9194
etcd_host:
9295
type: string
9396
default: ""
@@ -164,10 +167,10 @@ spec:
164167
type: string
165168
minimal_major_version:
166169
type: string
167-
default: "9.6"
170+
default: "11"
168171
target_major_version:
169172
type: string
170-
default: "14"
173+
default: "15"
171174
kubernetes:
172175
type: object
173176
properties:
@@ -211,6 +214,9 @@ spec:
211214
enable_pod_disruption_budget:
212215
type: boolean
213216
default: true
217+
enable_readiness_probe:
218+
type: boolean
219+
default: false
214220
enable_sidecars:
215221
type: boolean
216222
default: true
@@ -405,6 +411,9 @@ spec:
405411
pdb_name_format:
406412
type: string
407413
default: "postgres-{cluster}-pdb"
414+
pod_antiaffinity_preferred_during_scheduling:
415+
type: boolean
416+
default: false
408417
pod_antiaffinity_topology_key:
409418
type: string
410419
default: "kubernetes.io/hostname"
@@ -438,6 +447,9 @@ spec:
438447
secret_name_template:
439448
type: string
440449
default: "{username}.{cluster}.credentials.{tprkind}.{tprgroup}"
450+
share_pgsocket_with_sidecars:
451+
type: boolean
452+
default: false
441453
spilo_allow_privilege_escalation:
442454
type: boolean
443455
default: true
@@ -483,6 +495,12 @@ spec:
483495
type: string
484496
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
485497
default: "100Mi"
498+
max_cpu_request:
499+
type: string
500+
pattern: '^(\d+m|\d+(\.\d{1,3})?)$'
501+
max_memory_request:
502+
type: string
503+
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
486504
min_cpu_limit:
487505
type: string
488506
pattern: '^(\d+m|\d+(\.\d{1,3})?)$'
@@ -547,9 +565,15 @@ spec:
547565
- "Local"
548566
default: "Cluster"
549567
master_dns_name_format:
568+
type: string
569+
default: "{cluster}.{namespace}.{hostedzone}"
570+
master_legacy_dns_name_format:
550571
type: string
551572
default: "{cluster}.{team}.{hostedzone}"
552573
replica_dns_name_format:
574+
type: string
575+
default: "{cluster}-repl.{namespace}.{hostedzone}"
576+
replica_legacy_dns_name_format:
553577
type: string
554578
default: "{cluster}-repl.{team}.{hostedzone}"
555579
aws_or_gcp:
@@ -584,16 +608,38 @@ spec:
584608
logical_backup:
585609
type: object
586610
properties:
611+
logical_backup_azure_storage_account_name:
612+
type: string
613+
logical_backup_azure_storage_container:
614+
type: string
615+
logical_backup_azure_storage_account_key:
616+
type: string
617+
logical_backup_cpu_limit:
618+
type: string
619+
pattern: '^(\d+m|\d+(\.\d{1,3})?)$'
620+
logical_backup_cpu_request:
621+
type: string
622+
pattern: '^(\d+m|\d+(\.\d{1,3})?)$'
587623
logical_backup_docker_image:
588624
type: string
589-
default: "registry.opensource.zalan.do/acid/logical-backup:v1.8.2"
625+
default: "registry.opensource.zalan.do/acid/logical-backup:v1.10.0"
590626
logical_backup_google_application_credentials:
591627
type: string
592628
logical_backup_job_prefix:
593629
type: string
594630
default: "logical-backup-"
631+
logical_backup_memory_limit:
632+
type: string
633+
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
634+
logical_backup_memory_request:
635+
type: string
636+
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
595637
logical_backup_provider:
596638
type: string
639+
enum:
640+
- "az"
641+
- "gcs"
642+
- "s3"
597643
default: "s3"
598644
logical_backup_s3_access_key_id:
599645
type: string
@@ -724,7 +770,7 @@ spec:
724770
default: "pooler"
725771
connection_pooler_image:
726772
type: string
727-
default: "registry.opensource.zalan.do/acid/pgbouncer:master-22"
773+
default: "registry.opensource.zalan.do/acid/pgbouncer:master-27"
728774
connection_pooler_max_db_connections:
729775
type: integer
730776
default: 60
@@ -754,6 +800,12 @@ spec:
754800
type: string
755801
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
756802
default: "100Mi"
803+
patroni:
804+
type: object
805+
properties:
806+
enable_patroni_failsafe_mode:
807+
type: boolean
808+
default: false
757809
status:
758810
type: object
759811
additionalProperties:

postgres/helm/postgres/crds/postgresqls.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,10 @@ spec:
357357
items:
358358
type: string
359359
pattern: '^\ *((Mon|Tue|Wed|Thu|Fri|Sat|Sun):(2[0-3]|[01]?\d):([0-5]?\d)|(2[0-3]|[01]?\d):([0-5]?\d))-((Mon|Tue|Wed|Thu|Fri|Sat|Sun):(2[0-3]|[01]?\d):([0-5]?\d)|(2[0-3]|[01]?\d):([0-5]?\d))\ *$'
360+
masterServiceAnnotations:
361+
type: object
362+
additionalProperties:
363+
type: string
360364
nodeAffinity:
361365
type: object
362366
properties:
@@ -454,6 +458,8 @@ spec:
454458
patroni:
455459
type: object
456460
properties:
461+
failsafe_mode:
462+
type: boolean
457463
initdb:
458464
type: object
459465
additionalProperties:
@@ -499,13 +505,12 @@ spec:
499505
version:
500506
type: string
501507
enum:
502-
- "9.5"
503-
- "9.6"
504508
- "10"
505509
- "11"
506510
- "12"
507511
- "13"
508512
- "14"
513+
- "15"
509514
parameters:
510515
type: object
511516
additionalProperties:
@@ -535,6 +540,10 @@ spec:
535540
replicaLoadBalancer:
536541
type: boolean
537542
description: deprecated
543+
replicaServiceAnnotations:
544+
type: object
545+
additionalProperties:
546+
type: string
538547
resources:
539548
type: object
540549
properties:

postgres/helm/postgres/templates/clusterrolebindings.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)