@@ -689,10 +689,10 @@ func (p *Postgres) ToUnstructuredZalandoPostgresql(z *zalando.Postgresql, c *cor
689
689
// finally, overwrite the (special to us) shared buffer parameter
690
690
setSharedBufferSize (z .Spec .PostgresqlParam .Parameters , p .Spec .Size .SharedBuffer )
691
691
692
- z .Spec .Resources .ResourceRequests .CPU = p .Spec .Size .CPU
693
- z .Spec .Resources .ResourceRequests .Memory = p .Spec .Size .Memory
694
- z .Spec .Resources .ResourceLimits .CPU = p .Spec .Size .CPU
695
- z .Spec .Resources .ResourceLimits .Memory = p .Spec .Size .Memory
692
+ z .Spec .Resources .ResourceRequests .CPU = pointer . String ( p .Spec .Size .CPU )
693
+ z .Spec .Resources .ResourceRequests .Memory = pointer . String ( p .Spec .Size .Memory )
694
+ z .Spec .Resources .ResourceLimits .CPU = pointer . String ( p .Spec .Size .CPU )
695
+ z .Spec .Resources .ResourceLimits .Memory = pointer . String ( p .Spec .Size .Memory )
696
696
z .Spec .TeamID = p .generateTeamID ()
697
697
z .Spec .Volume .Size = p .Spec .Size .StorageSize
698
698
z .Spec .Volume .StorageClass = sc
@@ -779,12 +779,9 @@ func (p *Postgres) ToUnstructuredZalandoPostgresql(z *zalando.Postgresql, c *cor
779
779
} else {
780
780
// overwrite connection info
781
781
z .Spec .StandbyCluster = & zalando.StandbyDescription {
782
- StandbyMethod : StandbyMethod ,
783
- StandbyHost : p .Spec .PostgresConnection .ConnectionIP ,
784
- StandbyPort : strconv .FormatInt (int64 (p .Spec .PostgresConnection .ConnectionPort ), 10 ),
785
- StandbySecretName : "standby." + p .ToPeripheralResourceName () + ".credentials" ,
786
- S3WalPath : "" ,
787
- StandbyApplicationName : p .ObjectMeta .Name ,
782
+ StandbyHost : p .Spec .PostgresConnection .ConnectionIP ,
783
+ StandbyPort : strconv .FormatInt (int64 (p .Spec .PostgresConnection .ConnectionPort ), 10 ),
784
+ // S3WalPath: "",
788
785
}
789
786
}
790
787
0 commit comments