Skip to content

Commit

Permalink
Merge branch 'main' into improve-antctl-get-featuregates
Browse files Browse the repository at this point in the history
  • Loading branch information
antoninbas authored Sep 20, 2023
2 parents 3373af6 + cabf851 commit 2a34e84
Show file tree
Hide file tree
Showing 227 changed files with 11,895 additions and 1,949 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false

- name: Set up Go using version from go.mod
uses: actions/setup-go@v4
Expand Down
27 changes: 20 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ jobs:
name: Check whether tests need to be run based on diff
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false
- uses: antrea-io/has-changes@v2
id: check_diff
with:
Expand All @@ -32,7 +33,9 @@ jobs:
if: ${{ needs.check-changes.outputs.has_changes == 'yes' || github.event_name == 'push' }}
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
show-progress: false
- name: Build Antrea amd64 Docker image without pushing to registry
if: ${{ github.repository != 'antrea-io/antrea' || github.event_name != 'push' || github.ref != 'refs/heads/main' }}
run: |
Expand Down Expand Up @@ -62,7 +65,9 @@ jobs:
if: ${{ needs.check-changes.outputs.has_changes == 'yes' || github.event_name == 'push' }}
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
show-progress: false
- name: Build Antrea UBI8 Docker image without pushing to registry
if: ${{ github.repository != 'antrea-io/antrea' || github.event_name != 'push' || github.ref != 'refs/heads/main' }}
run: |
Expand All @@ -82,7 +87,9 @@ jobs:
if: ${{ needs.check-changes.outputs.has_changes == 'yes' || github.event_name == 'push' }}
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
show-progress: false
- name: Build Antrea Agent Simulator Docker image
run: make build-scale-simulator
- name: Push Antrea Agent Simulator Docker image to registry
Expand All @@ -99,7 +106,9 @@ jobs:
if: ${{ needs.check-changes.outputs.has_changes == 'yes' || github.event_name == 'push' }}
runs-on: [windows-2019]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
show-progress: false
- name: Build Antrea Windows Docker image
run: make build-windows
- name: Push Antrea Windows Docker image to registry
Expand All @@ -117,7 +126,9 @@ jobs:
if: ${{ needs.check-changes.outputs.has_changes == 'yes' || github.event_name == 'push' }}
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
show-progress: false
- name: Build antrea-mc-controller Docker image
run: make build-antrea-mc-controller
- name: Push antrea-mc-controller Docker image to registry
Expand All @@ -134,7 +145,9 @@ jobs:
if: ${{ needs.check-changes.outputs.has_changes == 'yes' || github.event_name == 'push' }}
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
show-progress: false
- name: Build flow-aggregator Docker image
run: make flow-aggregator-image
- name: Check flow-aggregator Docker image
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/build_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
runs-on: [ubuntu-latest]
needs: get-version
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
show-progress: false
- name: Build and push Antrea Ubuntu amd64 Docker image to registry
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -47,7 +49,9 @@ jobs:
runs-on: [ubuntu-latest]
needs: get-version
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
show-progress: false
- name: Build and push Antrea UBI8 amd64 Docker image to registry
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -62,7 +66,9 @@ jobs:
runs-on: [windows-2019]
needs: get-version
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
show-progress: false
- name: Build Antrea Windows Docker image and push to registry
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -78,7 +84,9 @@ jobs:
runs-on: [ubuntu-latest]
needs: get-version
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
show-progress: false
- name: Build antrea-mc-controller Docker image and push to registry
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -93,7 +101,9 @@ jobs:
runs-on: [ubuntu-latest]
needs: get-version
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
show-progress: false
- name: Build flow-aggregator Docker image and push to registry
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
show-progress: false

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down Expand Up @@ -62,7 +64,9 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
show-progress: false

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ jobs:
run: |
sudo apt-get clean
df -h
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ inputs.antrea-version }}
fetch-depth: 0
show-progress: false
- name: Check if it is a released version
id: check-release
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ jobs:
if: ${{ github.actor == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependencies') && contains(github.event.pull_request.labels.*.name, 'go') }}
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# Check out the pull request HEAD
ref: ${{ github.event.pull_request.head.sha }}
token: ${{ secrets.ANTREA_BOT_WRITE_PAT }}
show-progress: false
- name: Set up Go using version from go.mod
uses: actions/setup-go@v4
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/docker_update_base_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ jobs:
runs-on: windows-2019
steps:
- name: Check-out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ github.event.inputs.antrea-repository }}
ref: ${{ github.event.inputs.antrea-ref }}
show-progress: false
- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand Down
47 changes: 34 additions & 13 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ jobs:
name: Check whether tests need to be run based on diff
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false
- uses: antrea-io/has-changes@v2
id: check_diff
with:
Expand All @@ -36,7 +37,9 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- name: Check-out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up Go using version from go.mod
uses: actions/setup-go@v4
with:
Expand All @@ -55,11 +58,13 @@ jobs:
test-unit-windows:
needs: check-changes
if: ${{ needs.check-changes.outputs.has_changes == 'yes' }}
name: Unit test (windows-2019)
runs-on: [windows-2019]
name: Unit test (windows-2022)
runs-on: [windows-2022]
steps:
- name: Check-out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up Go using version from go.mod
uses: actions/setup-go@v4
with:
Expand All @@ -82,7 +87,9 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- name: Check-out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up Go using version from go.mod
uses: actions/setup-go@v4
with:
Expand Down Expand Up @@ -114,7 +121,9 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- name: Check-out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up Go using version from go.mod
uses: actions/setup-go@v4
with:
Expand All @@ -129,7 +138,9 @@ jobs:
runs-on: [macos-latest]
steps:
- name: Check-out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up Go using version from go.mod
uses: actions/setup-go@v4
with:
Expand All @@ -144,7 +155,9 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- name: Check-out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up Go using version from go.mod
uses: actions/setup-go@v4
with:
Expand All @@ -169,7 +182,9 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- name: Check-out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up Go using version from go.mod
uses: actions/setup-go@v4
with:
Expand All @@ -184,7 +199,9 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- name: Check-out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up Go using version from go.mod
uses: actions/setup-go@v4
with:
Expand All @@ -204,7 +221,9 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- name: Check-out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up Go using version from go.mod
uses: actions/setup-go@v4
with:
Expand Down Expand Up @@ -240,7 +259,9 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- name: Check-out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up Go using version from go.mod
uses: actions/setup-go@v4
with:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/golicense.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ jobs:
name: Check whether tests need to be run based on diff
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false
- uses: antrea-io/has-changes@v2
id: check_diff
with:
Expand All @@ -33,7 +34,9 @@ jobs:
if: ${{ needs.check-changes.outputs.has_changes == 'yes' || github.event_name != 'pull_request' }}
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
show-progress: false
- name: Set up Go using version from go.mod
uses: actions/setup-go@v4
with:
Expand Down
Loading

0 comments on commit 2a34e84

Please sign in to comment.