Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit f48aee0

Browse files
committed
WIP: update csi-lib-utils 0.9.0
1 parent 15ae729 commit f48aee0

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,5 @@ replace (
9999
// - https://github.com/kubernetes/kubernetes/pull/94647
100100
// - https://github.com/kubernetes/kubernetes/pull/93930
101101
replace k8s.io/kubernetes => github.com/pohly/kubernetes v1.10.0-alpha.3.0.20200909111025-b4fda25e0e77
102+
103+
replace github.com/kubernetes-csi/csi-lib-utils => /nvme/gopath/src/github.com/kubernetes-csi/csi-lib-utils

go.sum

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,6 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
447447
github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA=
448448
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
449449
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
450-
github.com/kubernetes-csi/csi-lib-utils v0.8.1 h1:DHFs4MgzjSGF/FH95TEdLVa7R1CCi9UJ76jTUPO8iF0=
451-
github.com/kubernetes-csi/csi-lib-utils v0.8.1/go.mod h1:FZflf0cCYlCquPQxVHa6Tyy0i/so6VAZTiEVK1do7CU=
452450
github.com/kubernetes-csi/csi-test/v3 v3.1.1 h1:mFxPbUf7pti663WTCsfaT3YRPVIzy0yLx8HWbVKfN4I=
453451
github.com/kubernetes-csi/csi-test/v3 v3.1.1/go.mod h1:UWxYP5cDlD6iSNVKEiLFqfJnJinuhtI7MLt61rQQOfI=
454452
github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k=
@@ -1097,8 +1095,6 @@ k8s.io/csi-translation-lib v0.19.0/go.mod h1:zGS1YqV8U2So/t4Hz8SoRXMx5y5/KSKnA6B
10971095
k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
10981096
k8s.io/gengo v0.0.0-20200428234225-8167cfdcfc14/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0=
10991097
k8s.io/heapster v1.2.0-beta.1/go.mod h1:h1uhptVXMwC8xtZBYsPXKVi8fpdlYkTs6k949KozGrM=
1100-
k8s.io/klog v1.0.0 h1:Pt+yjF5aB1xDSVbau4VsWe+dQNzA0qv1LlXdC2dF6Q8=
1101-
k8s.io/klog v1.0.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I=
11021098
k8s.io/klog/v2 v2.0.0 h1:Foj74zO6RbjjP4hBEKjnYtjjAhGg4jNynUdYF6fJrok=
11031099
k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE=
11041100
k8s.io/klog/v2 v2.2.0 h1:XRvcwJozkgZ1UQJmfMGpvRthQHOvihEhYtDfAaxMz/A=

pkg/pmem-csi-driver/pmem-csi-driver.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,11 @@ func (csid *csiDriver) Run() error {
309309

310310
// On the csi.sock endpoint we gather statistics for incoming
311311
// CSI method calls like any other CSI driver.
312-
cmm := metrics.NewCSIMetricsManagerForPlugin(csid.cfg.DriverName)
312+
cmm := metrics.NewCSIMetricsManagerWithOptions(
313+
csid.cfg.DriverName,
314+
metrics.WithSubsystem(metrics.SubsystemPlugin),
315+
metrics.WithProcessStartTime(false), // must be disabled because we get it from the Prometheus Golang collector
316+
)
313317
csid.gatherers = append(csid.gatherers, cmm.GetRegistry())
314318

315319
switch csid.cfg.Mode {
@@ -350,6 +354,7 @@ func (csid *csiDriver) Run() error {
350354
// Always add the instance label to allow correlating with
351355
// the controller calls.
352356
metrics.WithLabels(map[string]string{registryserver.NodeLabel: csid.cfg.NodeID}),
357+
metrics.WithProcessStartTime(false), // must be disabled because we get it from the Prometheus Golang collector
353358
)
354359
csid.gatherers = append(csid.gatherers, cmmInternal.GetRegistry())
355360
if err := s.Start(csid.cfg.ControllerEndpoint, csid.serverTLSConfig, cmmInternal, cs); err != nil {

0 commit comments

Comments
 (0)