Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6519,6 +6519,11 @@ spec:
- repo
- stanza
type: object
x-kubernetes-validations:
- fieldPath: .repo
message: Only S3, GCS or Azure repos can be used as a pgBackRest
data source.
rule: '!has(self.repo.volume)'
postgresCluster:
description: |-
Defines a pgBackRest data source that can be used to pre-populate the PostgreSQL data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ type DataSource struct {
// The PGBackRest field is incompatible with the PostgresCluster field: only one
// data source can be used for pre-populating a new PostgreSQL cluster
// +optional
// +kubebuilder:validation:XValidation:rule="!has(self.repo.volume)", message="Only S3, GCS or Azure repos can be used as a pgBackRest data source.", fieldPath=".repo"
PGBackRest *PGBackRestDataSource `json:"pgbackrest,omitempty"`

// Defines a pgBackRest data source that can be used to pre-populate the PostgreSQL data
Expand Down