Skip to content

Commit

Permalink
Upgrade istio dependencies to 1.18.1 (#385)
Browse files Browse the repository at this point in the history
* upgrade istio dependencies to 1.18.1
* fix goimports
* fix lint
* fix test
* address comments
* fix lint
* fix test
* remove istio-1.18.2 directory
* fix lint
Signed-off-by: huabing zhao <zhaohuabing@gmail.com>
  • Loading branch information
zhaohuabing committed Aug 20, 2023
1 parent b7439f7 commit 40fd51c
Show file tree
Hide file tree
Showing 43 changed files with 678 additions and 1,028 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: 1.19
go-version: '1.20'
- name: Build
run: go build -race ./internal/...
- name: Test
Expand All @@ -54,12 +54,11 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: 1.19
go-version: '1.20'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.1.0
uses: golangci/golangci-lint-action@v3.7.0
with:
args: --timeout=10m --tests="false"
version: v1.47.0
style-check:
name: style-check
runs-on: ubuntu-latest
Expand All @@ -69,7 +68,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: '1.20'
- name: Install dependencies
run: |
go version
Expand All @@ -83,7 +82,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: 1.19
go-version: '1.20'
- run: go mod tidy
- name: Check for changes in go.mod or go.sum
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-metaprotocol-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
- "**/*.md"

env:
ISTIO_VERSION: 1.18.2
ISTIO_VERSION: 1.18.1
ISTIO_NAMESPACE: istio-system
SCRIPTS_DIR: test/e2e/scripts
COMMON_DIR: test/e2e/common
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: '1.20'
- name: Install dependencies
run: |
go version
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/e2e-metaprotocol.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
- "**/*.md"

env:
ISTIO_VERSION: 1.18.2
ISTIO_VERSION: 1.18.1
ISTIO_NAMESPACE: istio-system
SCRIPTS_DIR: test/e2e/scripts
COMMON_DIR: test/e2e/common
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: '1.20'
- name: Install dependencies
run: |
go version
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: '1.20'
- name: Install dependencies
run: |
go version
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: '1.20'
- name: Install dependencies
run: |
go version
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: '1.20'
- name: Install dependencies
run: |
go version
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: '1.20'
- name: Install dependencies
run: |
go version
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: '1.20'
- name: Install dependencies
run: |
go version
Expand Down Expand Up @@ -210,7 +210,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: '1.20'
- name: Install dependencies
run: |
go version
Expand Down Expand Up @@ -239,7 +239,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: '1.20'
- name: Install dependencies
run: |
go version
Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: '1.20'
- name: Install dependencies
run: |
go version
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
- "**/*.md"

env:
ISTIO_VERSION: 1.18.2
ISTIO_VERSION: 1.18.1
ISTIO_NAMESPACE: istio-system
SCRIPTS_DIR: test/e2e/scripts
COMMON_DIR: test/e2e/common
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: '1.20'
- name: Install dependencies
run: |
go install golang.org/x/tools/cmd/goimports@latest
Expand Down
45 changes: 13 additions & 32 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
---
linters-settings:
depguard:
list-type: blacklist
packages:
# logging is allowed only by logutils.Log, logrus
# is allowed to use only in logutils package
- github.com/sirupsen/logrus
packages-with-error-message:
- github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
rules:
Main:
deny:
- pkg: github.com/gogo/protobuf
desc: "gogo/protobuf is deprecated, use golang/protobuf"
- pkg: gopkg.in/yaml.v2
desc: "use sigs.k8s.io/yaml instead"
- pkg: gopkg.in/yaml.v3
desc: "use sigs.k8s.io/yaml instead"
dupl:
threshold: 100
funlen:
Expand Down Expand Up @@ -80,39 +82,18 @@ linters-settings:
linters:
disable-all: true
enable:
- stylecheck
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- exportloopref
- funlen
- gochecknoinits
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- goprintffuncname
- goheader
- gocritic
- gosec
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- noctx
- nolintlint
- staticcheck
- structcheck
- stylecheck
- typecheck
- revive
- unconvert
- unparam
- unused
- varcheck
- whitespace

# don't enable:
# - asciicheck
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ demo-brpc:
uninstall-demo-brpc:
bash demo/uninstall-demo.sh brpc
test: style-check
$(GOMOD) tidy
$(GOTEST) -race `go list ./internal/... | grep -v e2e`
build: test
CGO_ENABLED=0 GOOS=$(IMAGE_OS) GOARCH=$(IMAGE_ARCH) $(GOBUILD) -o $(OUT)/$(IMAGE_ARCH)/$(IMAGE_OS)/$(IMAGE_NAME) $(MAIN_PATH)
Expand Down
1 change: 0 additions & 1 deletion cmd/aeraki/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ func main() {
server, err := bootstrap.NewServer(args)
if err != nil {
log.Fatalf("Failed to init Aeraki :%v", err)
os.Exit(1)
}
server.Start(stopChan)

Expand Down
2 changes: 1 addition & 1 deletion demo/install-demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ DEMO=$1
SCRIPTS_DIR=$BASEDIR/test/e2e/scripts

if [ -z "$AERAKI_TAG" ]; then
export AERAKI_TAG="1.4.0"
export AERAKI_TAG="1.4.1"
fi
bash ${SCRIPTS_DIR}/istio.sh
bash ${SCRIPTS_DIR}/addons.sh
Expand Down
6 changes: 3 additions & 3 deletions demo/metaprotocol-brpc/brpc-sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
metadata:
annotations:
sidecar.istio.io/bootstrapOverride: aeraki-bootstrap-config
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy-debug:1.4.0
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy:1.4.1
labels:
app: brpc-echo-server
version: v1
Expand Down Expand Up @@ -57,7 +57,7 @@ spec:
metadata:
annotations:
sidecar.istio.io/bootstrapOverride: aeraki-bootstrap-config
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy-debug:1.4.0
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy:1.4.1
labels:
app: brpc-echo-server
version: v2
Expand Down Expand Up @@ -86,7 +86,7 @@ spec:
metadata:
annotations:
sidecar.istio.io/bootstrapOverride: aeraki-bootstrap-config
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy-debug:1.4.0
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy:1.4.1
labels:
app: brpc-echo-client
spec:
Expand Down
8 changes: 4 additions & 4 deletions demo/metaprotocol-dubbo-app-level/dubbo-sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
metadata:
annotations:
sidecar.istio.io/bootstrapOverride: aeraki-bootstrap-config
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy-debug:1.4.0
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy:1.4.1
labels:
app: dubbo-sample-provider
version: v1
Expand Down Expand Up @@ -76,7 +76,7 @@ spec:
metadata:
annotations:
sidecar.istio.io/bootstrapOverride: aeraki-bootstrap-config
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy-debug:1.4.0
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy:1.4.1
labels:
app: dubbo-sample-provider
version: v2
Expand Down Expand Up @@ -112,7 +112,7 @@ spec:
metadata:
annotations:
sidecar.istio.io/bootstrapOverride: aeraki-bootstrap-config
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy-debug:1.4.0
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy:1.4.1
labels:
app: dubbo-sample-second-provider
version: v2
Expand All @@ -139,7 +139,7 @@ spec:
metadata:
annotations:
sidecar.istio.io/bootstrapOverride: aeraki-bootstrap-config
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy-debug:1.4.0
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy:1.4.1
labels:
app: dubbo-sample-consumer
spec:
Expand Down
8 changes: 4 additions & 4 deletions demo/metaprotocol-dubbo/dubbo-sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
metadata:
annotations:
sidecar.istio.io/bootstrapOverride: aeraki-bootstrap-config
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy-debug:1.4.0
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy:1.4.1
labels:
app: dubbo-sample-provider
version: v1
Expand Down Expand Up @@ -76,7 +76,7 @@ spec:
metadata:
annotations:
sidecar.istio.io/bootstrapOverride: aeraki-bootstrap-config
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy-debug:1.4.0
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy:1.4.1
labels:
app: dubbo-sample-provider
version: v2
Expand Down Expand Up @@ -112,7 +112,7 @@ spec:
metadata:
annotations:
sidecar.istio.io/bootstrapOverride: aeraki-bootstrap-config
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy-debug:1.4.0
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy:1.4.1
labels:
app: dubbo-sample-second-provider
version: v2
Expand All @@ -139,7 +139,7 @@ spec:
metadata:
annotations:
sidecar.istio.io/bootstrapOverride: aeraki-bootstrap-config
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy-debug:1.4.0
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy:1.4.1
labels:
app: dubbo-sample-consumer
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
metadata:
annotations:
sidecar.istio.io/bootstrapOverride: aeraki-bootstrap-config
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy-debug:1.4.0
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy:1.4.1
sidecar.istio.io/rewriteAppHTTPProbers: "false"
labels:
app: thrift-sample-server
Expand Down
6 changes: 3 additions & 3 deletions demo/metaprotocol-thrift/thrift-sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
metadata:
annotations:
sidecar.istio.io/bootstrapOverride: aeraki-bootstrap-config
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy-debug:1.4.0
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy:1.4.1
sidecar.istio.io/rewriteAppHTTPProbers: "false"
labels:
app: thrift-sample-server
Expand All @@ -55,7 +55,7 @@ spec:
metadata:
annotations:
sidecar.istio.io/bootstrapOverride: aeraki-bootstrap-config
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy-debug:1.4.0
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy:1.4.1
sidecar.istio.io/rewriteAppHTTPProbers: "false"
labels:
app: thrift-sample-server
Expand All @@ -82,7 +82,7 @@ spec:
metadata:
annotations:
sidecar.istio.io/bootstrapOverride: aeraki-bootstrap-config
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy-debug:1.4.0
sidecar.istio.io/proxyImage: ghcr.io/aeraki-mesh/meta-protocol-proxy:1.4.1
sidecar.istio.io/rewriteAppHTTPProbers: "false"
labels:
app: thrift-sample-client
Expand Down
Loading

0 comments on commit 40fd51c

Please sign in to comment.