Skip to content

Commit a3e793e

Browse files
committed
easy-login: ensure listening on the :port
1 parent 7a32a03 commit a3e793e

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

controller/deploy/operator/internal/controller/jumpstarter/jumpstarter_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ func (r *JumpstarterReconciler) createControllerDeployment(jumpstarter *operator
751751
Args: []string{
752752
"--leader-elect",
753753
"--health-probe-bind-address=:8081",
754-
"-metrics-bind-address=:8080",
754+
"--metrics-bind-address=:8080",
755755
},
756756
Env: envVars,
757757
VolumeMounts: volumeMounts,

controller/internal/service/login/service.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ func (s *Service) Start(ctx context.Context) error {
131131
})
132132

133133
port := getEnvOrDefault("LOGIN_SERVICE_PORT", defaultPort)
134+
// Ensure port has the ":" prefix for net.Listen format
135+
if port != "" && port[0] != ':' {
136+
port = ":" + port
137+
}
134138

135139
server := &http.Server{
136140
Addr: port,

0 commit comments

Comments
 (0)