Skip to content

Commit 8d6d7c2

Browse files
committed
Merge remote-tracking branch 'upstream/master' into driver-name-update
2 parents 77f07e8 + 7ede9a3 commit 8d6d7c2

File tree

102 files changed

+4256
-1399
lines changed

Some content is hidden

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

102 files changed

+4256
-1399
lines changed

.github/dependabot.yaml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,42 +17,46 @@ enable-beta-ecosystems: true
1717
updates:
1818
- package-ecosystem: gomod
1919
directories: ["/", "/tests/e2e/"]
20-
allow:
21-
- dependency-type: "all"
20+
groups:
21+
all:
22+
patterns:
23+
- "*"
2224
schedule:
2325
interval: weekly
2426
day: "wednesday"
2527
time: "06:00"
2628
timezone: "America/New_York"
27-
groups:
28-
k8s-dependencies:
29-
patterns:
30-
- "k8s.io*"
31-
- "sigs.k8s.io*"
32-
- "github.com/kubernetes-csi*"
33-
misc-dependencies:
34-
patterns:
35-
- "*"
36-
exclude-patterns:
37-
- "k8s.io*"
38-
- "sigs.k8s.io*"
39-
- "github.com/kubernetes-csi*"
4029
labels:
4130
- "area/dependency"
4231
- "ok-to-test"
4332
- "release-note-none"
4433
- package-ecosystem: "github-actions"
4534
directory: "/"
35+
groups:
36+
all:
37+
patterns:
38+
- "*"
4639
schedule:
4740
interval: weekly
4841
# Wednesday chosen to minimize time after Windows Patch Tuesdays
4942
day: "wednesday"
5043
time: "06:00"
5144
timezone: "America/New_York"
45+
labels:
46+
- "area/dependency"
47+
- "ok-to-test"
48+
- "release-note-none"
49+
- package-ecosystem: docker
50+
directory: "/"
5251
groups:
53-
actions:
52+
all:
5453
patterns:
5554
- "*"
55+
schedule:
56+
interval: weekly
57+
day: "wednesday"
58+
time: "06:00"
59+
timezone: "America/New_York"
5660
labels:
5761
- "area/dependency"
5862
- "ok-to-test"

.github/workflows/dependency-review.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: 'Checkout Repository'
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v5
2727

2828
- name: 'Dependency Review'
2929
uses: actions/dependency-review-action@v4

.github/workflows/generate-code-coverage.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Checkout base
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v5
3030
with:
3131
ref: ${{ github.event.pull_request.base.ref }}
3232

@@ -51,7 +51,7 @@ jobs:
5151
runs-on: ubuntu-latest
5252
steps:
5353
- name: Checkout PR
54-
uses: actions/checkout@v4
54+
uses: actions/checkout@v5
5555

5656
- name: Set up Go
5757
uses: actions/setup-go@v5

.github/workflows/helm-chart-release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ name: Release Helm Charts
1717
on:
1818
push:
1919
branches:
20-
- master
20+
- 'release-*'
2121
paths:
2222
- "charts/**/Chart.yaml"
2323

@@ -31,7 +31,7 @@ jobs:
3131
permissions: write-all
3232
steps:
3333
- name: Checkout
34-
uses: actions/checkout@v4
34+
uses: actions/checkout@v5
3535
with:
3636
fetch-depth: 0
3737
- name: Configure Git

.github/workflows/trivy-containers.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
steps:
3131
- name: Checkout code
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@v5
3333

3434
- id: set-matrix
3535
uses: mikefarah/yq@v4
@@ -65,7 +65,7 @@ jobs:
6565
run: docker pull ${{ matrix.image }}
6666

6767
- name: Scan container image
68-
uses: aquasecurity/trivy-action@0.30.0
68+
uses: aquasecurity/trivy-action@0.32.0
6969
env:
7070
TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db
7171
with:

.github/workflows/trivy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
runs-on: ubuntu-latest
2929
steps:
3030
- name: Checkout code
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@v5
3232

3333
- name: Run Trivy vulnerability scanner in repo mode
34-
uses: aquasecurity/trivy-action@0.30.0
34+
uses: aquasecurity/trivy-action@0.32.0
3535
env:
3636
TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db
3737
with:

.github/workflows/unit-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
os: [ ubuntu-latest, windows-latest ]
3131
steps:
3232
- name: Checkout
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@v5
3434

3535
- name: Set up Go
3636
uses: actions/setup-go@v5

.golangci.yml

Lines changed: 46 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 The Kubernetes Authors.
1+
# Copyright 2025 The Kubernetes Authors.
22
#
33
# Licensed under the Apache License, Version 2.0 (the 'License');
44
# you may not use this file except in compliance with the License.
@@ -12,36 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
version: "2"
1516
run:
1617
modules-download-mode: readonly
17-
issues:
18-
exclude-rules:
19-
# gosec recommends ignoring test files
20-
- path: (.+)_test.go
21-
linters:
22-
- gosec
23-
- path: tests/e2e
24-
linters:
25-
- gosec
26-
- path: tests/sanity
27-
linters:
28-
- gosec
29-
linters-settings:
30-
revive:
31-
rules:
32-
# Using += 1 instead of ++ is fine
33-
- name: increment-decrement
34-
disabled: true
35-
stylecheck:
36-
# Dot importing ginkgo and gomega is standard practice
37-
dot-import-whitelist:
38-
- "github.com/onsi/gomega"
39-
- "github.com/onsi/ginkgo/v2"
40-
usetesting:
41-
# Turning check for os.MkdirTemp() off as t.TempDir() is not sufficient for mounter and sanity tests in their current state.
42-
os-mkdir-temp: false
4318
linters:
44-
enable-all: true
19+
default: all
4520
disable:
4621
- govet # We already run with `make verify/govet`
4722
# We do not use
@@ -52,7 +27,6 @@ linters:
5227
- funlen # Long func names happen
5328
- gocognit # Cognitive complexity
5429
- gocyclo # Cyclomatic complexity
55-
- gofumpt # We don't rely on gofumpt
5630
- gomoddirectives # We need `replace` in `go.mod`
5731
- interfacebloat # No more than 10 interface methods
5832
- ireturn # Accept interfaces return concrete types
@@ -64,10 +38,53 @@ linters:
6438
- testpackage # Require separate test package to catch leaky unexported dependencies
6539
- varnamelen # Long var names happen
6640
- wsl # Too strict of a whitespace linter
41+
- wsl_v5 # Too strict
6742
# Consider adding in future
6843
- err113 # Do not create errors dynamically from scratch. Instead, wrap static (package-level) error.
6944
- wrapcheck # Same as err113
7045
- gochecknoglobals # Do not allow global variables
7146
- godox # Do not allow TODOs
7247
- nonamedreturns # Need to nolint/refactor a few places our code
7348
- paralleltest # There are many tests that aren't parallelized
49+
- funcorder # Many of our existing files are out of order
50+
- noinlineerr # We use inline errors
51+
- embeddedstructfieldcheck # We have a few instances of this
52+
settings:
53+
revive:
54+
rules:
55+
# Using += 1 instead of ++ is fine
56+
- name: increment-decrement
57+
disabled: true
58+
staticcheck:
59+
# Dot importing ginkgo and gomega is standard practice
60+
dot-import-whitelist:
61+
- github.com/onsi/gomega
62+
- github.com/onsi/ginkgo/v2
63+
usetesting:
64+
# Turning check for os.MkdirTemp() off as t.TempDir() is not sufficient for mounter and sanity tests in their current state.
65+
os-mkdir-temp: false
66+
exclusions:
67+
# Exclude files that look auto-generated
68+
generated: lax
69+
presets:
70+
- comments
71+
- common-false-positives
72+
- legacy
73+
rules:
74+
# gosec recommends ignoring test files
75+
- linters:
76+
- gosec
77+
path: (.+)_test.go
78+
- linters:
79+
- gosec
80+
path: tests/e2e
81+
- linters:
82+
- gosec
83+
path: tests/sanity
84+
formatters:
85+
enable:
86+
- gci
87+
- gofmt
88+
- goimports
89+
exclusions:
90+
generated: lax

0 commit comments

Comments
 (0)