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

STOR-2018: Rebase node-driver-registrat to v2.12.0 for OCP 4.18 #76

Merged
merged 84 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
dc23d0e
Support structured logging
rlia Nov 2, 2023
d1f5f13
Bump golang.org/x/sys from 0.15.0 to 0.16.0
dependabot[bot] Jan 8, 2024
1e06199
Merge pull request #374 from kubernetes-csi/dependabot/go_modules/gol…
k8s-ci-robot Jan 8, 2024
9e55d88
Bump the k8s-dependencies group with 1 update
dependabot[bot] Jan 15, 2024
40824ae
Merge pull request #376 from kubernetes-csi/dependabot/go_modules/k8s…
k8s-ci-robot Jan 19, 2024
ac48e6f
Bump the k8s-dependencies group with 3 updates
dependabot[bot] Jan 22, 2024
22c8f33
Merge pull request #378 from kubernetes-csi/dependabot/go_modules/k8s…
k8s-ci-robot Jan 30, 2024
39cfc9c
Bump google.golang.org/grpc from 1.60.1 to 1.61.0
dependabot[bot] Jan 30, 2024
19179dc
Merge pull request #379 from kubernetes-csi/dependabot/go_modules/goo…
k8s-ci-robot Jan 30, 2024
806e391
Bump golang.org/x/sys from 0.16.0 to 0.17.0
dependabot[bot] Feb 12, 2024
abc918a
Merge branch 'master' into structured-logging2
jsafrane Feb 12, 2024
997da57
Merge pull request #380 from kubernetes-csi/dependabot/go_modules/gol…
k8s-ci-robot Feb 12, 2024
8f5384b
Bump the k8s-dependencies group with 2 updates
dependabot[bot] Feb 19, 2024
fca309d
Merge pull request #381 from kubernetes-csi/dependabot/go_modules/k8s…
k8s-ci-robot Feb 22, 2024
65b1858
Merge commit '3eb2994c7338336fa4de6df19226750e972a11f6' into release-…
RaunakShah Feb 23, 2024
3eb2994
Squashed 'release-tools/' changes from b54c1ba4..dc4d0ae2
RaunakShah Feb 23, 2024
340c2db
Merge pull request #384 from RaunakShah/release-tools-go-update
k8s-ci-robot Feb 23, 2024
90d6476
Bump golang.org/x/sys from 0.17.0 to 0.18.0
dependabot[bot] Mar 11, 2024
8df7e77
Merge pull request #385 from kubernetes-csi/dependabot/go_modules/gol…
k8s-ci-robot Mar 12, 2024
9669450
CVE-2024-24786: bump google.golang.org/protobuf to v1.33.0
dobsonj Mar 12, 2024
69237de
Merge pull request #387 from dobsonj/CVE-2024-24786-origin-master
k8s-ci-robot Mar 14, 2024
6e206ff
Bump the k8s-dependencies group with 2 updates
dependabot[bot] Mar 18, 2024
b172cb5
Merge pull request #389 from kubernetes-csi/dependabot/go_modules/k8s…
k8s-ci-robot Apr 2, 2024
5689d35
Sync dependabot config from external-provisioner
jsafrane Apr 5, 2024
8278f9c
Merge pull request #397 from jsafrane/sync-dependabot
k8s-ci-robot Apr 5, 2024
626b042
Bump the github-dependencies group with 18 updates
dependabot[bot] Apr 5, 2024
2e3a44a
Merge pull request #398 from kubernetes-csi/dependabot/go_modules/git…
k8s-ci-robot Apr 8, 2024
41fac00
Bump the github-dependencies group with 8 updates
dependabot[bot] Apr 8, 2024
21e76e2
Merge pull request #399 from kubernetes-csi/dependabot/go_modules/git…
k8s-ci-robot Apr 9, 2024
d133880
Bump the github-dependencies group with 3 updates
dependabot[bot] Apr 15, 2024
a498c31
Merge pull request #400 from kubernetes-csi/dependabot/go_modules/git…
k8s-ci-robot Apr 15, 2024
7e83a6d
Bump the github-dependencies group with 2 updates
dependabot[bot] Apr 22, 2024
50c5ed7
Merge pull request #402 from kubernetes-csi/dependabot/go_modules/git…
k8s-ci-robot Apr 23, 2024
f8ebfb7
Bump the github-dependencies group with 4 updates
dependabot[bot] Apr 29, 2024
8d575e9
Merge pull request #403 from kubernetes-csi/dependabot/go_modules/git…
k8s-ci-robot Apr 30, 2024
141c8ac
Bump the github-dependencies group with 3 updates
dependabot[bot] May 6, 2024
936d56f
Merge pull request #404 from kubernetes-csi/dependabot/go_modules/git…
k8s-ci-robot May 10, 2024
69a4134
Merge commit 'c0fd3b3a98bf7aac6be3bb53765541491b2513d9' into bump-1.30
jsafrane May 13, 2024
c0fd3b3
Squashed 'release-tools/' changes from dc4d0ae2..adb3af9d
jsafrane May 13, 2024
3949aad
Update Kubernetes libs to 1.30
jsafrane May 13, 2024
3833dce
Update to new csi-lib-utils
jsafrane May 13, 2024
5ce522e
Merge pull request #406 from jsafrane/bump-1.30
k8s-ci-robot May 13, 2024
5c16a09
Add test-logcheck as a prerequisite for the test target
rlia May 14, 2024
05705bf
Merge branch 'master' into structured-logging2
rlia May 15, 2024
c0a69ec
Remove test-logcheck as a prerequisite for the test target
rlia May 16, 2024
5763404
Merge pull request #349 from rlia/structured-logging2
k8s-ci-robot May 16, 2024
5885e9b
Support contextual logging
bells17 May 16, 2024
d70b59e
Merge pull request #410 from bells17/contextual-logging
k8s-ci-robot May 21, 2024
b634327
Add changelog for v2.11
jsafrane May 21, 2024
c1cb253
Merge pull request #413 from jsafrane/changelog-2.11
k8s-ci-robot May 22, 2024
ff9401c
Bump the k8s-dependencies group with 4 updates
dependabot[bot] May 27, 2024
df70978
Merge pull request #411 from kubernetes-csi/dependabot/go_modules/k8s…
k8s-ci-robot May 31, 2024
457637f
Bump the github-dependencies group across 1 directory with 11 updates
dependabot[bot] May 31, 2024
67c4a69
Merge pull request #416 from kubernetes-csi/dependabot/go_modules/git…
k8s-ci-robot May 31, 2024
4aad0f9
Bump github.com/kubernetes-csi/csi-lib-utils
dependabot[bot] Jun 3, 2024
725821f
Bump github.com/prometheus/procfs in the github-dependencies group
dependabot[bot] Jun 3, 2024
5b7730e
Merge pull request #417 from kubernetes-csi/dependabot/go_modules/k8s…
k8s-ci-robot Jun 4, 2024
ea03bdd
Merge pull request #418 from kubernetes-csi/dependabot/go_modules/git…
k8s-ci-robot Jun 4, 2024
96deba7
Bump the k8s-dependencies group across 1 directory with 5 updates
dependabot[bot] Jun 24, 2024
08c7db8
Merge pull request #422 from kubernetes-csi/dependabot/go_modules/k8s…
k8s-ci-robot Jul 9, 2024
f513b40
Fix registrar timeout
jsafrane Jul 9, 2024
5c99cd0
Merge pull request #426 from jsafrane/fix-registar-timeout
k8s-ci-robot Jul 9, 2024
d8a3bfb
Bump the github-dependencies group across 1 directory with 13 updates
dependabot[bot] Jul 15, 2024
ceb1fa3
Merge pull request #424 from kubernetes-csi/dependabot/go_modules/git…
k8s-ci-robot Jul 16, 2024
d0c4245
Bump the k8s-dependencies group with 4 updates
dependabot[bot] Jul 22, 2024
c31fc21
Bump golang.org/x/net in the github-dependencies group
dependabot[bot] Jul 22, 2024
173dce2
Merge pull request #432 from kubernetes-csi/dependabot/go_modules/k8s…
k8s-ci-robot Jul 22, 2024
730b0c5
Merge pull request #433 from kubernetes-csi/dependabot/go_modules/git…
k8s-ci-robot Jul 22, 2024
dda4228
update kubernetes to 1.31.0-rc.0
dfajmon Aug 1, 2024
7607f64
Merge pull request #435 from dfajmon/bump-1.31.beta
k8s-ci-robot Aug 2, 2024
f331748
Bump golang.org/x/sys in the github-dependencies group
dependabot[bot] Aug 5, 2024
3ac25bd
Merge pull request #437 from kubernetes-csi/dependabot/go_modules/git…
k8s-ci-robot Aug 6, 2024
718bde1
Squashed 'release-tools/' changes from adb3af9d..988496a1
sdx-jkataja Aug 9, 2024
616e3aa
Merge commit '718bde10d2416a8026d4584ad84e9763c08a8d91' into CVE-2024…
sdx-jkataja Aug 9, 2024
10d33f9
bump go 1.22.5 fixes CVE-2024-24790
sdx-jkataja Jul 25, 2024
d085506
Merge pull request #434 from sdx-jkataja/CVE-2024-24790
k8s-ci-robot Aug 14, 2024
f009ddd
update kubernetes to 1.31.0
dfajmon Aug 14, 2024
ff3c17a
Merge pull request #440 from dfajmon/bump-1.31
k8s-ci-robot Aug 14, 2024
faef9c2
Bump the github-dependencies group across 1 directory with 4 updates
dependabot[bot] Aug 14, 2024
9bb538d
Merge pull request #441 from kubernetes-csi/dependabot/go_modules/git…
k8s-ci-robot Aug 14, 2024
c3ff7c8
create changelog v2.12.0
dfajmon Aug 22, 2024
3bff1db
Merge pull request #442 from dfajmon/changelog
k8s-ci-robot Aug 22, 2024
bc9824d
Merge remote-tracking branch 'openshift/master' into rebase-2.12.0
rhrmo Oct 1, 2024
c286050
UPSTREAM: <carry>: Add OpenShift files
mpatlasov Mar 20, 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
  •  
  •  
  •  
92 changes: 92 additions & 0 deletions CHANGELOG/CHANGELOG-2.11.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Release notes for v2.11.0

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

# Changelog since v2.10.0

## Changes by Kind

### Feature

- Added support for contextual logging. ([#410](https://github.com/kubernetes-csi/node-driver-registrar/pull/410), [@bells17](https://github.com/bells17))
- Added support for structured logging (the log messages have been changed due to the activation of structured logging) ([#349](https://github.com/kubernetes-csi/node-driver-registrar/pull/349), [@rlia](https://github.com/rlia))
- Updated Kubernetes deps to v1.30 ([#406](https://github.com/kubernetes-csi/node-driver-registrar/pull/406), [@jsafrane](https://github.com/jsafrane))

### Uncategorized

- Update google.golang.org/protobuf to v1.33.0 to resolve CVE-2024-24786 ([#387](https://github.com/kubernetes-csi/node-driver-registrar/pull/387), [@dobsonj](https://github.com/dobsonj))

## Dependencies

### Added
- github.com/cpuguy83/go-md2man/v2: [v2.0.2](https://github.com/cpuguy83/go-md2man/v2/tree/v2.0.2)
- github.com/fxamacker/cbor/v2: [v2.6.0](https://github.com/fxamacker/cbor/v2/tree/v2.6.0)
- github.com/go-task/slim-sprig/v3: [v3.0.0](https://github.com/go-task/slim-sprig/v3/tree/v3.0.0)
- github.com/russross/blackfriday/v2: [v2.1.0](https://github.com/russross/blackfriday/v2/tree/v2.1.0)
- github.com/x448/float16: [v0.8.4](https://github.com/x448/float16/tree/v0.8.4)
- go.uber.org/goleak: v1.3.0
- k8s.io/gengo/v2: 51d4e06

### Changed
- cloud.google.com/go/compute: v1.23.0 → v1.24.0
- github.com/alecthomas/kingpin/v2: [v2.3.2 → v2.4.0](https://github.com/alecthomas/kingpin/v2/compare/v2.3.2...v2.4.0)
- github.com/cespare/xxhash/v2: [v2.2.0 → v2.3.0](https://github.com/cespare/xxhash/v2/compare/v2.2.0...v2.3.0)
- github.com/cncf/xds/go: [e9ce688 → 0fa0005](https://github.com/cncf/xds/go/compare/e9ce688...0fa0005)
- github.com/emicklei/go-restful/v3: [v3.11.0 → v3.12.0](https://github.com/emicklei/go-restful/v3/compare/v3.11.0...v3.12.0)
- github.com/envoyproxy/go-control-plane: [v0.11.1 → v0.12.0](https://github.com/envoyproxy/go-control-plane/compare/v0.11.1...v0.12.0)
- github.com/envoyproxy/protoc-gen-validate: [v1.0.2 → v1.0.4](https://github.com/envoyproxy/protoc-gen-validate/compare/v1.0.2...v1.0.4)
- github.com/go-logr/logr: [v1.3.0 → v1.4.1](https://github.com/go-logr/logr/compare/v1.3.0...v1.4.1)
- github.com/go-logr/zapr: [v1.2.3 → v1.3.0](https://github.com/go-logr/zapr/compare/v1.2.3...v1.3.0)
- github.com/go-openapi/jsonpointer: [v0.19.6 → v0.21.0](https://github.com/go-openapi/jsonpointer/compare/v0.19.6...v0.21.0)
- github.com/go-openapi/jsonreference: [v0.20.2 → v0.21.0](https://github.com/go-openapi/jsonreference/compare/v0.20.2...v0.21.0)
- github.com/go-openapi/swag: [v0.22.3 → v0.23.0](https://github.com/go-openapi/swag/compare/v0.22.3...v0.23.0)
- github.com/golang/glog: [v1.1.2 → v1.2.0](https://github.com/golang/glog/compare/v1.1.2...v1.2.0)
- github.com/golang/protobuf: [v1.5.3 → v1.5.4](https://github.com/golang/protobuf/compare/v1.5.3...v1.5.4)
- github.com/google/pprof: [4bb14d4 → a892ee0](https://github.com/google/pprof/compare/4bb14d4...a892ee0)
- github.com/google/uuid: [v1.3.1 → v1.6.0](https://github.com/google/uuid/compare/v1.3.1...v1.6.0)
- github.com/kubernetes-csi/csi-lib-utils: [v0.17.0 → v0.18.0](https://github.com/kubernetes-csi/csi-lib-utils/compare/v0.17.0...v0.18.0)
- github.com/onsi/ginkgo/v2: [v2.13.0 → v2.17.2](https://github.com/onsi/ginkgo/v2/compare/v2.13.0...v2.17.2)
- github.com/onsi/gomega: [v1.29.0 → v1.33.1](https://github.com/onsi/gomega/compare/v1.29.0...v1.33.1)
- github.com/prometheus/client_golang: [v1.16.0 → v1.19.1](https://github.com/prometheus/client_golang/compare/v1.16.0...v1.19.1)
- github.com/prometheus/client_model: [v0.4.0 → v0.6.1](https://github.com/prometheus/client_model/compare/v0.4.0...v0.6.1)
- github.com/prometheus/common: [v0.44.0 → v0.53.0](https://github.com/prometheus/common/compare/v0.44.0...v0.53.0)
- github.com/prometheus/procfs: [v0.10.1 → v0.14.0](https://github.com/prometheus/procfs/compare/v0.10.1...v0.14.0)
- github.com/rogpeppe/go-internal: [v1.10.0 → v1.11.0](https://github.com/rogpeppe/go-internal/compare/v1.10.0...v1.11.0)
- github.com/stretchr/objx: [v0.5.0 → v0.1.0](https://github.com/stretchr/objx/compare/v0.5.0...v0.1.0)
- github.com/stretchr/testify: [v1.8.4 → v1.9.0](https://github.com/stretchr/testify/compare/v1.8.4...v1.9.0)
- go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc: v0.46.0 → v0.51.0
- go.opentelemetry.io/otel/metric: v1.20.0 → v1.26.0
- go.opentelemetry.io/otel/trace: v1.20.0 → v1.26.0
- go.opentelemetry.io/otel: v1.20.0 → v1.26.0
- go.uber.org/zap: v1.19.0 → v1.26.0
- golang.org/x/crypto: v0.15.0 → v0.23.0
- golang.org/x/mod: v0.8.0 → v0.17.0
- golang.org/x/net: v0.18.0 → v0.25.0
- golang.org/x/oauth2: v0.13.0 → v0.18.0
- golang.org/x/sync: v0.4.0 → v0.7.0
- golang.org/x/sys: v0.15.0 → v0.20.0
- golang.org/x/term: v0.14.0 → v0.20.0
- golang.org/x/text: v0.14.0 → v0.15.0
- golang.org/x/tools: v0.12.0 → v0.20.0
- golang.org/x/xerrors: 04be3eb → 5ec99f8
- google.golang.org/genproto/googleapis/api: d307bd8 → 6ceb2ff
- google.golang.org/genproto/googleapis/rpc: bbf56f3 → 6275950
- google.golang.org/genproto: d783a09 → 6ceb2ff
- google.golang.org/grpc: v1.60.1 → v1.63.2
- google.golang.org/protobuf: v1.31.0 → v1.34.1
- k8s.io/api: v0.29.0 → v0.30.0
- k8s.io/apimachinery: v0.29.0 → v0.30.0
- k8s.io/apiserver: v0.29.0 → v0.30.0
- k8s.io/client-go: v0.29.0 → v0.30.0
- k8s.io/component-base: v0.29.0 → v0.30.0
- k8s.io/cri-api: v0.29.0 → v0.30.0
- k8s.io/klog/v2: v2.110.1 → v2.120.1
- k8s.io/kube-openapi: 2dd684a → f0e62f9
- k8s.io/kubelet: v0.29.0 → v0.30.0

### Removed
- github.com/cncf/udpa/go: [c52dc94](https://github.com/cncf/udpa/go/tree/c52dc94)
- github.com/creack/pty: [v1.1.9](https://github.com/creack/pty/tree/v1.1.9)
- github.com/kr/pty: [v1.1.1](https://github.com/kr/pty/tree/v1.1.1)
- go.uber.org/atomic: v1.10.0
- k8s.io/gengo: 9cce18d
93 changes: 93 additions & 0 deletions CHANGELOG/CHANGELOG-2.12.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Release notes for v2.12.0

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

# Changelog since v2.11.0

## Changes by Kind

### Bug or Regression

- Fixed node-driver-registrar exiting after 1 second. ([#426](https://github.com/kubernetes-csi/node-driver-registrar/pull/426), [@jsafrane](https://github.com/jsafrane))

### Other (Cleanup or Flake)

- Updates Kubernetes dependencies to 1.31.0-rc.0 ([#435](https://github.com/kubernetes-csi/node-driver-registrar/pull/435), [@dfajmon](https://github.com/dfajmon))
- Updates Kubernetes dependencies to v1.31.0 ([#440](https://github.com/kubernetes-csi/node-driver-registrar/pull/440), [@dfajmon](https://github.com/dfajmon))

### Uncategorized

- Updated go to 1.22.5 to resolve CVE-2024-24790 ([#434](https://github.com/kubernetes-csi/node-driver-registrar/pull/434), [@sdx-jkataja](https://github.com/sdx-jkataja))

## Dependencies

### Added
- cel.dev/expr: v0.15.0
- github.com/klauspost/compress: [v1.17.9](https://github.com/klauspost/compress/tree/v1.17.9)
- github.com/kylelemons/godebug: [v1.1.0](https://github.com/kylelemons/godebug/tree/v1.1.0)
- gopkg.in/evanphx/json-patch.v4: v4.12.0

### Changed
- cloud.google.com/go/compute/metadata: v0.2.3 → v0.3.0
- github.com/cenkalti/backoff/v4: [v4.2.1 → v4.3.0](https://github.com/cenkalti/backoff/compare/v4.2.1...v4.3.0)
- github.com/cncf/xds/go: [0fa0005 → 555b57e](https://github.com/cncf/xds/compare/0fa0005...555b57e)
- github.com/container-storage-interface/spec: [v1.9.0 → v1.10.0](https://github.com/container-storage-interface/spec/compare/v1.9.0...v1.10.0)
- github.com/cpuguy83/go-md2man/v2: [v2.0.2 → v2.0.4](https://github.com/cpuguy83/go-md2man/compare/v2.0.2...v2.0.4)
- github.com/davecgh/go-spew: [v1.1.1 → d8f796a](https://github.com/davecgh/go-spew/compare/v1.1.1...d8f796a)
- github.com/emicklei/go-restful/v3: [v3.12.0 → v3.12.1](https://github.com/emicklei/go-restful/compare/v3.12.0...v3.12.1)
- github.com/felixge/httpsnoop: [v1.0.3 → v1.0.4](https://github.com/felixge/httpsnoop/compare/v1.0.3...v1.0.4)
- github.com/fxamacker/cbor/v2: [v2.6.0 → v2.7.0](https://github.com/fxamacker/cbor/compare/v2.6.0...v2.7.0)
- github.com/go-logr/logr: [v1.4.1 → v1.4.2](https://github.com/go-logr/logr/compare/v1.4.1...v1.4.2)
- github.com/golang/glog: [v1.2.0 → v1.2.1](https://github.com/golang/glog/compare/v1.2.0...v1.2.1)
- github.com/google/pprof: [a892ee0 → 4bfdf5a](https://github.com/google/pprof/compare/a892ee0...4bfdf5a)
- github.com/grpc-ecosystem/grpc-gateway/v2: [v2.16.0 → v2.20.0](https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.16.0...v2.20.0)
- github.com/kubernetes-csi/csi-lib-utils: [v0.18.0 → v0.19.0](https://github.com/kubernetes-csi/csi-lib-utils/compare/v0.18.0...v0.19.0)
- github.com/moby/spdystream: [v0.2.0 → v0.4.0](https://github.com/moby/spdystream/compare/v0.2.0...v0.4.0)
- github.com/moby/term: [1aeaba8 → v0.5.0](https://github.com/moby/term/compare/1aeaba8...v0.5.0)
- github.com/onsi/ginkgo/v2: [v2.17.2 → v2.19.0](https://github.com/onsi/ginkgo/compare/v2.17.2...v2.19.0)
- github.com/pmezard/go-difflib: [v1.0.0 → 5d4384e](https://github.com/pmezard/go-difflib/compare/v1.0.0...5d4384e)
- github.com/prometheus/client_golang: [v1.19.1 → v1.20.0](https://github.com/prometheus/client_golang/compare/v1.19.1...v1.20.0)
- github.com/prometheus/common: [v0.53.0 → v0.55.0](https://github.com/prometheus/common/compare/v0.53.0...v0.55.0)
- github.com/prometheus/procfs: [v0.14.0 → v0.15.1](https://github.com/prometheus/procfs/compare/v0.14.0...v0.15.1)
- github.com/rogpeppe/go-internal: [v1.11.0 → v1.12.0](https://github.com/rogpeppe/go-internal/compare/v1.11.0...v1.12.0)
- github.com/spf13/cobra: [v1.7.0 → v1.8.1](https://github.com/spf13/cobra/compare/v1.7.0...v1.8.1)
- go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc: v0.51.0 → v0.53.0
- go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp: v0.44.0 → v0.53.0
- go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc: v1.19.0 → v1.27.0
- go.opentelemetry.io/otel/exporters/otlp/otlptrace: v1.19.0 → v1.28.0
- go.opentelemetry.io/otel/metric: v1.26.0 → v1.28.0
- go.opentelemetry.io/otel/sdk: v1.19.0 → v1.28.0
- go.opentelemetry.io/otel/trace: v1.26.0 → v1.28.0
- go.opentelemetry.io/otel: v1.26.0 → v1.28.0
- go.opentelemetry.io/proto/otlp: v1.0.0 → v1.3.1
- go.uber.org/zap: v1.26.0 → v1.27.0
- golang.org/x/crypto: v0.23.0 → v0.26.0
- golang.org/x/net: v0.25.0 → v0.28.0
- golang.org/x/oauth2: v0.18.0 → v0.21.0
- golang.org/x/sync: v0.7.0 → v0.8.0
- golang.org/x/sys: v0.20.0 → v0.24.0
- golang.org/x/term: v0.20.0 → v0.23.0
- golang.org/x/text: v0.15.0 → v0.17.0
- golang.org/x/tools: v0.20.0 → e35e4cc
- google.golang.org/genproto/googleapis/api: 6ceb2ff → 5315273
- google.golang.org/genproto/googleapis/rpc: 6275950 → f6361c8
- google.golang.org/grpc: v1.63.2 → v1.65.0
- google.golang.org/protobuf: v1.34.1 → v1.34.2
- k8s.io/api: v0.30.0 → v0.31.0
- k8s.io/apimachinery: v0.30.0 → v0.31.0
- k8s.io/apiserver: v0.30.0 → v0.31.0
- k8s.io/client-go: v0.30.0 → v0.31.0
- k8s.io/component-base: v0.30.0 → v0.31.0
- k8s.io/cri-api: v0.30.0 → v0.31.0
- k8s.io/klog/v2: v2.120.1 → v2.130.1
- k8s.io/kubelet: v0.30.0 → v0.31.0
- k8s.io/utils: 3b25d92 → 18e509b
- sigs.k8s.io/yaml: v1.3.0 → v1.4.0

### Removed
- cloud.google.com/go/compute: v1.24.0
- github.com/evanphx/json-patch: [v4.12.0+incompatible](https://github.com/evanphx/json-patch/tree/v4.12.0)
- github.com/go-task/slim-sprig: [52ccab3](https://github.com/go-task/slim-sprig/tree/52ccab3)
- github.com/matttproud/golang_protobuf_extensions: [v1.0.4](https://github.com/matttproud/golang_protobuf_extensions/tree/v1.0.4)
- google.golang.org/appengine: v1.6.8
- google.golang.org/genproto: 6ceb2ff
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ CMDS=csi-node-driver-registrar
all: build

include release-tools/build.make

test: test-logcheck
64 changes: 40 additions & 24 deletions cmd/csi-node-driver-registrar/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package main

import (
"context"
"errors"
"flag"
"fmt"
_ "net/http/pprof"
Expand All @@ -29,6 +30,10 @@ import (

"github.com/kubernetes-csi/csi-lib-utils/connection"
csirpc "github.com/kubernetes-csi/csi-lib-utils/rpc"
"k8s.io/component-base/featuregate"
"k8s.io/component-base/logs"
logsapi "k8s.io/component-base/logs/api/v1"
_ "k8s.io/component-base/logs/json/register"
registerapi "k8s.io/kubelet/pkg/apis/pluginregistration/v1"
)

Expand Down Expand Up @@ -87,7 +92,8 @@ func newRegistrationServer(driverName string, endpoint string, versions []string

// GetInfo is the RPC invoked by plugin watcher
func (e registrationServer) GetInfo(ctx context.Context, req *registerapi.InfoRequest) (*registerapi.PluginInfo, error) {
klog.Infof("Received GetInfo call: %+v", req)
logger := klog.FromContext(ctx)
logger.Info("Received GetInfo call", "request", req)

return &registerapi.PluginInfo{
Type: registerapi.CSIPlugin,
Expand All @@ -98,9 +104,10 @@ func (e registrationServer) GetInfo(ctx context.Context, req *registerapi.InfoRe
}

func (e registrationServer) NotifyRegistrationStatus(ctx context.Context, status *registerapi.RegistrationStatus) (*registerapi.RegistrationStatusResponse, error) {
klog.Infof("Received NotifyRegistrationStatus call: %+v", status)
logger := klog.FromContext(ctx)
logger.Info("Received NotifyRegistrationStatus call", "status", status)
if !status.PluginRegistered {
klog.Errorf("Registration process failed with error: %+v, restarting registration container.", status.Error)
logger.Error(errors.New(status.Error), "Registration process failed with error, restarting registration container")
os.Exit(1)
}

Expand All @@ -112,18 +119,26 @@ func modeIsKubeletRegistrationProbe() bool {
}

func main() {
klog.InitFlags(nil)
flag.Set("logtostderr", "true")
fg := featuregate.NewFeatureGate()
logsapi.AddFeatureGates(fg)
c := logsapi.NewLoggingConfiguration()
logsapi.AddGoFlags(c, flag.CommandLine)
logs.InitLogs()
flag.Parse()
logger := klog.Background()
if err := logsapi.ValidateAndApply(c, fg); err != nil {
logger.Error(err, "LoggingConfiguration is invalid")
klog.FlushAndExit(klog.ExitFlushTimeout, 1)
}

if *showVersion {
fmt.Println(os.Args[0], version)
return
}

if *kubeletRegistrationPath == "" {
klog.Error("kubelet-registration-path is a required parameter")
os.Exit(1)
logger.Error(nil, "kubelet-registration-path is a required parameter")
klog.FlushAndExit(klog.ExitFlushTimeout, 1)
}

if modeIsKubeletRegistrationProbe() {
Expand All @@ -132,12 +147,12 @@ func main() {
os.Exit(0)
}

klog.Infof("Version: %s", version)
klog.Infof("Running node-driver-registrar in mode=%s", *mode)
logger.Info("Version", "version", version)
logger.Info("Running node-driver-registrar", "mode", *mode)

if *healthzPort > 0 && *httpEndpoint != "" {
klog.Error("only one of `--health-port` and `--http-endpoint` can be set.")
os.Exit(1)
logger.Error(nil, "Only one of `--health-port` and `--http-endpoint` can be set")
klog.FlushAndExit(klog.ExitFlushTimeout, 1)
}
var addr string
if *healthzPort > 0 {
Expand All @@ -147,32 +162,33 @@ func main() {
}

if *connectionTimeout != 0 {
klog.Warning("--connection-timeout is deprecated and will have no effect")
logger.Info("--connection-timeout is deprecated and will have no effect")
}

// Once https://github.com/container-storage-interface/spec/issues/159 is
// resolved, if plugin does not support PUBLISH_UNPUBLISH_VOLUME, then we
// can skip adding mapping to "csi.volume.kubernetes.io/nodeid" annotation.

klog.V(1).Infof("Attempting to open a gRPC connection with: %q", *csiAddress)
csiConn, err := connection.ConnectWithoutMetrics(*csiAddress)
logger.V(1).Info("Attempting to open a gRPC connection", "csiAddress", *csiAddress)
ctx := klog.NewContext(context.Background(), logger)
csiConn, err := connection.ConnectWithoutMetrics(ctx, *csiAddress)
if err != nil {
klog.Errorf("error connecting to CSI driver: %v", err)
os.Exit(1)
logger.Error(err, "Error connecting to CSI driver")
klog.FlushAndExit(klog.ExitFlushTimeout, 1)
}

klog.V(1).Infof("Calling CSI driver to discover driver name")
ctx, cancel := context.WithTimeout(context.Background(), *operationTimeout)
logger.V(1).Info("Calling CSI driver to discover driver name")
getNameCtx, cancel := context.WithTimeout(ctx, *operationTimeout)
defer cancel()

csiDriverName, err := csirpc.GetDriverName(ctx, csiConn)
csiDriverName, err := csirpc.GetDriverName(getNameCtx, csiConn)
if err != nil {
klog.Errorf("error retreiving CSI driver name: %v", err)
os.Exit(1)
logger.Error(err, "Error retreiving CSI driver name")
klog.FlushAndExit(klog.ExitFlushTimeout, 1)
}
klog.V(2).Infof("CSI driver name: %q", csiDriverName)
defer closeGrpcConnection(*csiAddress, csiConn)
logger.V(2).Info("CSI driver name", "csiDriverName", csiDriverName)
defer closeGrpcConnection(logger, *csiAddress, csiConn)

// Run forever
nodeRegister(csiDriverName, addr)
nodeRegister(ctx, csiDriverName, addr)
}
Loading