This commit is contained in:
Philipp Moeller 2025-10-21 15:02:28 +02:00 committed by GitHub
commit bfd094ddc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -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,