Skip to content

Commit ee1898f

Browse files
authored
fix cve (#800)
* fix cve * remove inactivated linters * fix golangci-lint * fix go * fix python * fix sample cve * fix ci
1 parent 613a7bd commit ee1898f

19 files changed

+125
-120
lines changed

.github/workflows/bundle-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ jobs:
4949
username: ${{ secrets.DOCKER_USER }}
5050
password: ${{ secrets.DOCKER_PASSWORD }}
5151

52-
- name: Set up GO 1.22.12
52+
- name: Set up GO 1.23.7
5353
uses: actions/setup-go@v1
5454
with:
55-
go-version: 1.22.12
55+
go-version: 1.23.7
5656
id: go
5757

5858
- name: InstallKubebuilder
@@ -180,10 +180,10 @@ jobs:
180180
username: ${{ secrets.DOCKER_USER }}
181181
password: ${{ secrets.DOCKER_PASSWORD }}
182182

183-
- name: Set up GO 1.22.12
183+
- name: Set up GO 1.23.7
184184
uses: actions/setup-go@v1
185185
with:
186-
go-version: 1.22.12
186+
go-version: 1.23.7
187187
id: go
188188

189189
- name: InstallKubebuilder

.github/workflows/olm-verify.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
- name: checkout
3535
uses: actions/checkout@v2
3636

37-
- name: Set up GO 1.22.12
37+
- name: Set up GO 1.23.7
3838
uses: actions/setup-go@v1
3939
with:
40-
go-version: 1.22.12
40+
go-version: 1.23.7
4141
id: go
4242

4343
- name: InstallKubebuilder

.github/workflows/project.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
go-version: [1.21.9, 1.22.12]
21+
go-version: [1.22.12, 1.23.7]
2222
steps:
2323
- name: Free Disk Space (Ubuntu)
2424
uses: jlumbroso/[email protected]
@@ -51,7 +51,7 @@ jobs:
5151
5252
- name: InstallTool
5353
run: |
54-
wget -O - -q https://github.com/raw/golangci/golangci-lint/master/install.sh| sh -s v1.57.2
54+
wget -O - -q https://github.com/raw/golangci/golangci-lint/master/install.sh| sh -s v1.64.7
5555
./bin/golangci-lint --version
5656
5757
- name: validate controller-gen

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ jobs:
3737
username: ${{ secrets.DOCKER_USER }}
3838
password: ${{ secrets.DOCKER_PASSWORD }}
3939

40-
- name: Set up GO 1.22.12
40+
- name: Set up GO 1.23.7
4141
uses: actions/setup-go@v1
4242
with:
43-
go-version: 1.22.12
43+
go-version: 1.23.7
4444
id: go
4545

4646
- name: InstallKubebuilder

.github/workflows/test-helm-charts.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262

6363
- uses: actions/setup-python@v2
6464
with:
65-
python-version: 3.7
65+
python-version: 3.9
6666

6767
- name: Set up chart-testing
6868
uses: helm/[email protected]
@@ -83,11 +83,11 @@ jobs:
8383
run: hack/kind-cluster-build.sh --name chart-testing -c 1 -v 10 --k8sVersion v1.23.17
8484
if: steps.list-changed.outputs.changed == 'true'
8585

86-
- name: Set up GO 1.22.12
86+
- name: Set up GO 1.23.7
8787
if: steps.list-changed.outputs.changed == 'true'
8888
uses: actions/setup-go@v1
8989
with:
90-
go-version: 1.22.12
90+
go-version: 1.23.7
9191
id: go
9292

9393
- name: setup kubebuilder 3.6.0

.github/workflows/trivy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
repository: ${{github.event.pull_request.head.repo.full_name}}
3535
ref: ${{ github.event.pull_request.head.sha }}
3636

37-
- name: Set up GO 1.22.12
37+
- name: Set up GO 1.23.7
3838
uses: actions/setup-go@v1
3939
with:
40-
go-version: 1.22.12
40+
go-version: 1.23.7
4141
id: go
4242

4343
- name: InstallKubebuilder

.github/workflows/trivy_scheduled_master.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ jobs:
4545
repository: ${{github.event.pull_request.head.repo.full_name}}
4646
ref: ${{ github.event.pull_request.head.sha }}
4747

48-
- name: Set up GO 1.22.12
48+
- name: Set up GO 1.23.7
4949
uses: actions/setup-go@v1
5050
with:
51-
go-version: 1.22.12
51+
go-version: 1.23.7
5252
id: go
5353

5454
- name: InstallKubebuilder

.golangci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ linters:
77
disable-all: true
88
enable:
99
- bodyclose
10-
- deadcode
10+
# - deadcode
1111
- goimports
12-
- golint
12+
# - golint
1313
- gosimple
1414
- govet
1515
- ineffassign
16-
- interfacer
16+
# - interfacer
1717
- misspell
1818
- staticcheck
19-
- structcheck
19+
# - structcheck
2020
- stylecheck
2121
- typecheck
2222
- unconvert
2323
- unparam
24-
- varcheck
24+
# - varcheck
2525
- prealloc

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.22.12-bullseye as builder
2+
FROM golang:1.23.7-bullseye as builder
33

44
WORKDIR /workspace/api
55
COPY api/ .

api/go.mod

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
module github.com/streamnative/function-mesh/api
22

3-
go 1.21
3+
go 1.23.7
44

55
require (
6-
k8s.io/api v0.29.4
7-
k8s.io/apimachinery v0.29.4
6+
k8s.io/api v0.30.9
7+
k8s.io/apimachinery v0.30.9
88
k8s.io/autoscaler/vertical-pod-autoscaler v0.11.0
9-
k8s.io/client-go v0.29.4
10-
sigs.k8s.io/controller-runtime v0.17.3
9+
k8s.io/client-go v0.30.9
10+
sigs.k8s.io/controller-runtime v0.18.6
1111
)
1212

1313
require (
1414
github.com/davecgh/go-spew v1.1.1 // indirect
1515
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
1616
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
17-
github.com/go-logr/logr v1.4.1 // indirect
17+
github.com/go-logr/logr v1.4.2 // indirect
1818
github.com/go-openapi/jsonpointer v0.19.6 // indirect
1919
github.com/go-openapi/jsonreference v0.20.2 // indirect
2020
github.com/go-openapi/swag v0.22.3 // indirect
@@ -30,12 +30,12 @@ require (
3030
github.com/modern-go/reflect2 v1.0.2 // indirect
3131
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
3232
github.com/pkg/errors v0.9.1 // indirect
33-
golang.org/x/net v0.33.0 // indirect
33+
golang.org/x/net v0.37.0 // indirect
3434
golang.org/x/oauth2 v0.12.0 // indirect
35-
golang.org/x/sys v0.28.0 // indirect
36-
golang.org/x/term v0.27.0 // indirect
37-
golang.org/x/text v0.21.0 // indirect
38-
golang.org/x/time v0.4.0 // indirect
35+
golang.org/x/sys v0.31.0 // indirect
36+
golang.org/x/term v0.30.0 // indirect
37+
golang.org/x/text v0.23.0 // indirect
38+
golang.org/x/time v0.3.0 // indirect
3939
google.golang.org/appengine v1.6.7 // indirect
4040
google.golang.org/protobuf v1.33.0 // indirect
4141
gopkg.in/inf.v0 v0.9.1 // indirect

api/go.sum

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ github.com/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxER
66
github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc=
77
github.com/evanphx/json-patch v4.12.0+incompatible h1:4onqiflcdA9EOZ4RxV643DvftH5pOlLGNtQ5lPWQu84=
88
github.com/evanphx/json-patch v4.12.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
9-
github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ=
10-
github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
9+
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
10+
github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
1111
github.com/go-openapi/jsonpointer v0.19.6 h1:eCs3fxoIi3Wh6vtgmLTOjdhSpiqphQ+DaPn38N2ZdrE=
1212
github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs=
1313
github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE=
@@ -55,10 +55,10 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G
5555
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
5656
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=
5757
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
58-
github.com/onsi/ginkgo/v2 v2.14.0 h1:vSmGj2Z5YPb9JwCWT6z6ihcUvDhuXLc3sJiqd3jMKAY=
59-
github.com/onsi/ginkgo/v2 v2.14.0/go.mod h1:JkUdW7JkN0V6rFvsHcJ478egV3XH9NxpD27Hal/PhZw=
60-
github.com/onsi/gomega v1.30.0 h1:hvMK7xYz4D3HapigLTeGdId/NcfQx1VHMJc60ew99+8=
61-
github.com/onsi/gomega v1.30.0/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ=
58+
github.com/onsi/ginkgo/v2 v2.17.1 h1:V++EzdbhI4ZV4ev0UTIj0PzhzOcReJFyJaLjtSF55M8=
59+
github.com/onsi/ginkgo/v2 v2.17.1/go.mod h1:llBI3WDLL9Z6taip6f33H76YcWtJv+7R3HigUjbIBOs=
60+
github.com/onsi/gomega v1.32.0 h1:JRYU78fJ1LPxlckP6Txi/EYqJvjtMrDC04/MM5XRHPk=
61+
github.com/onsi/gomega v1.32.0/go.mod h1:a4x4gW6Pz2yK1MAmvluYme5lvYTn61afQ2ETw/8n4Lg=
6262
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
6363
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
6464
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
@@ -88,8 +88,8 @@ golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR
8888
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
8989
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
9090
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
91-
golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
92-
golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
91+
golang.org/x/net v0.37.0 h1:1zLorHbz+LYj7MQlSf1+2tPIIgibq2eL5xkrGk6f+2c=
92+
golang.org/x/net v0.37.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8=
9393
golang.org/x/oauth2 v0.12.0 h1:smVPGxink+n1ZI5pkQa8y6fZT0RW0MgCO5bFpepy4B4=
9494
golang.org/x/oauth2 v0.12.0/go.mod h1:A74bZ3aGXgCY0qaIC9Ahg6Lglin4AMAco8cIv9baba4=
9595
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -98,17 +98,17 @@ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJ
9898
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
9999
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
100100
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
101-
golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=
102-
golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
103-
golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q=
104-
golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM=
101+
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
102+
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
103+
golang.org/x/term v0.30.0 h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y=
104+
golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g=
105105
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
106106
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
107107
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
108-
golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=
109-
golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=
110-
golang.org/x/time v0.4.0 h1:Z81tqI5ddIoXDPvVQ7/7CC9TnLM7ubaFG2qXYd5BbYY=
111-
golang.org/x/time v0.4.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
108+
golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY=
109+
golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4=
110+
golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4=
111+
golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
112112
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
113113
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
114114
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
@@ -134,22 +134,22 @@ gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
134134
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
135135
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
136136
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
137-
k8s.io/api v0.29.4 h1:WEnF/XdxuCxdG3ayHNRR8yH3cI1B/llkWBma6bq4R3w=
138-
k8s.io/api v0.29.4/go.mod h1:DetSv0t4FBTcEpfA84NJV3g9a7+rSzlUHk5ADAYHUv0=
139-
k8s.io/apimachinery v0.29.4 h1:RaFdJiDmuKs/8cm1M6Dh1Kvyh59YQFDcFuFTSmXes6Q=
140-
k8s.io/apimachinery v0.29.4/go.mod h1:i3FJVwhvSp/6n8Fl4K97PJEP8C+MM+aoDq4+ZJBf70Y=
137+
k8s.io/api v0.30.9 h1:yojLzwl7TBV3XusCHXvR2AnowQFVnL9Ui3/wAga3pv4=
138+
k8s.io/api v0.30.9/go.mod h1:FGOLP66cj572P8rjO1H5x5+0vzmvf3bLc8pQlyQeBqk=
139+
k8s.io/apimachinery v0.30.9 h1:wDbY7vSPd3ALl5Fpw0yEiDyW5ozMyCpqsQ6anaCkpII=
140+
k8s.io/apimachinery v0.30.9/go.mod h1:iexa2somDaxdnj7bha06bhb43Zpa6eWH8N8dbqVjTUc=
141141
k8s.io/autoscaler/vertical-pod-autoscaler v0.11.0 h1:vh6cHU/sZBjdfYlKZOhXkMI5CTCgK12TauHGoQOue+4=
142142
k8s.io/autoscaler/vertical-pod-autoscaler v0.11.0/go.mod h1:CviXA+byKc3EV10oxt8S+YYVipks1+onIqLGNPV52xM=
143-
k8s.io/client-go v0.29.4 h1:79ytIedxVfyXV8rpH3jCBW0u+un0fxHDwX5F9K8dPR8=
144-
k8s.io/client-go v0.29.4/go.mod h1:kC1thZQ4zQWYwldsfI088BbK6RkxK+aF5ebV8y9Q4tk=
143+
k8s.io/client-go v0.30.9 h1:nIO9MJIWK/H/rDHT0PikZhEmK0MSK5hyfdT9YMTMMC0=
144+
k8s.io/client-go v0.30.9/go.mod h1:JObO2rfBeqrWn45GNMNnDReUfa6lgP4p+RjRLPJMaE8=
145145
k8s.io/klog/v2 v2.120.1 h1:QXU6cPEOIslTGvZaXvFWiP9VKyeet3sawzTOvdXb4Vw=
146146
k8s.io/klog/v2 v2.120.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE=
147147
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 h1:BZqlfIlq5YbRMFko6/PM7FjZpUb45WallggurYhKGag=
148148
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340/go.mod h1:yD4MZYeKMBwQKVht279WycxKyM84kkAx2DPrTXaeb98=
149149
k8s.io/utils v0.0.0-20230726121419-3b25d923346b h1:sgn3ZU783SCgtaSJjpcVVlRqd6GSnlTLKgpAAttJvpI=
150150
k8s.io/utils v0.0.0-20230726121419-3b25d923346b/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
151-
sigs.k8s.io/controller-runtime v0.17.3 h1:65QmN7r3FWgTxDMz9fvGnO1kbf2nu+acg9p2R9oYYYk=
152-
sigs.k8s.io/controller-runtime v0.17.3/go.mod h1:N0jpP5Lo7lMTF9aL56Z/B2oWBJjey6StQM0jRbKQXtY=
151+
sigs.k8s.io/controller-runtime v0.18.6 h1:UnEoLBLDpQwzJ2jYh6aTdiMhGjNDR7IdFn9YEqHIccc=
152+
sigs.k8s.io/controller-runtime v0.18.6/go.mod h1:Dcsa9v8AEBWa3sQNJHsuWPT4ICv99irl5wj83NiC12U=
153153
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo=
154154
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0=
155155
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4=

config/manifests/bases/function-mesh.clusterserviceversion.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ spec:
7272
7373
name: Function Mesh
7474
maturity: alpha
75-
minKubeVersion: 1.23.0
75+
minKubeVersion: 1.23.1
7676
provider:
7777
name: StreamNative
7878
url: https://streamnative.io

controllers/spec/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func generateInputSpec(sourceConf v1alpha1.InputConf) map[string]*proto.Consumer
169169
}
170170
}
171171

172-
if sourceConf.SourceSpecs != nil && len(sourceConf.SourceSpecs) > 0 {
172+
if len(sourceConf.SourceSpecs) > 0 {
173173
for topicName, conf := range sourceConf.SourceSpecs {
174174
var receiverQueueSize *proto.ConsumerSpec_ReceiverQueueSize
175175
if conf.ReceiverQueueSize != nil {

go.mod

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
module github.com/streamnative/function-mesh
22

3-
go 1.21
3+
go 1.23.7
4+
5+
toolchain go1.24.1
46

57
require (
68
github.com/apache/pulsar-client-go v0.9.1-0.20230816081803-fbee610ddcbf
7-
github.com/go-logr/logr v1.4.1
9+
github.com/go-logr/logr v1.4.2
810
github.com/golang/protobuf v1.5.4
911
github.com/onsi/ginkgo v1.16.5
1012
github.com/onsi/gomega v1.32.0
1113
github.com/prometheus/client_golang v1.18.0
1214
github.com/streamnative/function-mesh/api v0.0.0
1315
github.com/streamnative/pulsarctl v0.4.3-0.20240321142126-f3939fb0ed38
14-
github.com/stretchr/testify v1.8.4
15-
google.golang.org/protobuf v1.33.0
16+
github.com/stretchr/testify v1.9.0
17+
google.golang.org/protobuf v1.34.1
1618
gotest.tools v2.2.0+incompatible
17-
k8s.io/api v0.29.4
18-
k8s.io/apimachinery v0.29.4
19+
k8s.io/api v0.30.9
20+
k8s.io/apimachinery v0.30.9
1921
k8s.io/autoscaler/vertical-pod-autoscaler v0.11.0
20-
k8s.io/client-go v0.29.4
21-
sigs.k8s.io/controller-runtime v0.17.3
22+
k8s.io/client-go v0.30.9
23+
sigs.k8s.io/controller-runtime v0.18.6
2224
sigs.k8s.io/yaml v1.4.0
2325
)
2426

@@ -47,7 +49,7 @@ require (
4749
github.com/google/gnostic-models v0.6.8 // indirect
4850
github.com/google/go-cmp v0.6.0 // indirect
4951
github.com/google/gofuzz v1.2.0 // indirect
50-
github.com/google/uuid v1.3.0 // indirect
52+
github.com/google/uuid v1.6.0 // indirect
5153
github.com/gorilla/websocket v1.5.0 // indirect
5254
github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect
5355
github.com/imdario/mergo v0.3.12 // indirect
@@ -56,7 +58,7 @@ require (
5658
github.com/json-iterator/go v1.1.12 // indirect
5759
github.com/kris-nova/logger v0.0.0-20181127235838-fd0d87064b06 // indirect
5860
github.com/kris-nova/lolgopher v0.0.0-20180921204813-313b3abb0d9b // indirect
59-
github.com/magiconair/properties v1.8.5 // indirect
61+
github.com/magiconair/properties v1.8.7 // indirect
6062
github.com/mailru/easyjson v0.7.7 // indirect
6163
github.com/mattn/go-colorable v0.1.2 // indirect
6264
github.com/mattn/go-isatty v0.0.8 // indirect
@@ -78,20 +80,19 @@ require (
7880
go.uber.org/multierr v1.11.0 // indirect
7981
go.uber.org/zap v1.26.0 // indirect
8082
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
81-
golang.org/x/net v0.33.0 // indirect
83+
golang.org/x/net v0.37.0 // indirect
8284
golang.org/x/oauth2 v0.12.0 // indirect
83-
golang.org/x/sys v0.28.0 // indirect
84-
golang.org/x/term v0.27.0 // indirect
85-
golang.org/x/text v0.21.0 // indirect
85+
golang.org/x/sys v0.31.0 // indirect
86+
golang.org/x/term v0.30.0 // indirect
87+
golang.org/x/text v0.23.0 // indirect
8688
golang.org/x/time v0.4.0 // indirect
8789
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
8890
google.golang.org/appengine v1.6.7 // indirect
8991
gopkg.in/inf.v0 v0.9.1 // indirect
9092
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
9193
gopkg.in/yaml.v2 v2.4.0 // indirect
9294
gopkg.in/yaml.v3 v3.0.1 // indirect
93-
k8s.io/apiextensions-apiserver v0.29.4 // indirect
94-
k8s.io/component-base v0.29.4 // indirect
95+
k8s.io/apiextensions-apiserver v0.30.1 // indirect
9596
k8s.io/klog/v2 v2.120.1 // indirect
9697
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
9798
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect

0 commit comments

Comments
 (0)