Skip to content

Commit

Permalink
Merge branch 'master' into slr-e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
bobz965 committed Jul 18, 2023
2 parents 3179884 + ed58b21 commit a315a67
Show file tree
Hide file tree
Showing 48 changed files with 1,557 additions and 186 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-arm64-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

env:
GO_VERSION: '1.20.5'

jobs:
build:
name: Build arm64
Expand All @@ -31,6 +34,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-kube-ovn-test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Build Test
on: workflow_dispatch

env:
GO_VERSION: ''

jobs:
build:
name: Build Test
Expand All @@ -10,6 +13,7 @@ jobs:
- uses: docker/setup-buildx-action@v2
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ concurrency:
cancel-in-progress: true

env:
GOSEC_VERSION: '2.15.0'
GO_VERSION: '1.20.5'
GOSEC_VERSION: '2.16.0'

jobs:
filter:
Expand All @@ -35,6 +36,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand All @@ -54,6 +56,10 @@ jobs:
- go.sum
EOF
sh hack/go-list.sh cmd/cni | while read f; do
echo "- $f" | tee -a $filter
done
sh hack/go-list.sh cmd/windows | while read f; do
echo "- $f" | tee -a $filter
done
Expand Down Expand Up @@ -107,14 +113,17 @@ jobs:
working-directory: ovn
run: |
# change hash type from dp_hash to hash with field src_ip
Invoke-WebRequest -Uri "https://github.com/kubeovn/ovn/commit/ae04d5e75d443500d537084d7db466513f63a7af.patch" -OutFile ..\ovn-01.patch
Invoke-WebRequest -Uri "https://github.com/kubeovn/ovn/commit/5a04402c01df1463b9e1edcbc1c5634793687140.patch" -OutFile ..\ovn-01.patch
# add support for windows
Invoke-WebRequest -Uri "https://github.com/kubeovn/ovn/commit/05e57b322758461c54d5cad030486c3d25942c73.patch" -OutFile ..\ovn-02.patch
Invoke-WebRequest -Uri "https://github.com/kubeovn/ovn/commit/2c85af7097e4c39d225c98dc68b55a964d0197d7.patch" -OutFile ..\ovn-02.patch
# set br-int controller to TCP 127.0.0.1:6653
Invoke-WebRequest -Uri "https://github.com/kubeovn/ovn/commit/0181b68be18e96bc4ca68a0c3e5082da34c9dcdd.patch" -OutFile ..\ovn-03.patch
Invoke-WebRequest -Uri "https://github.com/kubeovn/ovn/commit/24dcd9485ebb0f6c962250684fae512850cd9210.patch" -OutFile ..\ovn-03.patch
# ovn-controller: do not send GARP on localnet for Kube-OVN ports
Invoke-WebRequest -Uri "https://github.com/kubeovn/ovn/commit/30ff0ba51745f5ea1b38ed63e8cd8e0479d0f916.patch" -OutFile ..\ovn-04.patch
git apply ..\ovn-01.patch
git apply ..\ovn-02.patch
git apply ..\ovn-03.patch
git apply ..\ovn-04.patch
- name: Build PTHREADS4W
working-directory: pthreads4w\code
Expand Down Expand Up @@ -177,6 +186,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down
60 changes: 38 additions & 22 deletions .github/workflows/build-x86-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ concurrency:
cancel-in-progress: true

env:
GOSEC_VERSION: '2.15.0'
HELM_VERSION: v3.11.3
SUBMARINER_VERSION: '0.14.3'
GO_VERSION: '1.20.5'
GOSEC_VERSION: '2.16.0'
HELM_VERSION: v3.12.2
SUBMARINER_VERSION: '0.14.6'

jobs:
build-kube-ovn-base:
Expand Down Expand Up @@ -77,6 +78,7 @@ jobs:
- uses: docker/setup-buildx-action@v2
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -208,6 +210,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -241,6 +244,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: go.mod
check-latest: true
cache: false
Expand Down Expand Up @@ -312,6 +316,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand All @@ -329,7 +334,7 @@ jobs:
restore-keys: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-

- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down Expand Up @@ -461,6 +466,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand All @@ -478,7 +484,7 @@ jobs:
restore-keys: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-

- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down Expand Up @@ -606,6 +612,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand All @@ -623,7 +630,7 @@ jobs:
restore-keys: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-

- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down Expand Up @@ -744,7 +751,7 @@ jobs:
fi
- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down Expand Up @@ -866,6 +873,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand All @@ -883,7 +891,7 @@ jobs:
restore-keys: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-

- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down Expand Up @@ -1009,6 +1017,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand All @@ -1026,7 +1035,7 @@ jobs:
restore-keys: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-

- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down Expand Up @@ -1080,7 +1089,7 @@ jobs:
- uses: actions/checkout@v3

- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down Expand Up @@ -1116,7 +1125,7 @@ jobs:
- uses: actions/checkout@v3

- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down Expand Up @@ -1152,7 +1161,7 @@ jobs:
- uses: actions/checkout@v3

- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down Expand Up @@ -1190,7 +1199,7 @@ jobs:
- uses: actions/checkout@v3

- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down Expand Up @@ -1252,6 +1261,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand All @@ -1269,7 +1279,7 @@ jobs:
restore-keys: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-

- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down Expand Up @@ -1340,6 +1350,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand All @@ -1357,7 +1368,7 @@ jobs:
restore-keys: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-

- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down Expand Up @@ -1422,6 +1433,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand All @@ -1439,7 +1451,7 @@ jobs:
restore-keys: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-

- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down Expand Up @@ -1494,7 +1506,7 @@ jobs:
- uses: actions/checkout@v3

- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down Expand Up @@ -1574,6 +1586,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand All @@ -1591,7 +1604,7 @@ jobs:
restore-keys: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-

- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down Expand Up @@ -1686,6 +1699,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand All @@ -1703,7 +1717,7 @@ jobs:
restore-keys: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-

- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down Expand Up @@ -1879,7 +1893,7 @@ jobs:
fi
- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down Expand Up @@ -1962,6 +1976,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand All @@ -1979,7 +1994,7 @@ jobs:
restore-keys: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-

- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down Expand Up @@ -2053,6 +2068,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION || '' }}
go-version-file: ${{ env.E2E_DIR }}/go.mod
check-latest: true
cache: false
Expand All @@ -2070,7 +2086,7 @@ jobs:
restore-keys: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-

- name: Install kind
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
with:
version: v0.20.0
install_only: true
Expand Down
Loading

0 comments on commit a315a67

Please sign in to comment.