Merge 0cd3b1d497 into 1af4c50ed0
This commit is contained in:
commit
bfd094ddc5
|
|
@ -42,8 +42,11 @@ const (
|
||||||
scalyrSidecarName = "scalyr-sidecar"
|
scalyrSidecarName = "scalyr-sidecar"
|
||||||
logicalBackupContainerName = "logical-backup"
|
logicalBackupContainerName = "logical-backup"
|
||||||
connectionPoolerContainer = "connection-pooler"
|
connectionPoolerContainer = "connection-pooler"
|
||||||
|
patroniApiPortName = "patroni"
|
||||||
pgPort = 5432
|
pgPort = 5432
|
||||||
|
pgPortName = "postgres"
|
||||||
operatorPort = 8080
|
operatorPort = 8080
|
||||||
|
operatorPortName = "postgres-operator"
|
||||||
)
|
)
|
||||||
|
|
||||||
type patroniDCS struct {
|
type patroniDCS struct {
|
||||||
|
|
@ -696,14 +699,17 @@ func generateContainer(
|
||||||
{
|
{
|
||||||
ContainerPort: patroni.ApiPort,
|
ContainerPort: patroni.ApiPort,
|
||||||
Protocol: v1.ProtocolTCP,
|
Protocol: v1.ProtocolTCP,
|
||||||
|
Name: patroniApiPortName,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ContainerPort: pgPort,
|
ContainerPort: pgPort,
|
||||||
Protocol: v1.ProtocolTCP,
|
Protocol: v1.ProtocolTCP,
|
||||||
|
Name: pgPortName,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ContainerPort: operatorPort,
|
ContainerPort: operatorPort,
|
||||||
Protocol: v1.ProtocolTCP,
|
Protocol: v1.ProtocolTCP,
|
||||||
|
Name: operatorPortName,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
VolumeMounts: volumeMounts,
|
VolumeMounts: volumeMounts,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue