Skip to content

Commit 7c0c9ed

Browse files
committed
Add GetManagedPort and GetManagedScheme comment
1 parent 52de5da commit 7c0c9ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/v1/webspherelibertyapplication_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,7 @@ func (cr *WebSphereLibertyApplication) GetManageTLS() *bool {
929929
return cr.Spec.ManageTLS
930930
}
931931

932+
// GetManagedPort returns the application's CR managed port
932933
func (cr *WebSphereLibertyApplication) GetManagedPort() int {
933934
if cr.GetService() != nil && cr.GetService().GetPort() != 0 {
934935
return int(cr.GetService().GetPort())
@@ -939,6 +940,7 @@ func (cr *WebSphereLibertyApplication) GetManagedPort() int {
939940
return 9080
940941
}
941942

943+
// GetManagedScheme returns the application's CR managed scheme
942944
func (cr *WebSphereLibertyApplication) GetManagedScheme() corev1.URIScheme {
943945
if cr.GetManageTLS() == nil || *cr.GetManageTLS() {
944946
return corev1.URISchemeHTTPS

0 commit comments

Comments
 (0)