Skip to content

Commit 4948133

Browse files
committed
added parameter for pgee and pgbackrest to ensure, no upcoming failures regarding changed version and catalog
1 parent a9a0f78 commit 4948133

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/cluster/k8sres.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3014,6 +3014,9 @@ func ensurePath(file string, defaultDir string, defaultFile string) string {
30143014

30153015
func (c *Cluster) generatePgbackrestConfigmap() (*v1.ConfigMap, error) {
30163016
config := "[db]\npg1-path = /home/postgres/pgdata/pgroot/data\npg1-port = 5432\npg1-socket-path = /var/run/postgresql/\n"
3017+
if c.Postgresql.Spec.TDE != nil && c.Postgresql.Spec.TDE.Enable {
3018+
config += "pg-version-force=" + c.Spec.PgVersion + "\narchive-header-check=n\n"
3019+
}
30173020
config += "\n[global]\nlog-path = /home/postgres/pgdata/pgbackrest/log\nspool-path = /home/postgres/pgdata/pgbackrest/spool-path"
30183021

30193022
if c.Postgresql.Spec.Backup != nil && c.Postgresql.Spec.Backup.Pgbackrest != nil {
@@ -3110,6 +3113,9 @@ func (c *Cluster) generatePgbackrestRepoHostConfigmap() (*v1.ConfigMap, error) {
31103113
config += "\npg" + fmt.Sprintf("%d", j+1) + "-host-type = tls"
31113114
config += "\npg" + fmt.Sprintf("%d", j+1) + "-path = /home/postgres/pgdata/pgroot/data"
31123115
}
3116+
if c.Postgresql.Spec.TDE != nil && c.Postgresql.Spec.TDE.Enable {
3117+
config += "\npg-version-force=" + c.Spec.PgVersion + "\narchive-header-check=n\n"
3118+
}
31133119
}
31143120
}
31153121

0 commit comments

Comments
 (0)