File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
internal/provider/adc/translator Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ func (t *Translator) TranslateIngress(tctx *provider.TranslateContext, obj *netw
191191}
192192
193193// translateEndpointSliceForIngress create upstream nodes from EndpointSlice
194- func (t * Translator ) translateEndpointSliceForIngress (weight int , endpointSlices []discoveryv1.EndpointSlice , servciePort * corev1.ServicePort ) adctypes.UpstreamNodes {
194+ func (t * Translator ) translateEndpointSliceForIngress (weight int , endpointSlices []discoveryv1.EndpointSlice , servicePort * corev1.ServicePort ) adctypes.UpstreamNodes {
195195 var nodes adctypes.UpstreamNodes
196196 if len (endpointSlices ) == 0 {
197197 return nodes
@@ -200,7 +200,7 @@ func (t *Translator) translateEndpointSliceForIngress(weight int, endpointSlices
200200 for _ , endpointSlice := range endpointSlices {
201201 for _ , port := range endpointSlice .Ports {
202202 // if the port number is specified, only use the matching port
203- if servciePort != nil && * port .Name != servciePort .Name {
203+ if servicePort != nil && * port .Name != servicePort .Name {
204204 continue
205205 }
206206 for _ , endpoint := range endpointSlice .Endpoints {
You can’t perform that action at this time.
0 commit comments