Skip to content

Commit 5659ba0

Browse files
committed
MINOR: prometheus: set controller port to default if not specified
if default controller port is not set, but prometheus is enabled, set it to default 6060 port
1 parent fa04038 commit 5659ba0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ func main() {
7575
if osArgs.PprofEnabled && osArgs.ControllerPort == 0 {
7676
osArgs.ControllerPort = 6060
7777
}
78+
if osArgs.PrometheusEnabled && osArgs.ControllerPort == 0 {
79+
osArgs.ControllerPort = 6060
80+
}
7881

7982
// Default annotations
8083
defaultBackendSvc := fmt.Sprint(osArgs.DefaultBackendService)

0 commit comments

Comments
 (0)