File tree Expand file tree Collapse file tree
pkg/apis/pgv2.percona.com/v2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,8 +135,9 @@ func PGONamespace() string {
135135func VerifyImageValues (cluster * v1beta1.PostgresCluster ) error {
136136 var images []string
137137
138+ backupsEnabled := cluster .Spec .Backups .Enabled == nil || * cluster .Spec .Backups .Enabled
138139 // K8SPG-710: Image check will fail without a backup section in PostgresCluster
139- if cluster .BackupSpecFound () && PGBackRestContainerImage (cluster ) == "" {
140+ if cluster .BackupSpecFound () && backupsEnabled && PGBackRestContainerImage (cluster ) == "" {
140141 images = append (images , "crunchy-pgbackrest" )
141142 }
142143 if PGAdminContainerImage (cluster ) == "" &&
Original file line number Diff line number Diff line change @@ -703,9 +703,6 @@ func (b Backups) ToCrunchy(version string) crunchyv1beta1.Backups {
703703 if b .Enabled != nil && ! * b .Enabled {
704704 return crunchyv1beta1.Backups {
705705 Enabled : ptr .To (false ),
706- PGBackRest : crunchyv1beta1.PGBackRestArchive {
707- Image : b .PGBackRest .Image ,
708- },
709706 }
710707 }
711708
You can’t perform that action at this time.
0 commit comments