Skip to content

Commit 52de5da

Browse files
committed
Add GetManagedScheme()
1 parent 1ec77d6 commit 52de5da

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

api/v1/webspherelibertyapplication_types.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,13 @@ func (cr *WebSphereLibertyApplication) GetManagedPort() int {
939939
return 9080
940940
}
941941

942+
func (cr *WebSphereLibertyApplication) GetManagedScheme() corev1.URIScheme {
943+
if cr.GetManageTLS() == nil || *cr.GetManageTLS() {
944+
return corev1.URISchemeHTTPS
945+
}
946+
return corev1.URISchemeHTTP
947+
}
948+
942949
// GetEnv returns slice of environment variables
943950
func (cr *WebSphereLibertyApplication) GetEnv() []corev1.EnvVar {
944951
return cr.Spec.Env

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module github.com/WASdev/websphere-liberty-operator
33
go 1.25
44

55
require (
6-
github.com/OpenLiberty/open-liberty-operator v0.8.1-0.20251128182900-1f63e2f61fec
7-
github.com/application-stacks/runtime-component-operator v1.0.0-20220602-0850.0.20251127222413-652a0c602935
6+
github.com/OpenLiberty/open-liberty-operator v0.8.1-0.20251201152243-dab780506cf2
7+
github.com/application-stacks/runtime-component-operator v1.0.0-20220602-0850.0.20251128205306-dde3d2b3b7a4
88
github.com/cert-manager/cert-manager v1.16.5
99
github.com/go-logr/logr v1.4.3
1010
github.com/openshift/api v0.0.0-20250710004639-926605d3338b

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ github.com/OpenLiberty/open-liberty-operator v0.8.1-0.20251120172046-ca2e00e6cd3
66
github.com/OpenLiberty/open-liberty-operator v0.8.1-0.20251120172046-ca2e00e6cd3b/go.mod h1:ghwA2Fvfq6YphR93lp8vKEJ7mLYT1+sEvI6re16Kn0c=
77
github.com/OpenLiberty/open-liberty-operator v0.8.1-0.20251128182900-1f63e2f61fec h1:Tb3aHxsM/zTQDY/h7VM/zhljzWeL6qtQKV/mOCbat+E=
88
github.com/OpenLiberty/open-liberty-operator v0.8.1-0.20251128182900-1f63e2f61fec/go.mod h1:5prsX6FB2G7joLn6A0xx5jjYMBtn1wDhdOutcBrcRUw=
9+
github.com/OpenLiberty/open-liberty-operator v0.8.1-0.20251201152243-dab780506cf2 h1:ZmHMFgOpQYqKGtAZjcVc7croGanpZVd5xTmYLgdAFFI=
10+
github.com/OpenLiberty/open-liberty-operator v0.8.1-0.20251201152243-dab780506cf2/go.mod h1:+r7gFflzy/kzTxP2jCQLzLo5XgVu4rFdW+VsMmLkpBU=
911
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
1012
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
1113
github.com/application-stacks/runtime-component-operator v1.0.0-20220602-0850.0.20251120112423-05f65c81aa36 h1:fweyU4TX3vSrbWecLy6FYjIgnoybPdoJbOiZsoV+iDw=
1214
github.com/application-stacks/runtime-component-operator v1.0.0-20220602-0850.0.20251120112423-05f65c81aa36/go.mod h1:Hs5AbE9J+rLM34IAc75X7dtxnrzFg2AvG1XYLcX/ApU=
1315
github.com/application-stacks/runtime-component-operator v1.0.0-20220602-0850.0.20251127222413-652a0c602935 h1:ec2HXWsnLK3EedMe+ub50/KIarTOm7oufDi9q5mgc8Y=
1416
github.com/application-stacks/runtime-component-operator v1.0.0-20220602-0850.0.20251127222413-652a0c602935/go.mod h1:Hs5AbE9J+rLM34IAc75X7dtxnrzFg2AvG1XYLcX/ApU=
17+
github.com/application-stacks/runtime-component-operator v1.0.0-20220602-0850.0.20251128205306-dde3d2b3b7a4 h1:nI0JouJAKXJnm3KBPVW5deVChcmojq+dxTKBMms0NWA=
18+
github.com/application-stacks/runtime-component-operator v1.0.0-20220602-0850.0.20251128205306-dde3d2b3b7a4/go.mod h1:Hs5AbE9J+rLM34IAc75X7dtxnrzFg2AvG1XYLcX/ApU=
1519
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
1620
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
1721
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=

0 commit comments

Comments
 (0)