Skip to content

Commit 34e10bc

Browse files
committed
Fix an issue where exposing the Coherence management port without specifying a port number incorrectly exposed the metrics port instead
1 parent b7025a7 commit 34e10bc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ _output/
3232
pkg/**/test-report.xml
3333
test/**/test-report.xml
3434
/temp/
35+
/etc/sdk/*

pkg/apis/coherence/v1/coherence_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ func (in *CoherenceSpec) GetManagementPort() int32 {
368368
case in == nil:
369369
return 0
370370
case in.Management == nil || in.Management.Port == nil:
371-
return DefaultMetricsPort
371+
return DefaultManagementPort
372372
default:
373373
return *in.Management.Port
374374
}

0 commit comments

Comments
 (0)