Skip to content

Commit 2988975

Browse files
authored
Add service annotation for topology aware routing (#570)
* Add service annotation for topology aware routing * Use RCO helper for service annotations
1 parent 4e82b52 commit 2988975

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

controllers/semeru_compiler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ func reconcileSemeruService(svc *corev1.Service, wlva *wlv1.WebSphereLibertyAppl
406406
var timeout int32 = 86400
407407
svc.Labels = getLabels(wlva)
408408
svc.Spec.Selector = getSelectors(wlva)
409+
utils.CustomizeServiceAnnotations(svc)
409410
if len(svc.Spec.Ports) == 0 {
410411
svc.Spec.Ports = append(svc.Spec.Ports, corev1.ServicePort{})
411412
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/WASdev/websphere-liberty-operator
33
go 1.21
44

55
require (
6-
github.com/application-stacks/runtime-component-operator v1.0.0-20220602-0850.0.20231027224121-66e9415767a9
6+
github.com/application-stacks/runtime-component-operator v1.0.0-20220602-0850.0.20231030173230-96eb9e69774c
77
github.com/cert-manager/cert-manager v1.10.2
88
github.com/go-logr/logr v1.2.4
99
github.com/openshift/api v0.0.0-20230928134114-673ed0cfc7f1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym
5454
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
5555
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho=
5656
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
57-
github.com/application-stacks/runtime-component-operator v1.0.0-20220602-0850.0.20231027224121-66e9415767a9 h1:5NILNbUpUUW0eLTUSiDbTe01a/tDCb3sRXwfSl6v460=
58-
github.com/application-stacks/runtime-component-operator v1.0.0-20220602-0850.0.20231027224121-66e9415767a9/go.mod h1:Yhxg+reeWEw4OnPUsX3ZYogS3RbtmC0M20TzX/w4N0I=
57+
github.com/application-stacks/runtime-component-operator v1.0.0-20220602-0850.0.20231030173230-96eb9e69774c h1:47PqbNZUUYKccRv+1dW8kcdLx7muWvTa4i5BTOc52rQ=
58+
github.com/application-stacks/runtime-component-operator v1.0.0-20220602-0850.0.20231030173230-96eb9e69774c/go.mod h1:Yhxg+reeWEw4OnPUsX3ZYogS3RbtmC0M20TzX/w4N0I=
5959
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
6060
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
6161
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=

0 commit comments

Comments
 (0)