Add names for containerPorts
This commit is contained in:
parent
51135b07db
commit
0cd3b1d497
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue