Skip to content

Commit 3b3a9e8

Browse files
authored
fix: correct typos and comments in endpoint_slice.go (#5958)
- Fix typo: inteface -> interface - Fix getIPPortMappingWithNoTargets function comment Signed-off-by: Huagong Wang <wanghuagong@kylinos.cn>
1 parent 438279a commit 3b3a9e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/controller/endpoint_slice.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func (c *Controller) handleUpdateEndpointSlice(key string) error {
133133

134134
// If Kube-OVN is running in secondary CNI mode, the endpoint IPs should be derived from the network attachment definitions
135135
// This overwrite can be removed if endpoint construction accounts for network attachment IP address
136-
// TODO: Identify how endpoints are constructed, by default, endpoints has IP address of eth0 inteface
136+
// TODO: Identify how endpoints are constructed, by default, endpoints has IP address of eth0 interface
137137
if c.config.EnableNonPrimaryCNI && serviceHasSelector(svc) {
138138
var pods []*v1.Pod
139139
if pods, err = c.podsLister.Pods(namespace).List(labels.Set(svc.Spec.Selector).AsSelector()); err != nil {
@@ -747,7 +747,7 @@ func (c *Controller) getIPPortMappingWithTargets(endpointSlices []*discoveryv1.E
747747
return mapping
748748
}
749749

750-
// getIPPortMappingWithTargets returns the IPPortMapping for endpoints with no targets
750+
// getIPPortMappingWithNoTargets returns the IPPortMapping for endpoints with no targets
751751
func (c *Controller) getIPPortMappingWithNoTargets(endpointSlices []*discoveryv1.EndpointSlice, pods []*v1.Pod, checkVip string) IPPortMapping {
752752
mapping := make(IPPortMapping)
753753

0 commit comments

Comments
 (0)