You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/apis/pgv2.percona.com/v2/perconapgcluster_types.go
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -476,6 +476,8 @@ type Patroni struct {
476
476
Versionstring`json:"version"`
477
477
}
478
478
479
+
// Backups struct.
480
+
// +kubebuilder:validation:XValidation:rule="(has(self.enabled) && self.enabled == false) || size(self.pgbackrest.repos) > 0",message="At least one repository must be configured when backups are enabled"
479
481
typeBackupsstruct {
480
482
Enabled*bool`json:"enabled,omitempty"`
481
483
@@ -562,7 +564,6 @@ type PGBackRestArchive struct {
0 commit comments