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 17, 2025
1 parent 8a4e24b commit bf1f3de
Show file tree
Hide file tree
Showing 3,554 changed files with 482,124 additions and 224,503 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
14 changes: 7 additions & 7 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 @@ -57,7 +57,7 @@ jobs:
- 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 @@ -78,7 +78,7 @@ jobs:
- 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 @@ -102,7 +102,7 @@ jobs:
- 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 @@ -137,7 +137,7 @@ jobs:
- 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 @@ -158,7 +158,7 @@ jobs:
- 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
56 changes: 46 additions & 10 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 All @@ -41,13 +69,21 @@ linters-settings:
misspell:
ignore-words:
- mosquitto
revive:
rules:
- name: unused-parameter
severity: warning
disabled: true
- name: unused-receiver
severity: warning
disabled: true

linters:
disable-all: true
enable:
- goconst
- gofmt
- golint
- revive
- gosimple
- govet
- misspell
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 bf1f3de

Please sign in to comment.