Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

Commit e5c23d8

Browse files
authored
Release v5.0.18 (#2446)
* Update package to github.com/golang-jwt/jwt/v4 v4.5.2 * RELEASE=v5.0.18 ./release.sh * add helm release v5.0.18 * trigger tests on PRs to branch v5 * Fix [CVE-2024-45338] CWE-1333 Upgrade golang/golang.org/x/net@v0.23.0 to golang.org/x/net v0.33.0 * Fix [CVE-2025-22869] CWE-770 Upgrade golang.org/x/crypto v0.31.0 to golang.org/x/crypto v0.33.0 * Fix [CVE-2025-22870] CWE-115 Upgrade golang.org/x/net v0.35.0 to golang.org/x/net v0.36.0 * Fix [CVE-2025-22870] CWE-115 Upgrade golang.org/x/net v0.36.0 to golang.org/x/net v0.38.0 * exclude swagger-gen * run actions with go tools 1.24 * Update k8s dependencies and autogenerate code * Fix console dependency * golangci-lint disable unused-parameter revive * fix lints * Fix references to 5.0.18
1 parent 43e506d commit e5c23d8

File tree

95 files changed

+1466
-1672
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+1466
-1672
lines changed

.github/workflows/goreleaser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [opened, reopened, synchronize]
66
branches:
77
- 'release*'
8-
- 'v5.0.*'
8+
- 'v5*'
99
- 'master'
1010

1111
jobs:
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Go
1919
uses: actions/setup-go@v3
2020
with:
21-
go-version: 1.21.x
21+
go-version: 1.24.x
2222
- # Add support for more platforms with QEMU (optional)
2323
# https://github.com/docker/setup-qemu-action
2424
name: Set up QEMU

.github/workflows/kubernetes-tests.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Tenant Tests On Kind
22
on:
33
pull_request:
4-
branches: [ v5.0.* ]
4+
branches: [ v5* ]
55
concurrency:
66
group: ${{ github.workflow }}-${{ github.head_ref }}
77
cancel-in-progress: true
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
go-version: [ 1.21.x ]
15+
go-version: [ 1.24.x ]
1616
steps:
1717
- uses: actions/checkout@v3
1818
- uses: actions/setup-go@v4
@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ${{ matrix.os }}
3333
strategy:
3434
matrix:
35-
go-version: [ 1.21.x ]
35+
go-version: [ 1.24.x ]
3636
os: [ ubuntu-latest ]
3737

3838
steps:
@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ${{ matrix.os }}
4949
strategy:
5050
matrix:
51-
go-version: [ 1.21.x ]
51+
go-version: [ 1.24.x ]
5252
os: [ ubuntu-latest ]
5353

5454
steps:
@@ -65,7 +65,7 @@ jobs:
6565
runs-on: ubuntu-latest
6666
strategy:
6767
matrix:
68-
go-version: [ 1.21.x ]
68+
go-version: [ 1.24.x ]
6969
steps:
7070
- name: Check out code
7171
uses: actions/checkout@v3
@@ -89,7 +89,7 @@ jobs:
8989
- govet
9090
strategy:
9191
matrix:
92-
go-version: [ 1.21.x ]
92+
go-version: [ 1.24.x ]
9393
os: [ ubuntu-latest ]
9494

9595
steps:
@@ -110,7 +110,7 @@ jobs:
110110
- shellcheck
111111
strategy:
112112
matrix:
113-
go-version: [ 1.21.x ]
113+
go-version: [ 1.24.x ]
114114
os: [ ubuntu-latest ]
115115

116116
steps:
@@ -134,7 +134,7 @@ jobs:
134134
- operator
135135
strategy:
136136
matrix:
137-
go-version: [ 1.21.x ]
137+
go-version: [ 1.24.x ]
138138
os: [ ubuntu-latest ]
139139

140140
steps:
@@ -158,7 +158,7 @@ jobs:
158158
- operator
159159
strategy:
160160
matrix:
161-
go-version: [ 1.21.x ]
161+
go-version: [ 1.24.x ]
162162
os: [ ubuntu-latest ]
163163

164164
steps:
@@ -182,7 +182,7 @@ jobs:
182182
- operator
183183
strategy:
184184
matrix:
185-
go-version: [ 1.21.x ]
185+
go-version: [ 1.24.x ]
186186
os: [ ubuntu-latest ]
187187

188188
steps:
@@ -206,7 +206,7 @@ jobs:
206206
- operator
207207
strategy:
208208
matrix:
209-
go-version: [ 1.21.x ]
209+
go-version: [ 1.24.x ]
210210
os: [ ubuntu-latest ]
211211
steps:
212212
- uses: actions/checkout@v3
@@ -229,7 +229,7 @@ jobs:
229229
- operator
230230
strategy:
231231
matrix:
232-
go-version: [ 1.21.x ]
232+
go-version: [ 1.24.x ]
233233
os: [ ubuntu-latest ]
234234
steps:
235235
- name: Free Disk Space (Ubuntu)
@@ -263,7 +263,7 @@ jobs:
263263
- operator
264264
strategy:
265265
matrix:
266-
go-version: [ 1.21.x ]
266+
go-version: [ 1.24.x ]
267267
os: [ ubuntu-latest ]
268268

269269
# Steps represent a sequence of tasks that will be executed as part of the job
@@ -294,7 +294,7 @@ jobs:
294294
- operator
295295
strategy:
296296
matrix:
297-
go-version: [ 1.21.x ]
297+
go-version: [ 1.24.x ]
298298
os: [ ubuntu-latest ]
299299

300300
# Steps represent a sequence of tasks that will be executed as part of the job

.github/workflows/ui.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: UI
33
on:
44
pull_request:
55
branches:
6-
- v5.0.*
6+
- v5.*
77
push:
88
branches:
9-
- v5.0.*
9+
- v5.*
1010

1111
# This ensures that previous jobs for the PR are canceled when the PR is
1212
# updated.

.golangci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ linters-settings:
33
min-confidence: 0
44
misspell:
55
locale: US
6+
revive:
7+
rules:
8+
- name: unused-parameter
9+
disabled: true
610

711
run:
8-
go: '1.21'
12+
go: '1.23'
913

1014
linters:
1115
disable-all: true
@@ -35,4 +39,4 @@ issues:
3539
- deadcode
3640

3741
service:
38-
golangci-lint-version: 1.51.2 # use the fixed version to not introduce new linters unexpectedly
42+
golangci-lint-version: 1.64.6 # use the fixed version to not introduce new linters unexpectedly

.goreleaser.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ release:
1414
before:
1515
hooks:
1616
- make clean
17-
- make swagger-gen
1817
- go mod tidy -compat=1.21.8
1918
- go mod download
2019

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ getdeps:
2525
@echo "Checking dependencies"
2626
@mkdir -p ${GOPATH}/bin
2727
@echo "Installing golangci-lint" && \
28-
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2 && \
28+
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.6 && \
2929
echo "Installing govulncheck" && \
3030
go install golang.org/x/vuln/cmd/govulncheck@latest &&\
3131
echo "installng gopls" && \
@@ -66,7 +66,7 @@ clean:
6666
@rm -rf dist/
6767

6868
regen-crd:
69-
@go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.14.0
69+
@go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.17.2
7070
@${GOPATH}/bin/controller-gen crd:maxDescLen=0,generateEmbeddedObjectMeta=true paths="./..." output:crd:artifacts:config=$(KUSTOMIZE_CRDS)
7171
@sed 's#namespace: minio-operator#namespace: {{ .Release.Namespace }}#g' resources/base/crds/minio.min.io_tenants.yaml > $(HELM_TEMPLATES)/minio.min.io_tenants.yaml
7272
@sed 's#namespace: minio-operator#namespace: {{ .Release.Namespace }}#g' resources/base/crds/sts.min.io_policybindings.yaml > $(HELM_TEMPLATES)/sts.min.io_policybindings.yaml

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ for [kustomize](https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kusto
165165
use that to install MiniO Operator.
166166

167167
```sh
168-
kubectl kustomize github.com/minio/operator\?ref=v5.0.16
168+
kubectl kustomize github.com/minio/operator\?ref=v5.0.18
169169
```
170170

171171
Run the following command to verify the status of the Operator:

api/domain-handlers.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ func getUpdateDomainsResponse(session *models.Principal, params operator_api.Upd
5151
}
5252

5353
err = updateTenantDomains(ctx, opClient, params.Namespace, params.Tenant, params.Body.Domains)
54-
5554
if err != nil {
5655
return ErrorWithContext(ctx, err)
5756
}

api/login.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ func getLoginOauth2AuthResponse(params authApi.LoginOauth2AuthParams) (*models.L
167167

168168
var requestItems oauth2.LoginURLParams
169169
err = json.Unmarshal(decodedRState, &requestItems)
170-
171170
if err != nil {
172171
return nil, ErrorWithContext(ctx, err)
173172
}

docs/job_crd.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
[id="{p}-api-reference"]
55
== API Reference
66

7-
:minio-image: https://hub.docker.com/r/minio/minio/tags[minio/minio:RELEASE.2024-03-15T01-07-19Z]
8-
:kes-image: https://hub.docker.com/r/minio/kes/tags[minio/kes:2024-03-13T17-52-13Z]
7+
:minio-image: https://hub.docker.com/r/minio/minio/tags[minio/minio:RELEASE.2024-08-03T04-33-23Z]
8+
:kes-image: https://hub.docker.com/r/minio/kes/tags[minio/kes:2024-06-17T15-47-05Z]
99

1010

1111
[id="{anchor_prefix}-job-min-io-v1alpha1"]

0 commit comments

Comments
 (0)