Skip to content

Commit a6a3d9d

Browse files
authored
Merge pull request #1278 from AndrewSirenko/cherry-picks-8.2.1
Release external-snapshotter 8.2.1
2 parents f23e1ce + 012b188 commit a6a3d9d

File tree

1,409 files changed

+62739
-47539
lines changed

Some content is hidden

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

1,409 files changed

+62739
-47539
lines changed

CHANGELOG/CHANGELOG-3.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
webhook server has been added. This server will perform additional validation (strict) which was not done during the beta release of volume snapshots. It will prevent the cluster from gaining (via create or update) invalid objects.
2121
2. The controller will label objects which fail the additional validation. The label "snapshot.storage.kubernetes.io/invalid-snapshot-content-resource" will be added to invalid VolumeSnapshotContent objects. The label "snapshot.storage.kubernetes.io/invalid-snapshot-resource" will be added to invalid VolumeSnapshot objects.
2222

23-
The combination of 1 and 2 will allow cluster admins to stop the increase of invalid objects, and provide a way to easily list all objects which currently fail the strict validation. It is the kubernets distribution and cluster admin's responsibility to install the webhook and to ensure all the invalid objects in the cluster have been deleted or fixed. See the KEP at https://github.com/kubernetes/enhancements/blob/master/keps/sig-storage/177-volume-snapshot/tighten-validation-webhook-crd.md ([#353](https://github.com/kubernetes-csi/external-snapshotter/pull/353), [@AndiLi99](https://github.com/AndiLi99))
23+
The combination of 1 and 2 will allow cluster admins to stop the increase of invalid objects, and provide a way to easily list all objects which currently fail the strict validation. It is the kubernetes distribution and cluster admin's responsibility to install the webhook and to ensure all the invalid objects in the cluster have been deleted or fixed. See the KEP at https://github.com/kubernetes/enhancements/blob/master/keps/sig-storage/177-volume-snapshot/tighten-validation-webhook-crd.md ([#353](https://github.com/kubernetes-csi/external-snapshotter/pull/353), [@AndiLi99](https://github.com/AndiLi99))
2424

2525
### Snapshot Controller
2626

CHANGELOG/CHANGELOG-8.2.md

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,93 @@
1+
# Release notes for v8.2.1
2+
3+
[Documentation](https://kubernetes-csi.github.io)
4+
5+
## Changes by Kind
6+
7+
### Feature
8+
9+
- Serve additional leader election, work queue, process, and Go runtime metrics ([#1275](https://github.com/kubernetes-csi/external-snapshotter/pull/1275), [@AndrewSirenko](https://github.com/AndrewSirenko))
10+
11+
### Other (Cleanup or Flake)
12+
13+
- Update Kubernetes dependencies to 1.32.0 ([#1251](https://github.com/kubernetes-csi/external-snapshotter/pull/1251), [@dfajmon](https://github.com/dfajmon))
14+
15+
## Dependencies
16+
17+
### Added
18+
- github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp: [v1.24.2](https://github.com/GoogleCloudPlatform/opentelemetry-operations-go/tree/detectors/gcp/v1.24.2)
19+
- go.opentelemetry.io/auto/sdk: v1.1.0
20+
- go.opentelemetry.io/contrib/detectors/gcp: v1.31.0
21+
- go.opentelemetry.io/otel/sdk/metric: v1.31.0
22+
23+
### Changed
24+
- cel.dev/expr: v0.16.1 → v0.18.0
25+
- cloud.google.com/go/compute/metadata: v0.5.0 → v0.5.2
26+
- github.com/Azure/go-ansiterm: [d185dfc → 306776e](https://github.com/Azure/go-ansiterm/compare/d185dfc...306776e)
27+
- github.com/envoyproxy/go-control-plane: [v0.13.0 → v0.13.1](https://github.com/envoyproxy/go-control-plane/compare/v0.13.0...v0.13.1)
28+
- github.com/google/cel-go: [v0.20.1 → v0.22.0](https://github.com/google/cel-go/compare/v0.20.1...v0.22.0)
29+
- github.com/google/pprof: [4bfdf5a → d1b30fe](https://github.com/google/pprof/compare/4bfdf5a...d1b30fe)
30+
- github.com/gregjones/httpcache: [9cad4c3 → 901d907](https://github.com/gregjones/httpcache/compare/9cad4c3...901d907)
31+
- github.com/jonboulle/clockwork: [v0.2.2 → v0.4.0](https://github.com/jonboulle/clockwork/compare/v0.2.2...v0.4.0)
32+
- github.com/kubernetes-csi/csi-lib-utils: [v0.19.0 → v0.21.0](https://github.com/kubernetes-csi/csi-lib-utils/compare/v0.19.0...v0.21.0)
33+
- github.com/mailru/easyjson: [v0.7.7 → v0.9.0](https://github.com/mailru/easyjson/compare/v0.7.7...v0.9.0)
34+
- github.com/moby/spdystream: [v0.4.0 → v0.5.0](https://github.com/moby/spdystream/compare/v0.4.0...v0.5.0)
35+
- github.com/onsi/ginkgo/v2: [v2.19.0 → v2.21.0](https://github.com/onsi/ginkgo/compare/v2.19.0...v2.21.0)
36+
- github.com/onsi/gomega: [v1.33.1 → v1.35.1](https://github.com/onsi/gomega/compare/v1.33.1...v1.35.1)
37+
- github.com/prometheus/common: [v0.60.1 → v0.61.0](https://github.com/prometheus/common/compare/v0.60.1...v0.61.0)
38+
- github.com/rogpeppe/go-internal: [v1.12.0 → v1.13.1](https://github.com/rogpeppe/go-internal/compare/v1.12.0...v1.13.1)
39+
- github.com/stoewer/go-strcase: [v1.2.0 → v1.3.0](https://github.com/stoewer/go-strcase/compare/v1.2.0...v1.3.0)
40+
- github.com/stretchr/testify: [v1.9.0 → v1.10.0](https://github.com/stretchr/testify/compare/v1.9.0...v1.10.0)
41+
- github.com/xiang90/probing: [43a291a → a49e3df](https://github.com/xiang90/probing/compare/43a291a...a49e3df)
42+
- go.etcd.io/bbolt: v1.3.9 → v1.3.11
43+
- go.etcd.io/etcd/api/v3: v3.5.14 → v3.5.16
44+
- go.etcd.io/etcd/client/pkg/v3: v3.5.14 → v3.5.16
45+
- go.etcd.io/etcd/client/v2: v2.305.13 → v2.305.16
46+
- go.etcd.io/etcd/client/v3: v3.5.14 → v3.5.16
47+
- go.etcd.io/etcd/pkg/v3: v3.5.13 → v3.5.16
48+
- go.etcd.io/etcd/raft/v3: v3.5.13 → v3.5.16
49+
- go.etcd.io/etcd/server/v3: v3.5.13 → v3.5.16
50+
- go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc: v0.57.0 → v0.58.0
51+
- go.opentelemetry.io/otel/metric: v1.32.0 → v1.33.0
52+
- go.opentelemetry.io/otel/sdk: v1.28.0 → v1.31.0
53+
- go.opentelemetry.io/otel/trace: v1.32.0 → v1.33.0
54+
- go.opentelemetry.io/otel: v1.32.0 → v1.33.0
55+
- go.uber.org/zap: v1.26.0 → v1.27.0
56+
- golang.org/x/crypto: v0.29.0 → v0.31.0
57+
- golang.org/x/exp: f3d0a9c → 8a7402a
58+
- golang.org/x/mod: v0.17.0 → v0.20.0
59+
- golang.org/x/net: v0.31.0 → v0.33.0
60+
- golang.org/x/sync: v0.9.0 → v0.10.0
61+
- golang.org/x/sys: v0.27.0 → v0.28.0
62+
- golang.org/x/term: v0.26.0 → v0.27.0
63+
- golang.org/x/text: v0.20.0 → v0.21.0
64+
- golang.org/x/tools: e35e4cc → v0.26.0
65+
- golang.org/x/xerrors: 04be3eb → 5ec99f8
66+
- google.golang.org/genproto/googleapis/api: 8af14fe → 796eee8
67+
- google.golang.org/genproto/googleapis/rpc: dd2ea8e → 9240e9c
68+
- google.golang.org/genproto: b8732ec → ef43131
69+
- google.golang.org/grpc: v1.68.0 → v1.69.0
70+
- google.golang.org/protobuf: v1.35.2 → v1.36.0
71+
- k8s.io/api: v0.31.0 → v0.32.0
72+
- k8s.io/apimachinery: v0.31.0 → v0.32.0
73+
- k8s.io/apiserver: v0.31.3 → v0.32.0
74+
- k8s.io/client-go: v0.31.0 → v0.32.0
75+
- k8s.io/code-generator: v0.31.0 → v0.30.0
76+
- k8s.io/component-base: v0.31.0 → v0.32.0
77+
- k8s.io/component-helpers: v0.31.0 → v0.32.0
78+
- k8s.io/gengo/v2: 51d4e06 → a7b603a
79+
- k8s.io/kms: v0.31.3 → v0.32.0
80+
- k8s.io/kube-openapi: 70dd376 → 2c72e55
81+
- k8s.io/utils: 18e509b → 24370be
82+
- sigs.k8s.io/apiserver-network-proxy/konnectivity-client: v0.30.3 → v0.31.0
83+
- sigs.k8s.io/json: bc3834c → cfa47c3
84+
- sigs.k8s.io/structured-merge-diff/v4: v4.4.3 → v4.5.0
85+
86+
### Removed
87+
- github.com/golang/groupcache: [41bb18b](https://github.com/golang/groupcache/tree/41bb18b)
88+
- github.com/imdario/mergo: [v0.3.13](https://github.com/imdario/mergo/tree/v0.3.13)
89+
90+
191
# Release notes for v8.2.0
292

393
[Documentation](https://kubernetes-csi.github.io)

cmd/csi-snapshotter/main.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ import (
4949
controller "github.com/kubernetes-csi/external-snapshotter/v8/pkg/sidecar-controller"
5050
"github.com/kubernetes-csi/external-snapshotter/v8/pkg/snapshotter"
5151
utilflag "k8s.io/component-base/cli/flag"
52+
"k8s.io/component-base/metrics/legacyregistry"
53+
_ "k8s.io/component-base/metrics/prometheus/clientgo/leaderelection" // register leader election in the default legacy registry
54+
_ "k8s.io/component-base/metrics/prometheus/workqueue" // register work queues in the default legacy registry
5255

5356
clientset "github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned"
5457
snapshotscheme "github.com/kubernetes-csi/external-snapshotter/client/v8/clientset/versioned/scheme"
@@ -201,6 +204,10 @@ func main() {
201204

202205
klog.V(2).Infof("CSI driver name: %q", driverName)
203206

207+
// Add default legacy registry so that metrics manager serves Go runtime and process metrics.
208+
// Also registers the `k8s.io/component-base/` work queue and leader election metrics we anonymously import.
209+
metricsManager.WithAdditionalRegistry(legacyregistry.DefaultGatherer)
210+
204211
// Prepare http endpoint for metrics + leader election healthz
205212
mux := http.NewServeMux()
206213
if addr != "" {

go.mod

Lines changed: 27 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
module github.com/kubernetes-csi/external-snapshotter/v8
22

3-
go 1.23.1
3+
go 1.23.6
44

55
require (
66
github.com/container-storage-interface/spec v1.11.0
77
github.com/evanphx/json-patch v5.9.0+incompatible
88
github.com/golang/mock v1.6.0
9-
github.com/kubernetes-csi/csi-lib-utils v0.19.0
9+
github.com/kubernetes-csi/csi-lib-utils v0.21.0
1010
github.com/kubernetes-csi/csi-test/v5 v5.3.1
11-
github.com/kubernetes-csi/external-snapshotter/client/v8 v8.0.0
11+
github.com/kubernetes-csi/external-snapshotter/client/v8 v8.2.0
1212
github.com/prometheus/client_golang v1.20.5
1313
github.com/prometheus/client_model v0.6.1
14-
github.com/prometheus/common v0.60.1
15-
google.golang.org/grpc v1.68.0
16-
google.golang.org/protobuf v1.35.2
17-
k8s.io/api v0.31.3
18-
k8s.io/apimachinery v0.31.3
19-
k8s.io/apiserver v0.31.3
20-
k8s.io/client-go v0.31.3
21-
k8s.io/component-base v0.31.3
22-
k8s.io/component-helpers v0.31.0
14+
github.com/prometheus/common v0.61.0
15+
google.golang.org/grpc v1.69.0
16+
google.golang.org/protobuf v1.36.0
17+
k8s.io/api v0.32.0
18+
k8s.io/apimachinery v0.32.0
19+
k8s.io/apiserver v0.32.0
20+
k8s.io/client-go v0.32.0
21+
k8s.io/component-base v0.32.0
22+
k8s.io/component-helpers v0.32.0
2323
k8s.io/klog/v2 v2.130.1
24-
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8
24+
k8s.io/utils v0.0.0-20241210054802-24370beab758
2525
)
2626

2727
require (
@@ -37,18 +37,16 @@ require (
3737
github.com/go-openapi/jsonreference v0.21.0 // indirect
3838
github.com/go-openapi/swag v0.23.0 // indirect
3939
github.com/gogo/protobuf v1.3.2 // indirect
40-
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
4140
github.com/golang/protobuf v1.5.4 // indirect
4241
github.com/google/gnostic-models v0.6.9 // indirect
4342
github.com/google/go-cmp v0.6.0 // indirect
4443
github.com/google/gofuzz v1.2.0 // indirect
4544
github.com/google/uuid v1.6.0 // indirect
46-
github.com/imdario/mergo v0.3.13 // indirect
4745
github.com/inconshreveable/mousetrap v1.1.0 // indirect
4846
github.com/josharian/intern v1.0.0 // indirect
4947
github.com/json-iterator/go v1.1.12 // indirect
5048
github.com/klauspost/compress v1.17.11 // indirect
51-
github.com/mailru/easyjson v0.7.7 // indirect
49+
github.com/mailru/easyjson v0.9.0 // indirect
5250
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
5351
github.com/modern-go/reflect2 v1.0.2 // indirect
5452
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
@@ -57,37 +55,25 @@ require (
5755
github.com/spf13/cobra v1.8.1 // indirect
5856
github.com/spf13/pflag v1.0.5 // indirect
5957
github.com/x448/float16 v0.8.4 // indirect
60-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.57.0 // indirect
61-
go.opentelemetry.io/otel v1.32.0 // indirect
62-
go.opentelemetry.io/otel/metric v1.32.0 // indirect
63-
go.opentelemetry.io/otel/trace v1.32.0 // indirect
64-
golang.org/x/net v0.31.0 // indirect
58+
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
59+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.58.0 // indirect
60+
go.opentelemetry.io/otel v1.33.0 // indirect
61+
go.opentelemetry.io/otel/metric v1.33.0 // indirect
62+
go.opentelemetry.io/otel/trace v1.33.0 // indirect
63+
golang.org/x/net v0.33.0 // indirect
6564
golang.org/x/oauth2 v0.24.0 // indirect
66-
golang.org/x/sys v0.27.0 // indirect
67-
golang.org/x/term v0.26.0 // indirect
68-
golang.org/x/text v0.20.0 // indirect
65+
golang.org/x/sys v0.28.0 // indirect
66+
golang.org/x/term v0.27.0 // indirect
67+
golang.org/x/text v0.21.0 // indirect
6968
golang.org/x/time v0.8.0 // indirect
70-
google.golang.org/genproto/googleapis/rpc v0.0.0-20241104194629-dd2ea8efbc28 // indirect
69+
google.golang.org/genproto/googleapis/rpc v0.0.0-20241216192217-9240e9c98484 // indirect
7170
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
7271
gopkg.in/inf.v0 v0.9.1 // indirect
73-
gopkg.in/yaml.v2 v2.4.0 // indirect
7472
gopkg.in/yaml.v3 v3.0.1 // indirect
75-
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
76-
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
77-
sigs.k8s.io/structured-merge-diff/v4 v4.4.3 // indirect
73+
k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7 // indirect
74+
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
75+
sigs.k8s.io/structured-merge-diff/v4 v4.5.0 // indirect
7876
sigs.k8s.io/yaml v1.4.0 // indirect
7977
)
8078

8179
replace github.com/kubernetes-csi/external-snapshotter/client/v8 => ./client
82-
83-
replace k8s.io/api => k8s.io/api v0.31.0
84-
85-
replace k8s.io/apimachinery => k8s.io/apimachinery v0.31.0
86-
87-
replace k8s.io/client-go => k8s.io/client-go v0.31.0
88-
89-
replace k8s.io/code-generator => k8s.io/code-generator v0.31.0
90-
91-
replace k8s.io/component-base => k8s.io/component-base v0.31.0
92-
93-
replace k8s.io/component-helpers => k8s.io/component-helpers v0.31.0

0 commit comments

Comments
 (0)