Skip to content

Commit 516e89b

Browse files
committed
Fix typo
1 parent d68de0f commit 516e89b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/framework/controller/predicate/service.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ func (ServiceChangedPredicate) Update(e event.UpdateEvent) bool {
5050
newPortSet := make(map[portInfo]struct{})
5151

5252
for i := range len(oldSvc.Spec.Ports) {
53-
var oldAppProtocol, newAppProtocl string
53+
var oldAppProtocol, newAppProtocol string
5454

5555
if oldPorts[i].AppProtocol != nil {
5656
oldAppProtocol = *oldPorts[i].AppProtocol
5757
}
5858

5959
if newPorts[i].AppProtocol != nil {
60-
newAppProtocl = *newPorts[i].AppProtocol
60+
newAppProtocol = *newPorts[i].AppProtocol
6161
}
6262

6363
oldPortSet[portInfo{
@@ -68,7 +68,7 @@ func (ServiceChangedPredicate) Update(e event.UpdateEvent) bool {
6868
newPortSet[portInfo{
6969
servicePort: newPorts[i].Port,
7070
targetPort: newPorts[i].TargetPort,
71-
appProtocol: newAppProtocl,
71+
appProtocol: newAppProtocol,
7272
}] = struct{}{}
7373
}
7474

0 commit comments

Comments
 (0)