Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit a43cb3b

Browse files
author
odacremolbap
committed
fix naming typo
1 parent 2c0a877 commit a43cb3b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/reconciler/memorybroker/reconciler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ func (r *reconciler) ReconcileKind(ctx context.Context, mb *eventingv1alpha1.Mem
6666
}
6767

6868
// Set address to the Broker service.
69-
mb.Status.SetAddress(getSericeAddress(brokerSvc))
69+
mb.Status.SetAddress(getServiceAddress(brokerSvc))
7070

7171
return nil
7272
}
7373

74-
func getSericeAddress(svc *corev1.Service) *apis.URL {
74+
func getServiceAddress(svc *corev1.Service) *apis.URL {
7575
var port string
7676
if svc.Spec.Ports[0].Port != 80 {
7777
port = ":" + strconv.Itoa(int(svc.Spec.Ports[0].Port))

pkg/reconciler/redisbroker/reconciler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ func (r *reconciler) ReconcileKind(ctx context.Context, rb *eventingv1alpha1.Red
112112
}
113113

114114
// Set address to the Broker service.
115-
rb.Status.SetAddress(getSericeAddress(brokerSvc))
115+
rb.Status.SetAddress(getServiceAddress(brokerSvc))
116116

117117
return nil
118118
}
119119

120-
func getSericeAddress(svc *v1.Service) *apis.URL {
120+
func getServiceAddress(svc *v1.Service) *apis.URL {
121121
var port string
122122
if svc.Spec.Ports[0].Port != 80 {
123123
port = ":" + strconv.Itoa(int(svc.Spec.Ports[0].Port))

0 commit comments

Comments
 (0)