Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: STOR-2253: Rebase to upstream v1.39.0 for OCP 4.19 #283

Open
wants to merge 237 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
237 commits
Select commit Hold shift + click to select a range
9a49699
Bump trivy
AndrewSirenko Aug 20, 2024
a04a371
Release aws-ebs-csi-driver v1.34.0
AndrewSirenko Aug 20, 2024
30b4373
Merge pull request #2126 from AndrewSirenko/release-1.34
k8s-ci-robot Aug 23, 2024
6950c37
Merge pull request #2129 from kubernetes-sigs/release-1.34
k8s-ci-robot Aug 23, 2024
dc81364
Update faq.md with Karpenter best practices
AndrewSirenko Aug 26, 2024
87f7d66
Merge pull request #2124 from AndrewSirenko/bump-trivy
k8s-ci-robot Aug 26, 2024
dd215d5
Merge pull request #2131 from AndrewSirenko/FAQ-Karpenter
k8s-ci-robot Aug 26, 2024
c1cd2e1
Add reservedVolumeAttachments to windows nodes
AndrewSirenko Sep 4, 2024
189a228
Add support for outpost nodegroups to `make cluster/create`
ConnorJC3 Sep 6, 2024
59b7baa
Add local snapshots on outposts (#2130)
ElijahQuinones Sep 9, 2024
6bcf519
Merge pull request #2134 from AndrewSirenko/windowsReserved
k8s-ci-robot Sep 9, 2024
75421fa
use protobuf content type instead of json for k8s client
bhavi-koduru Sep 9, 2024
a3da5fd
Add LegacyXFS parameter to support Linux <= v5.4
AndrewSirenko Sep 4, 2024
7d883c7
Revert "Revert "Auto-enable VAC on clusters with beta API version""
ConnorJC3 Sep 10, 2024
c14b06d
Merge pull request #2121 from AndrewSirenko/legacyXFS
k8s-ci-robot Sep 10, 2024
cf297cc
Merge pull request #2141 from ConnorJC3/autoenable-vac-2.0
k8s-ci-robot Sep 11, 2024
dc5b4bc
Make govulncheck only run on release branches
AndrewSirenko Sep 11, 2024
ff57848
Merge pull request #2132 from AndrewSirenko/govulncheck-optional
k8s-ci-robot Sep 12, 2024
c365bf6
Merge pull request #2135 from ConnorJC3/outpost-makefile-support
k8s-ci-robot Sep 12, 2024
dada8ce
Bump dependencies for 1.35 release
ElijahQuinones Sep 11, 2024
1e4e908
Merge pull request #2142 from ElijahQuinones/release-1.35
k8s-ci-robot Sep 12, 2024
2ace7e8
Release aws-ebs-csi-driver v1.35.0
ElijahQuinones Sep 13, 2024
fe14272
Merge pull request #2144 from ElijahQuinones/release-1.35
k8s-ci-robot Sep 13, 2024
c1556ac
Merge pull request #2145 from kubernetes-sigs/release-1.35
k8s-ci-robot Sep 13, 2024
11cf5b2
Add permissions to all GitHub actions
ConnorJC3 Sep 12, 2024
559f8ff
Merge pull request #2143 from ConnorJC3/gh-actions-perms
k8s-ci-robot Sep 16, 2024
8558f58
Fix csi-attacher crash due to VAC feature gate on wrong sidecar
ConnorJC3 Sep 16, 2024
6ad7dbe
Fix TestNameAllocatorLikelyBadName to prevent code coverage flapping
ConnorJC3 Aug 16, 2024
71e3ce7
Adjust TestExpiringCache timeouts to decrease CI flakes
ConnorJC3 Aug 16, 2024
a5edb4e
Standardize deployment methods by removing Kustomize-specific changes
ConnorJC3 Aug 16, 2024
6386a2c
Set PATH for kubetest2 so it can find helpers
ConnorJC3 Aug 16, 2024
6daee0b
Merge pull request #2147 from ConnorJC3/fixmasteriambad
k8s-ci-robot Sep 16, 2024
2b29cb0
Merge pull request #2138 from bhavi-koduru/use-protobuf
k8s-ci-robot Sep 16, 2024
22fca2f
Upgrade vac to beta in e2e tests
AndrewSirenko Sep 17, 2024
deb9544
Merge pull request #2152 from AndrewSirenko/fixVacTests
k8s-ci-robot Sep 18, 2024
502677c
Merge pull request #2149 from ConnorJC3/paperuct-bandaid
k8s-ci-robot Sep 20, 2024
f39cfc4
Fix yq action version typo
ConnorJC3 Sep 23, 2024
0fb7c26
Merge pull request #2157 from ConnorJC3/yq-gh-actions
k8s-ci-robot Sep 23, 2024
86ba495
Update VAC documentation for Kubernetes 1.31 and tagging modification…
ConnorJC3 Aug 14, 2024
a214215
Update VAC example to v1beta1 and reduce customer cost
AndrewSirenko Sep 24, 2024
2efda4c
Merge pull request #2150 from AndrewSirenko/updateVACExample
k8s-ci-robot Sep 26, 2024
2401bbe
Upgrade to eks 1.31
AndrewSirenko Sep 27, 2024
8cae810
Merge pull request #2161 from AndrewSirenko/bump-eks-131
k8s-ci-robot Sep 27, 2024
b4e40ad
feat: Added new policy to PodDisruptionBudget
peterabarr Sep 25, 2024
2a67a90
Merge pull request #2159 from peterabarr/pdb-policy
k8s-ci-robot Oct 2, 2024
34ddb93
Update example policy for IAM change
ConnorJC3 Oct 2, 2024
dcb5929
Update OWNERS to include ElijahQuinones
ElijahQuinones Oct 2, 2024
945321b
Merge pull request #2164 from ElijahQuinones/master
k8s-ci-robot Oct 2, 2024
1f52666
Merge pull request #2163 from ConnorJC3/update-policy
k8s-ci-robot Oct 2, 2024
58bc419
helm: add recommended autoscalar Tolerations to driver DaemonSet
AndrewSirenko Oct 2, 2024
f72c243
docs: Fix typo in volume topology zone match label
guikcd Oct 4, 2024
be9d6be
Merge pull request #2167 from guikcd/topology_zone_typo
k8s-ci-robot Oct 4, 2024
8c78803
Add EnableFSRs to example policy
ConnorJC3 Oct 4, 2024
eaabf29
Merge pull request #2168 from ConnorJC3/add-fsr-to-policy
k8s-ci-robot Oct 4, 2024
28dee24
Update FAQ to include section on Volume Attachment Capacity Issues
torredil Oct 7, 2024
515151b
Merge pull request #2169 from torredil/update-faq-3123
k8s-ci-robot Oct 7, 2024
361df2c
Add v1 Karpenter disrupted taint to pre-stop hook
AndrewSirenko Oct 7, 2024
72249ed
helm: Add `agent-not-ready` to Windows Node startup
AndrewSirenko Oct 7, 2024
bd83db5
Merge pull request #2166 from AndrewSirenko/update-pre-stop
k8s-ci-robot Oct 7, 2024
ac86958
Fix typos in options.go and cloud_test.go
ElijahQuinones Oct 8, 2024
152184e
Merge pull request #2174 from ElijahQuinones/master
k8s-ci-robot Oct 8, 2024
04a0c92
Bump GH actions (trivy, codeql, upload-artifact)
AndrewSirenko Oct 8, 2024
7a0a8b5
Merge pull request #2175 from AndrewSirenko/bump-actions
k8s-ci-robot Oct 9, 2024
1dbfba8
Merge pull request #2165 from AndrewSirenko/tolerate-taints
k8s-ci-robot Oct 9, 2024
38f0b20
Automate image dependency upgrades & Migrate to kubekins-e2e-v2 (#2177)
AndrewSirenko Oct 11, 2024
227560b
Update dependencies ahead of v1.36
AndrewSirenko Oct 14, 2024
f6634f5
Update k8s dependencies to v1.31.1
AndrewSirenko Oct 14, 2024
9b2e26d
Update image dependencies
AndrewSirenko Oct 14, 2024
358bc12
Update toolchain dependencies
AndrewSirenko Oct 14, 2024
76437f1
Add m8g, c8g, x8g, g6e, and p5e attachment limits
AndrewSirenko Oct 14, 2024
0ef0e76
Only bail to AttachVolume if volume is detached
ConnorJC3 Oct 14, 2024
9106f51
Update GH Action dependencies
AndrewSirenko Oct 14, 2024
bd2e03d
Merge pull request #2181 from AndrewSirenko/instance-limit
k8s-ci-robot Oct 14, 2024
635c4c9
Merge pull request #2182 from AndrewSirenko/v136-deps-full
k8s-ci-robot Oct 14, 2024
e6dae61
Merge pull request #2183 from ConnorJC3/fix-attachvolume-spam
k8s-ci-robot Oct 14, 2024
f4f047f
Release EBS CSI Driver v1.36.0
AndrewSirenko Oct 15, 2024
fea62e5
Merge pull request #2184 from AndrewSirenko/release-1.36
k8s-ci-robot Oct 15, 2024
b314933
Merge pull request #2185 from kubernetes-sigs/release-1.36
k8s-ci-robot Oct 15, 2024
ecf92b1
Stub nodeService so MacOS can run e2e tests
AndrewSirenko Oct 15, 2024
0ddeaf8
Add Dependabot for Go module & GitHub Action dependencies
AndrewSirenko Oct 9, 2024
486fbd0
Merge pull request #2179 from AndrewSirenko/add--dependabot
k8s-ci-robot Oct 16, 2024
31e5e88
Bump the actions group with 3 updates
dependabot[bot] Oct 16, 2024
649c115
Bump the misc-dependencies group with 5 updates
dependabot[bot] Oct 16, 2024
de60326
Update parameters.md to fix a typo in `allowedTopologies`
ascopes Oct 17, 2024
7fd319a
Merge pull request #2187 from kubernetes-sigs/dependabot/github_actio…
k8s-ci-robot Oct 17, 2024
d4a86ad
Merge pull request #2188 from kubernetes-sigs/dependabot/go_modules/m…
k8s-ci-robot Oct 17, 2024
6e1bf2a
Merge pull request #2189 from ascopes/patch-1
k8s-ci-robot Oct 17, 2024
8604c44
Add warning about upcoming IAM update
ConnorJC3 Oct 17, 2024
d1d1932
Add K8s 1.31 to CI by pinning kops commit
AndrewSirenko Oct 14, 2024
8722289
Merge pull request #2191 from ConnorJC3/iam-warning
k8s-ci-robot Oct 17, 2024
ea90143
Merge pull request #2160 from AndrewSirenko/kops-k8s-131
k8s-ci-robot Oct 17, 2024
4501349
Update example-iam-policy.json
willswire Oct 22, 2024
033cfcd
Update patch-cluster.yaml
willswire Oct 22, 2024
03ae560
Bump sigs.k8s.io/apiserver-network-proxy/konnectivity-client
dependabot[bot] Oct 23, 2024
addaca4
Merge pull request #2194 from kubernetes-sigs/dependabot/go_modules/k…
k8s-ci-robot Oct 23, 2024
56a6229
Bump the misc-dependencies group with 4 updates
dependabot[bot] Oct 23, 2024
05c7b18
Merge pull request #2195 from kubernetes-sigs/dependabot/go_modules/m…
k8s-ci-robot Oct 23, 2024
e8df5a8
Merge pull request #2193 from willswire/patch-1
k8s-ci-robot Oct 23, 2024
7089339
Merge pull request #2197 from AndrewSirenko/fix-darwin
k8s-ci-robot Oct 25, 2024
77a384b
Bump the k8s-dependencies group with 3 updates
dependabot[bot] Oct 30, 2024
21595f9
Bump the misc-dependencies group with 15 updates
dependabot[bot] Oct 30, 2024
936b2f6
Merge pull request #2202 from kubernetes-sigs/dependabot/go_modules/m…
k8s-ci-robot Oct 30, 2024
35af0b2
Merge pull request #2201 from kubernetes-sigs/dependabot/go_modules/k…
k8s-ci-robot Oct 30, 2024
4dbacc2
Fix fetching test package version for kubetest in helm-tester
torredil Oct 31, 2024
1500fba
Add middleware to log server errors
ConnorJC3 Oct 24, 2024
eede784
Merge pull request #2203 from torredil/fix-helm-tester-5123
k8s-ci-robot Oct 31, 2024
c547d22
Merge pull request #2196 from ConnorJC3/log-on-server-failure
k8s-ci-robot Oct 31, 2024
bc0d1c0
Enable default golangci linters
AndrewSirenko Oct 29, 2024
a8e7848
Enable whitespace linter
AndrewSirenko Oct 29, 2024
3d3840b
cleanup: Delete copying of loop variables (Go 1.22+)
AndrewSirenko Oct 29, 2024
3d3f9a0
Enable dupword linter
AndrewSirenko Oct 29, 2024
e239fd8
cleanup: Ensure all variable names conform to 'ErrXxx' format
AndrewSirenko Oct 29, 2024
1dd1c11
cleanup: Do not log with fmt.Println (forbidigo)
AndrewSirenko Oct 29, 2024
9dd6e71
Enable forcetypeassert linter
AndrewSirenko Oct 29, 2024
43d3f17
cleanup: enable gci linter to make package import order deterministic
AndrewSirenko Oct 30, 2024
49aae91
cleanup: enable gocritic linter and simplify elseIf chains
AndrewSirenko Oct 30, 2024
39efb4e
cleanup: enable goimports linter
AndrewSirenko Oct 30, 2024
2ffd949
cleanup: Enable unconvert linter and remove unecessary type conversions
AndrewSirenko Oct 30, 2024
ef3bba5
cleanup: change for loops to use integer range (Go 1.22+)
AndrewSirenko Oct 30, 2024
42f7b9d
cleanup: pre-allocate slices to increase performance
AndrewSirenko Oct 30, 2024
0a6d0c0
cleanup: Use t.Setenv() in unit tests instead of os.Setenv
AndrewSirenko Oct 30, 2024
735a034
cleanup: Add t.Parallel() to more unit tests
AndrewSirenko Oct 30, 2024
2673e24
cleanup: Rename vars with same name as a predeclared identifier
AndrewSirenko Oct 30, 2024
c18bef1
Enable stylecheck linter; Fix ST1003 & ST1005
AndrewSirenko Oct 30, 2024
4b723c6
Ensure test helper functions start from t.Helper()
AndrewSirenko Oct 30, 2024
1267d0a
Enable goconst linter
AndrewSirenko Oct 30, 2024
46c49c4
Enable gochecknoinits linter
AndrewSirenko Oct 30, 2024
af016de
Enable perfsprint linter
AndrewSirenko Oct 30, 2024
a2fc4a4
Enable gosec; Fix potential integer overflows
AndrewSirenko Oct 30, 2024
aa668bd
Ensure comments end with period as godoc suggests
AndrewSirenko Oct 30, 2024
be4500a
Fix typo
ialidzhikov Nov 1, 2024
abf285a
Merge pull request #2205 from ialidzhikov/nit/typo
k8s-ci-robot Nov 1, 2024
c0949b3
Enable golang-ci linters
AndrewSirenko Nov 1, 2024
7f8e841
Merge pull request #2204 from AndrewSirenko/lint
k8s-ci-robot Nov 4, 2024
7cc98f5
Add release-note to pull request template
AndrewSirenko Nov 5, 2024
9bb07a3
Set image.pullPolicy to Always for Makefile installations
ConnorJC3 Nov 6, 2024
99d6739
Merge pull request #2212 from kubernetes-sigs/pull-policy-always
k8s-ci-robot Nov 6, 2024
c76fced
Update patch-cluster.yaml to v1beta1 for Vac
AndrewSirenko Nov 6, 2024
7bdd15e
Merge pull request #2213 from AndrewSirenko/AndrewSirenko-patch-2
k8s-ci-robot Nov 6, 2024
04827ca
add init containers to node daemonset
clbx Nov 7, 2024
3b3f117
Update patch-cluster.yaml to include kubeScheduler featureGate
AndrewSirenko Nov 7, 2024
6211306
Merge pull request #2217 from AndrewSirenko/AndrewSirenko-patch-3
k8s-ci-robot Nov 7, 2024
2fae5d5
Merge pull request #2208 from AndrewSirenko/pull-request-template
k8s-ci-robot Nov 7, 2024
966da33
Expose NVMe Volume Metrics (#2216)
torredil Nov 7, 2024
9640450
Bump the misc-dependencies group with 8 updates (#2210)
dependabot[bot] Nov 7, 2024
5ea9a9a
Fixup trivy workflows
torredil Nov 8, 2024
596ace5
Merge pull request #2219 from torredil/fix-trivy-85123h
k8s-ci-robot Nov 8, 2024
56062d2
Enable VAC tests
ElijahQuinones Nov 8, 2024
ef505ff
Merge pull request #2220 from ElijahQuinones/vac
k8s-ci-robot Nov 8, 2024
802e662
Update anti-affinity
ConnorJC3 Nov 11, 2024
3886a4b
Merge pull request #2222 from ConnorJC3/update-anti-affinity
k8s-ci-robot Nov 11, 2024
1c7af18
Upgrade dependencies
torredil Nov 11, 2024
1bd5eab
Merge pull request #2215 from clbx/master
k8s-ci-robot Nov 11, 2024
20c4a7c
Merge pull request #2223 from torredil/ud-57123
k8s-ci-robot Nov 11, 2024
41385d0
Bump up sidecars
torredil Nov 12, 2024
b1f0e04
Release v1.37.0
torredil Nov 12, 2024
0acc768
Merge pull request #2224 from torredil/release-1.37
ConnorJC3 Nov 12, 2024
de6e80e
Merge pull request #2226 from kubernetes-sigs/release-1.37
k8s-ci-robot Nov 12, 2024
665158a
Bump the misc-dependencies group with 11 updates
dependabot[bot] Nov 13, 2024
bc6184f
Fix Trivy TOOMANYREQUESTS errors
ConnorJC3 Nov 14, 2024
6ba145f
Merge pull request #2230 from ConnorJC3/nuke-trivy-to-orbit
k8s-ci-robot Nov 15, 2024
73e6802
Merge pull request #2227 from kubernetes-sigs/dependabot/go_modules/m…
k8s-ci-robot Nov 15, 2024
1e4872e
Bump the k8s-dependencies group with 2 updates
dependabot[bot] Nov 20, 2024
6c5c5cc
Bump aquasecurity/trivy-action in the actions group
dependabot[bot] Nov 20, 2024
5399ab2
Bump the misc-dependencies group with 15 updates
dependabot[bot] Nov 20, 2024
92ab116
Merge pull request #2234 from kubernetes-sigs/dependabot/go_modules/k…
k8s-ci-robot Nov 20, 2024
918173d
Merge pull request #2235 from kubernetes-sigs/dependabot/github_actio…
k8s-ci-robot Nov 20, 2024
a25f651
Merge pull request #2236 from kubernetes-sigs/dependabot/go_modules/m…
k8s-ci-robot Nov 20, 2024
15a54c2
Enable VAC feature gate for Kustomize deployments
ConnorJC3 Nov 22, 2024
1f45d80
Restrict NVMe Metrics to EBS CSI Managed Volumes
ConnorJC3 Nov 22, 2024
0301ff3
Merge pull request #2240 from ConnorJC3/enable-vac-kustomize
k8s-ci-robot Nov 25, 2024
50f6b2e
Merge pull request #2239 from ConnorJC3/nvme-fix
k8s-ci-robot Nov 25, 2024
ce3b112
Add tpl to serviceAccount annotations
ElijahQuinones Nov 25, 2024
d50f3da
Merge pull request #2243 from ElijahQuinones/tpl
k8s-ci-robot Nov 26, 2024
e484067
Bump the k8s-dependencies group with 3 updates
dependabot[bot] Nov 27, 2024
babb161
Bump the misc-dependencies group with 10 updates
dependabot[bot] Nov 27, 2024
d7818c5
Merge pull request #2246 from kubernetes-sigs/dependabot/go_modules/m…
k8s-ci-robot Nov 27, 2024
2570313
Fix supported filesystem types
AndrewSirenko Nov 26, 2024
0bf0bc3
Export node.enableMetrics in values.yaml
torredil Nov 27, 2024
5382f4d
Add flag to configure deprecated metrics for the controller plugin
torredil Nov 27, 2024
dea0558
Merge pull request #2245 from kubernetes-sigs/dependabot/go_modules/k…
k8s-ci-robot Nov 27, 2024
a445e6f
Update node plugin metrics to align with Prometheus best practices
torredil Nov 29, 2024
f5b1e2d
enabling node metrics causes helm apply failure on malformed yaml
mindw Dec 1, 2024
51e9f52
Merge pull request #2247 from AndrewSirenko/no-ext2
k8s-ci-robot Dec 2, 2024
d5a22c8
Bump the misc-dependencies group with 13 updates
dependabot[bot] Dec 4, 2024
9b884b3
Add FIPS image and Helm parameter
ConnorJC3 Nov 26, 2024
39822b5
Merge pull request #2252 from kubernetes-sigs/dependabot/go_modules/m…
k8s-ci-robot Dec 4, 2024
212f289
Update metrics.md
torredil Nov 29, 2024
064f186
Merge pull request #2248 from torredil/update-metrics-85123
k8s-ci-robot Dec 6, 2024
d13273b
Merge pull request #2250 from mindw/dev/gabi/helm_chart_node_metrics_fix
k8s-ci-robot Dec 9, 2024
63281fb
Remove duplicate 'enableMetrics' key
sule26 Dec 10, 2024
2bfdb2a
Merge pull request #2256 from sule26/patch-1
k8s-ci-robot Dec 10, 2024
fdcbc13
Bump dependencies for release v1.38.0
ConnorJC3 Dec 11, 2024
dc3514c
Merge pull request #2259 from ConnorJC3/138-deps
k8s-ci-robot Dec 11, 2024
3ba8ad7
Bump golang.org/x/crypto
dependabot[bot] Dec 11, 2024
49e575b
Merge pull request #2260 from kubernetes-sigs/dependabot/go_modules/m…
k8s-ci-robot Dec 11, 2024
68e0ee7
Release v1.38.0
ConnorJC3 Dec 11, 2024
4857695
Merge pull request #2261 from ConnorJC3/release138
k8s-ci-robot Dec 11, 2024
ac2d469
Merge pull request #2264 from kubernetes-sigs/release-1.38
k8s-ci-robot Dec 11, 2024
700e54a
Merge pull request #2244 from ConnorJC3/fips
k8s-ci-robot Dec 18, 2024
5fa51b5
Bump the misc-dependencies group with 12 updates
dependabot[bot] Dec 18, 2024
fff4597
Update metrics.md
cam634 Dec 18, 2024
470fafd
Update metrics.md
cam634 Dec 18, 2024
183eeef
Update metrics.md
cam634 Dec 18, 2024
380aa05
Update metrics.md
cam634 Dec 18, 2024
642d453
Merge pull request #2267 from kubernetes-sigs/dependabot/go_modules/m…
k8s-ci-robot Dec 18, 2024
2eefc58
Selinux mount option
ConnorJC3 Dec 4, 2024
f67241a
Fixup FIPS Makefile/E2E
ConnorJC3 Dec 19, 2024
8a177ba
Merge pull request #2268 from cam634/master
k8s-ci-robot Dec 19, 2024
d99da6d
Merge pull request #2270 from ConnorJC3/fips-e2d
k8s-ci-robot Dec 19, 2024
2c546a8
Merge pull request #2253 from ConnorJC3/selinux-mounts
k8s-ci-robot Dec 20, 2024
de8e996
Bump the misc-dependencies group with 19 updates
dependabot[bot] Dec 25, 2024
b151936
Merge pull request #2274 from kubernetes-sigs/dependabot/go_modules/m…
k8s-ci-robot Dec 26, 2024
6bed2ef
Bump the k8s-dependencies group with 4 updates
dependabot[bot] Dec 26, 2024
f881e5a
Fix mocks while bumping k8s-dependencies to v0.32.0
AndrewSirenko Dec 26, 2024
c32658a
Merge pull request #2266 from kubernetes-sigs/dependabot/go_modules/k…
k8s-ci-robot Dec 27, 2024
5b3aa73
Update volume modification example 6 hour cooldown note
AndrewSirenko Dec 27, 2024
0db674b
Merge pull request #2275 from AndrewSirenko/note
k8s-ci-robot Jan 2, 2025
ac2d236
Add csi-sanity tests
ElijahQuinones Dec 2, 2024
fe50ac6
Merge pull request #2254 from ElijahQuinones/sanity
k8s-ci-robot Jan 2, 2025
701ae1e
Change make test to also run sanity tests
ElijahQuinones Jan 3, 2025
7b49c27
Merge pull request #2279 from ElijahQuinones/sanity
k8s-ci-robot Jan 3, 2025
a70b992
Fix cloudbuild.sh target
ConnorJC3 Jan 6, 2025
8de8412
Merge pull request #2280 from ConnorJC3/fix-cloudbuild
k8s-ci-robot Jan 6, 2025
2dd444d
Bump dependencies and lock errdefs version to v0.1.0
ConnorJC3 Jan 7, 2025
b1a8b4a
Merge pull request #2282 from ConnorJC3/fix-dep-bump
k8s-ci-robot Jan 7, 2025
2822226
Refactor driver permissions docs and add Pod Identities
ConnorJC3 Jan 7, 2025
c344ffc
Merge pull request #2281 from ConnorJC3/pod-identity-docs
k8s-ci-robot Jan 9, 2025
69c3519
Update example policy and documentation
ConnorJC3 Jan 10, 2025
b28e70d
Merge pull request #2287 from ConnorJC3/iam-policy-new
k8s-ci-robot Jan 13, 2025
efe310d
fix wait for volume ready ~60s
khizunov Jan 22, 2025
c21334d
Merge pull request #2303 from khizunov/anton/2302/fix-wait-for-volume
k8s-ci-robot Jan 22, 2025
4623c7c
Upgrade dependencies ahead of EBS CSI Driver v1.39.0 (#2304)
AndrewSirenko Jan 22, 2025
9ec9ce8
Fix typo in Makefile a1compat target
ConnorJC3 Jan 22, 2025
3a4ade0
Merge pull request #2305 from kubernetes-sigs/fix-a1compat
k8s-ci-robot Jan 23, 2025
eb92fb5
Merge remote-tracking branch 'openshift/master' into rebase-1.39.0
rhrmo Feb 5, 2025
25ca3de
UPSTREAM: <carry>: Add OpenShift files
jsafrane Jul 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
342 changes: 56 additions & 286 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,293 +90,63 @@ output:
path-prefix: ""


# all available settings of specific linters
linters-settings:
dogsled:
# checks assignments with too many blank identifiers; default is 2
max-blank-identifiers: 2
dupl:
# tokens count to trigger issue, 150 by default
threshold: 100
errcheck:
# report about not checking of errors in type assertions: `a := b.(MyStruct)`;
# default is false: such cases aren't reported by default.
check-type-assertions: false

# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
# default is false: such cases aren't reported by default.
check-blank: false

# [deprecated] comma-separated list of pairs of the form pkg:regex
# the regex is used to ignore names within pkg. (default "fmt:.*").
# see https://github.com/kisielk/errcheck#the-deprecated-method for details
ignore: fmt:.*,io/ioutil:^Read.*

# path to a file containing a list of functions to exclude from checking
# see https://github.com/kisielk/errcheck#excluding-functions for details
#exclude:
exhaustive:
# indicates that switch statements are to be considered exhaustive if a
# 'default' case is present, even if all enum members aren't listed in the
# switch
default-signifies-exhaustive: false
funlen:
lines: 60
statements: 40
gocognit:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 10
nestif:
# minimal complexity of if statements to report, 5 by default
min-complexity: 4
goconst:
# minimal length of string constant, 3 by default
min-len: 3
# minimal occurrences count to trigger, 3 by default
min-occurrences: 3
gocritic:
# Which checks should be enabled; can't be combined with 'disabled-checks';
# See https://go-critic.github.io/overview#checks-overview
# To check which checks are enabled run `GL_DEBUG=gocritic golangci-lint run`
# By default list of stable checks is used.
#enabled-checks:
# - rangeValCopy

# Which checks should be disabled; can't be combined with 'enabled-checks'; default is empty
disabled-checks:
- regexpMust

# Enable multiple checks by tags, run `GL_DEBUG=gocritic golangci-lint run` to see all tags and checks.
# Empty list by default. See https://github.com/go-critic/go-critic#usage -> section "Tags".
enabled-tags:
- performance
disabled-tags:
- experimental

settings: # settings passed to gocritic
captLocal: # must be valid enabled check name
paramsOnly: true
# rangeValCopy:
# sizeThreshold: 32
gocyclo:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 10
godot:
# check all top-level comments, not only declarations
check-all: false
godox:
# report any comments starting with keywords, this is useful for TODO or FIXME comments that
# might be left in the code accidentally and should be resolved before merging
keywords: # default keywords are TODO, BUG, and FIXME, these can be overwritten by this setting
- NOTE
- OPTIMIZE # marks code that should be optimized before merging
- HACK # marks hack-arounds that should be removed before merging
gofmt:
# simplify code: gofmt with `-s` option, true by default
simplify: true
goheader:
values:
const:
# define here const type values in format k:v, for example:
# YEAR: 2020
# COMPANY: MY COMPANY
regexp:
# define here regexp type values, for example
# AUTHOR: .*@mycompany\.com
template:
# put here copyright header template for source code files, for example:
# {{ AUTHOR }} {{ COMPANY }} {{ YEAR }}
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
template-path:
# also as alternative of directive 'template' you may put the path to file with the template source
goimports:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes: github.com/org/project
golint:
# minimal confidence for issues, default is 0.8
min-confidence: 0.8
gomnd:
settings:
mnd:
# the list of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description.
checks: argument,case,condition,operation,return,assign
gomodguard:
allowed:
modules: # List of allowed modules
# - gopkg.in/yaml.v2
domains: # List of allowed module domains
# - golang.org
blocked:
modules: # List of blocked modules
# - github.com/uudashr/go-module: # Blocked module
# recommendations: # Recommended modules that should be used instead (Optional)
# - golang.org/x/mod
# reason: "`mod` is the official go.mod parser library." # Reason why the recommended module should be used (Optional)
versions: # List of blocked module version constraints
# - github.com/mitchellh/go-homedir: # Blocked module with version constraint
# version: "< 1.1.0" # Version constraint, see https://github.com/Masterminds/semver#basic-comparisons
# reason: "testing if blocked version constraint works." # Reason why the version constraint exists. (Optional)
govet:
# report about shadowed variables
check-shadowing: true
issues:
exclude-rules:
# gosec recommends ignoring test files
- path: (.+)_test.go
linters:
- gosec
- path: tests/e2e
linters:
- gosec
- path: tests/sanity
linters:
- gosec

# settings per analyzer
settings:
printf: # analyzer name, run `go tool vet help` to see all analyzers
funcs: # run `go tool vet help printf` to see available settings for `printf` analyzer
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf

# enable or disable analyzers by name
enable:
- atomicalign
enable-all: false
disable:
- shadow
disable-all: false
depguard:
list-type: blacklist
include-go-root: false
packages:
- github.com/sirupsen/logrus
packages-with-error-message:
# specify an error message to output when a blacklisted package is used
- github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
lll:
# max line length, lines longer will be reported. Default is 120.
# '\t' is counted as 1 character by default, and can be changed with the tab-width option
line-length: 120
# tab width in spaces. Default to 1.
tab-width: 1
maligned:
# print struct with more effective memory layout or not, false by default
suggest-new: true
misspell:
# Correct spellings using locale preferences for US or UK.
# Default is to use a neutral variety of English.
# Setting locale to US will correct the British spelling of 'colour' to 'color'.
locale: US
ignore-words:
- someword
nakedret:
# make an issue if func has more lines of code than this setting and it has naked returns; default is 30
max-func-lines: 30
prealloc:
# XXX: we don't recommend using this linter before doing performance profiling.
# For most programs usage of prealloc will be a premature optimization.

# Report preallocation suggestions only on simple loops that have no returns/breaks/continues/gotos in them.
# True by default.
simple: true
range-loops: true # Report preallocation suggestions on range loops, true by default
for-loops: false # Report preallocation suggestions on for loops, false by default
nolintlint:
# Enable to ensure that nolint directives are all used. Default is true.
allow-unused: false
# Disable to ensure that nolint directives don't have a leading space. Default is true.
allow-leading-space: true
# Exclude following linters from requiring an explanation. Default is [].
allow-no-explanation: []
# Enable to require an explanation of nonzero length after each nolint directive. Default is false.
require-explanation: true
# Enable to require nolint directives to mention the specific linter being suppressed. Default is false.
require-specific: true
rowserrcheck:
packages:
- github.com/jmoiron/sqlx
testpackage:
# regexp pattern to skip files
skip-regexp: (export|internal)_test\.go
unparam:
# Inspect exported functions, default is false. Set to true if no external program/library imports your code.
# XXX: if you enable this setting, unparam will report a lot of false-positives in text editors:
# if it's called for subdir of a project it can't find external interfaces. All text editor integrations
# with golangci-lint call it on a directory with the changed file.
check-exported: false
unused:
# treat code as a program (not a library) and report unused exported identifiers; default is false.
# XXX: if you enable this setting, unused will report a lot of false-positives in text editors:
# if it's called for subdir of a project it can't find funcs usages. All text editor integrations
# with golangci-lint call it on a directory with the changed file.
check-exported: false
whitespace:
multi-if: false # Enforces newlines (or comments) after every multi-line if statement
multi-func: false # Enforces newlines (or comments) after every multi-line function signature
wsl:
# If true append is only allowed to be cuddled if appending value is
# matching variables, fields or types on line above. Default is true.
strict-append: true
# Allow calls and assignments to be cuddled as long as the lines have any
# matching variables, fields or types. Default is true.
allow-assign-and-call: true
# Allow multiline assignments to be cuddled. Default is true.
allow-multiline-assign: true
# Allow declarations (var) to be cuddled.
allow-cuddle-declarations: false
# Allow trailing comments in ending of blocks
allow-trailing-comment: false
# Force newlines in end of case at this limit (0 = never).
force-case-trailing-whitespace: 0
# Force cuddling of err checks with err var assignment
force-err-cuddling: false
# Allow leading comments to be separated with empty liens
allow-separated-leading-comment: false
gofumpt:
# Choose whether or not to use the extra rules that are disabled
# by default
extra-rules: false

linters-settings:
revive:
rules:
# Using += 1 instead of ++ is fine
- name: increment-decrement
disabled: true
stylecheck:
# Dot importing ginkgo and gomega is standard practice
dot-import-whitelist:
- "github.com/onsi/gomega"
- "github.com/onsi/ginkgo/v2"
linters:
enable:
- megacheck
- govet
enable-all: true
disable:
- maligned
- prealloc
- scopelint
- gosec
disable-all: false
presets:
- bugs
- unused
fast: false

severity:
# Default value is empty string.
# Set the default severity for issues. If severity rules are defined and the issues
# do not match or no severity is provided to the rule this will be the default
# severity applied. Severities should match the supported severity names of the
# selected out format.
# - Code climate: https://docs.codeclimate.com/docs/issues#issue-severity
# - Checkstyle: https://checkstyle.sourceforge.io/property_types.html#severity
# - Github: https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-error-message
default-severity: error

# The default value is false.
# If set to true severity-rules regular expressions become case sensitive.
case-sensitive: false

# Default value is empty list.
# When a list of severity rules are provided, severity information will be added to lint
# issues. Severity rules have the same filtering capability as exclude rules except you
# are allowed to specify one matcher per severity rule.
# Only affects out formats that support setting severity information.
rules:
- linters:
- dupl
severity: info
- govet # We already run with `make verify/govet`
# We do not use
- cyclop # Cyclomatic complexity
- depguard # We don't guard against dependencies
- dupl # Tracks code duplication. Too much duplication in tests. False positives in non-tests
- execinquery # Deprecated but enabled-by-default
- exhaustruct # Explicitly instantiating all structs is painful for K8s structs
- exportloopref # Deprecated but enabled-by-default
- funlen # Long func names happen
- gocognit # Cognitive complexity
- gocyclo # Cyclomatic complexity
- gofumpt # We don't rely on gofumpt
- gomnd # Magic Number Detection. Many false positives.
- gomoddirectives # We need `replace` in `go.mod`
- interfacebloat # No more than 10 interface methods
- ireturn # Accept interfaces return concrete types
- lll # Limit line length
- maintidx # Maintainability index
- mnd # Magic Number Detection. Many false positives
- nestif # Don't allow too many nested if statements
- nlreturn # Always have empty line before return
- testpackage # Require separate test package to catch leaky unexported dependencies
- varnamelen # Long var names happen
- wsl # Too strict of a whitespace linter
# Consider adding in future
- err113 # Do not create errors dynamically from scratch. Instead, wrap static (package-level) error.
- wrapcheck # Same as err113
- gochecknoglobals # Do not allow global variables
- godox # Do not allow TODOs
- nonamedreturns # Need to nolint/refactor a few places our code
- paralleltest # There are many tests that aren't parallelized
- usetesting # TODO consider adding usetesting linter
Loading