Skip to content

Commit 5339b47

Browse files
committed
Require At Lead One Repo to be Configured
At least one pgBackRest repository must be defined within a PostgresCluster spec for the proper operation of any/all PostgreSQL clusters created by PGO. This commit therefore updates the validation for the "repos" section of the spec to require that at least one repo always be defined when creating or modifying a PostgresCluster. Issue: [ch12418]
1 parent b284ed4 commit 5339b47

File tree

3 files changed

+511
-508
lines changed

3 files changed

+511
-508
lines changed

config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,6 +1422,7 @@ spec:
14221422
required:
14231423
- name
14241424
type: object
1425+
minItems: 1
14251426
type: array
14261427
x-kubernetes-list-map-keys:
14271428
- name
@@ -2219,6 +2220,8 @@ spec:
22192220
- enabled
22202221
- repoName
22212222
type: object
2223+
required:
2224+
- repos
22222225
type: object
22232226
required:
22242227
- pgbackrest

0 commit comments

Comments
 (0)