Skip to content

Commit

Permalink
Merge pull request #636 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
PR : service-proxy and cicd fixes
  • Loading branch information
UltraInstinct14 authored Apr 12, 2024
2 parents e870597 + 1d9b1c0 commit 9f4719a
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-k3s-lb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
test-runner:
name: docker-k3s-sanity
runs-on: self-hosted
runs-on: [self-hosted, large]
if: github.repository == 'loxilb-io/loxilb'
&& github.event.inputs.tagName == ''
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/k0s-weave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
test-runner:
name: k0s-weave-sanity
runs-on: self-hosted
runs-on: [self-hosted, large]
if: github.repository == 'loxilb-io/loxilb'
&& github.event.inputs.tagName == ''
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/k3s-cilium-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
build:
name: k3s-cilium-cluster-sanity
runs-on: self-hosted
runs-on: [self-hosted, large]
steps:
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/k3s-flannel-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
build:
name: k3s-flannel-cluster-sanity
runs-on: self-hosted
runs-on: [self-hosted, large]
steps:
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/k3s-flannel-incluster-l2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
build:
name: k3s-flannel-incluster-l2-sanity
runs-on: self-hosted
runs-on: [self-hosted, large]
if: github.repository == 'loxilb-io/loxilb'
&& github.event.inputs.tagName == ''
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/k3s-flannel-incluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
build:
name: k3s-flannel-incluster-sanity
runs-on: self-hosted
runs-on: [self-hosted, large]
if: github.repository == 'loxilb-io/loxilb'
&& github.event.inputs.tagName == ''
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/k3s-flannel-ubuntu-22.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:
if: github.repository == 'loxilb-io/loxilb'
name: k3s-flannel-sanity-ubuntu-22
runs-on: self-hosted
runs-on: [self-hosted, large]
steps:
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/k3s-flannel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:
if: github.repository == 'loxilb-io/loxilb'
name: k3s-flannel-sanity
runs-on: self-hosted
runs-on: [self-hosted, large]
steps:
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/k8s-calico-ipvs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
test-runner:
name: k8s-calico-cluster-ipvs-sanity
runs-on: self-hosted
runs-on: [self-hosted, large]
if: github.repository == 'loxilb-io/loxilb'
&& github.event.inputs.tagName == ''
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/k8s-calico-ipvs2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
test-runner:
name: k8s-calico-cluster-ipvs2-sanity
runs-on: self-hosted
runs-on: [self-hosted, large]
if: github.repository == 'loxilb-io/loxilb'
&& github.event.inputs.tagName == ''
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/k8s-calico-ipvs3-ha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
test-runner:
name: k8s-calico-cluster-ipvs3-ha-sanity
runs-on: self-hosted
runs-on: [self-hosted, large]
if: github.repository == 'loxilb-io/loxilb'
&& github.event.inputs.tagName == ''
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/k8s-calico-ipvs3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
test-runner:
name: k8s-calico-cluster-ipvs3-sanity
runs-on: self-hosted
runs-on: [self-hosted, large]
if: github.repository == 'loxilb-io/loxilb'
&& github.event.inputs.tagName == ''
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/k8s-calico.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
build:
name: k8s-calico-cluster-sanity
runs-on: self-hosted
runs-on: [self-hosted, large]
if: github.repository == 'loxilb-io/loxilb'
&& github.event.inputs.tagName == ''
steps:
Expand Down
10 changes: 10 additions & 0 deletions pkg/loxinet/layer3.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,16 @@ func (l3 *L3H) IfaSelect(Obj string, addr net.IP, findAny bool) (int, net.IP, st
ifa := l3.IfaMap[key]

if ifa == nil {
if findAny {
for _, ifa := range l3.IfaMap {
if ifa.Key.Obj == "lo" {
continue
}
if len(ifa.Ifas) > 0 {
return 0, ifa.Ifas[0].IfaAddr, Obj
}
}
}
return L3ObjErr, net.IPv4(0, 0, 0, 0), ""
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/loxinet/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -1050,8 +1050,8 @@ func (p *Port) DP(work DpWorkT) int {
zn, _ := mh.zn.Zonefind(p.Zone)
if zn != nil {
match := false
for _, pe := range zn.Ports.portImap {
if pe.Name != p.Name {
for _, pe := range zn.Ports.portSmap {
if pe != nil && pe.Name != p.Name {
if pe.HInfo.MacAddr == p.HInfo.MacAddr {
match = true
break
Expand Down

0 comments on commit 9f4719a

Please sign in to comment.