Skip to content

Commit cf5ec6f

Browse files
committed
update Helm-Chart
1 parent 8717d70 commit cf5ec6f

6 files changed

Lines changed: 665 additions & 429 deletions

File tree

setup/helm/operator/Chart.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
apiVersion: v2
2-
type: application
32
name: postgres-operator
4-
description: Helm-Chart for setting up an instance of CYBERTEC's Postgres operator (CPO).
5-
6-
appVersion: 0.9.0-2
7-
version: 0.9.0-2
8-
# Note: Make sure you have defined the correct version, based on the crd used
3+
version: 0.9.1
4+
appVersion: 0.9.1
5+
home: https://github.com/cybertec-postgresql/cybertec-pg-operator
6+
description: Postgres Operator creates and manages PostgreSQL clusters running in Kubernetes
7+
keywords:
8+
- postgres
9+
- operator
10+
- cloud-native
11+
- patroni
12+
maintainers:
13+
- name: CYBERTEC PostgreSQL International GmbH
14+
sources:
15+
- https://github.com/cybertec-postgresql/cybertec-pg-operator

setup/helm/operator/crds/operatorconfiguration.crd.yaml

Lines changed: 55 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
name: operatorconfigurations.cpo.opensource.cybertec.at
5+
labels:
6+
app.kubernetes.io/name: cpo
7+
app.kubernetes.io/version: 0.9.1
58
spec:
9+
conversion:
10+
strategy: None
611
group: cpo.opensource.cybertec.at
712
names:
813
kind: OperatorConfiguration
@@ -66,7 +71,7 @@ spec:
6671
type: string
6772
docker_image:
6873
type: string
69-
default: "ghcr.io/zalando/spilo-15:2.1-p9"
74+
default: "{{ .Values.operatorSettings.postgresImage }}"
7075
enable_crd_registration:
7176
type: boolean
7277
default: true
@@ -149,7 +154,7 @@ spec:
149154
default: 180
150155
replication_username:
151156
type: string
152-
default: standby
157+
default: cpo_replication
153158
super_username:
154159
type: string
155160
default: postgres
@@ -165,10 +170,10 @@ spec:
165170
type: string
166171
minimal_major_version:
167172
type: string
168-
default: "11"
173+
default: "13"
169174
target_major_version:
170175
type: string
171-
default: "15"
176+
default: "18"
172177
kubernetes:
173178
type: object
174179
properties:
@@ -184,10 +189,10 @@ spec:
184189
additionalProperties:
185190
type: string
186191
default:
187-
application: spilo
192+
application: cpo
188193
cluster_name_label:
189194
type: string
190-
default: "cluster-name"
195+
default: "cluster.cpo.opensource.cybertec.at/name"
191196
custom_pod_annotations:
192197
type: object
193198
additionalProperties:
@@ -214,7 +219,7 @@ spec:
214219
default: true
215220
enable_readiness_probe:
216221
type: boolean
217-
default: false
222+
default: true
218223
enable_liveness_probe:
219224
type: boolean
220225
default: false
@@ -279,6 +284,19 @@ spec:
279284
pdb_name_format:
280285
type: string
281286
default: "postgres-{cluster}-pdb"
287+
persistent_volume_claim_retention_policy:
288+
type: object
289+
properties:
290+
when_deleted:
291+
type: string
292+
enum:
293+
- "delete"
294+
- "retain"
295+
when_scaled:
296+
type: string
297+
enum:
298+
- "delete"
299+
- "retain"
282300
pod_antiaffinity_preferred_during_scheduling:
283301
type: boolean
284302
default: false
@@ -299,13 +317,13 @@ spec:
299317
type: string
300318
pod_role_label:
301319
type: string
302-
default: "spilo-role"
320+
default: "member.cpo.opensource.cybertec.at/role"
303321
pod_service_account_definition:
304322
type: string
305323
default: ""
306324
pod_service_account_name:
307325
type: string
308-
default: "postgres-pod"
326+
default: "cpo-pod"
309327
pod_service_account_role_binding_definition:
310328
type: string
311329
default: ""
@@ -493,7 +511,7 @@ spec:
493511
pattern: '^(\d+m|\d+(\.\d{1,3})?)$'
494512
logical_backup_docker_image:
495513
type: string
496-
default: "registry.opensource.zalan.do/acid/logical-backup:v1.9.0"
514+
default: "registry.opensource.zalan.do/acid/logical-backup:v1.10.1"
497515
logical_backup_google_application_credentials:
498516
type: string
499517
logical_backup_job_prefix:
@@ -565,7 +583,7 @@ spec:
565583
default: "https://info.example.com/oauth2/tokeninfo?access_token= uid realm=/employees"
566584
pam_role_name:
567585
type: string
568-
default: "zalandos"
586+
default: "cpo_pam"
569587
postgres_superuser_teams:
570588
type: array
571589
items:
@@ -641,7 +659,7 @@ spec:
641659
default: "pooler"
642660
connection_pooler_image:
643661
type: string
644-
default: "registry.opensource.zalan.do/acid/pgbouncer:master-26"
662+
default: "containers.cybertec.at/cybertec-pg-container/pgbouncer:rocky9-1.25-2"
645663
connection_pooler_max_db_connections:
646664
type: integer
647665
default: 60
@@ -671,10 +689,34 @@ spec:
671689
type: string
672690
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
673691
default: "100Mi"
692+
multisite:
693+
type: object
694+
properties:
695+
enable:
696+
type: boolean
697+
site:
698+
type: string
699+
etcd:
700+
type: object
701+
properties:
702+
hosts:
703+
type: string
704+
user:
705+
type: string
706+
password:
707+
type: string
708+
protocol:
709+
type: string
710+
certSecretName:
711+
type: string
712+
ttl:
713+
type: integer
714+
retry_timeout:
715+
type: integer
674716
patroni:
675717
type: object
676718
properties:
677-
failsafe_mode:
719+
enable_patroni_failsafe_mode:
678720
type: boolean
679721
default: false
680722
status:

0 commit comments

Comments
 (0)