Skip to content

Commit 2544873

Browse files
author
abhisbyk
committed
Correcting port for the db service
Signed-off-by: abhisbyk <[email protected]>
1 parent b67e434 commit 2544873

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

controllers/database/singleinstancedatabase_controller.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,8 +914,13 @@ func (r *SingleInstanceDatabaseReconciler) instantiateSVCSpec(m *dbapi.SingleIns
914914
Spec: corev1.ServiceSpec{
915915
Ports: []corev1.ServicePort{
916916
{
917-
Name: "listener",
918-
Port: 1521,
917+
Name: "listener",
918+
Port: func() int32 {
919+
if m.Spec.EnableTCPS {
920+
return int32(m.Spec.TcpsPort)
921+
}
922+
return int32(1521)
923+
}(),
919924
Protocol: corev1.ProtocolTCP,
920925
},
921926
{

0 commit comments

Comments
 (0)