Skip to content

Commit

Permalink
Upgrade K8s and Go versions
Browse files Browse the repository at this point in the history
Signed-off-by: WillardHu <[email protected]>
  • Loading branch information
WillardHu committed Jan 16, 2025
1 parent 8a4e24b commit 9070bf2
Show file tree
Hide file tree
Showing 3,562 changed files with 498,389 additions and 224,559 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
26 changes: 13 additions & 13 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
verify-and-lint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: Verify codegen/vendor/licenses, do lint
env:
GOPATH: ${{ github.workspace }}
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
go-version: 1.22.9

- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -51,13 +51,13 @@ jobs:
working-directory: ${{ env.CODE_DIR }}

build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: build gm and lc
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
go-version: 1.22.9

- uses: actions/cache@v2
with:
Expand All @@ -72,13 +72,13 @@ jobs:
- run: make build # without verify

basic_test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: 'Unit test, integration test edge (noop now)'
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
go-version: 1.22.9

- uses: actions/cache@v2
with:
Expand All @@ -96,13 +96,13 @@ jobs:
- run: ': to be added'

e2e_test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: 'E2e test'
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
go-version: 1.22.9

- uses: actions/cache@v2
with:
Expand All @@ -114,7 +114,7 @@ jobs:
# since this ubuntu-latest os has already kind/kubectl/jq(see https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2004-Readme.md),
# but kind v0.19.0 has different api with v0.18.0, so here to reinstall kind v0.18.0
sudo apt-get install -y jq
go get sigs.k8s.io/kind@$(curl -s https://api.github.com/repos/kubernetes-sigs/kind/releases/97518847 | jq -r .tag_name)
go install sigs.k8s.io/kind@$(curl -s https://api.github.com/repos/kubernetes-sigs/kind/releases/97518847 | jq -r .tag_name)
kind version
type kubectl || {
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
Expand All @@ -131,13 +131,13 @@ jobs:
- run: make e2e

docker_build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: docker image build for gm/lc
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
go-version: 1.22.9

- uses: actions/cache@v2
with:
Expand All @@ -152,13 +152,13 @@ jobs:
- run: make images

docker_cross_build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: docker cross build images for gm/lc/kb
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
go-version: 1.22.9

- uses: actions/cache@v2
with:
Expand Down
46 changes: 37 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,49 @@ run:
# exit code when at least one issue was found, default is 1
issues-exit-code: 1

# which dirs to skip: issues from them won't be reported;
# can use regexp here: generated.*, regexp is applied on full path;
# default value is empty list, but default dirs are skipped independently
# from this option's value (see skip-dirs-use-default).
# "/" will be replaced by current OS file path separator to properly work
# on Windows.
skip-dirs:
issues:
# Which dirs to exclude: issues from them won't be reported.
# Can use regexp here: `generated.*`, regexp is applied on full path,
# including the path prefix if one is set.
# Default dirs are skipped independently of this option's value (see exclude-dirs-use-default).
# "/" will be replaced by current OS file path separator to properly work on Windows.
# Default: []
exclude-dirs:
- vendor
- fake
- externalversions
exclude-dirs-use-default: true

# output configuration options
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: colored-line-number
# The formats used to render issues.
# Formats:
# - `colored-line-number`
# - `line-number`
# - `json`
# - `colored-tab`
# - `tab`
# - `html`
# - `checkstyle`
# - `code-climate`
# - `junit-xml`
# - `junit-xml-extended`
# - `github-actions`
# - `teamcity`
# - `sarif`
# Output path can be either `stdout`, `stderr` or path to the file to write to.
#
# For the CLI flag (`--out-format`), multiple formats can be specified by separating them by comma.
# The output can be specified for each of them by separating format name and path by colon symbol.
# Example: "--out-format=checkstyle:report.xml,json:stdout,colored-line-number"
# The CLI flag (`--out-format`) override the configuration file.
#
# Default:
# formats:
# - format: colored-line-number
# path: stdout
formats:
- format: colored-line-number

# print lines of code with issue, default is true
print-issued-lines: true
Expand Down
2 changes: 1 addition & 1 deletion LICENSES/LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
================================================================================
= Sedna licensed under: =
= KubeEdge licensed under: =

Apache License
Version 2.0, January 2004
Expand Down
16 changes: 0 additions & 16 deletions LICENSES/vendor/github.com/PuerkitoBio/purell/LICENSE

This file was deleted.

31 changes: 0 additions & 31 deletions LICENSES/vendor/github.com/PuerkitoBio/urlesc/LICENSE

This file was deleted.

24 changes: 24 additions & 0 deletions LICENSES/vendor/github.com/beorn7/perks/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions LICENSES/vendor/github.com/blang/semver/v4/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions LICENSES/vendor/github.com/cespare/xxhash/v2/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9070bf2

Please sign in to comment.