Add names for containerPorts

This commit is contained in:
Philipp Moeller 2025-07-14 11:45:55 +02:00
parent 51135b07db
commit 0cd3b1d497
No known key found for this signature in database
1 changed files with 6 additions and 0 deletions

View File

@ -43,8 +43,11 @@ const (
scalyrSidecarName = "scalyr-sidecar"
logicalBackupContainerName = "logical-backup"
connectionPoolerContainer = "connection-pooler"
patroniApiPortName = "patroni"
pgPort = 5432
pgPortName = "postgres"
operatorPort = 8080
operatorPortName = "postgres-operator"
)
type patroniDCS struct {
@ -696,14 +699,17 @@ func generateContainer(
{
ContainerPort: patroni.ApiPort,
Protocol: v1.ProtocolTCP,
Name: patroniApiPortName,
},
{
ContainerPort: pgPort,
Protocol: v1.ProtocolTCP,
Name: pgPortName,
},
{
ContainerPort: operatorPort,
Protocol: v1.ProtocolTCP,
Name: operatorPortName,
},
},
VolumeMounts: volumeMounts,