Upgrade csi-lib-utils to v0.12.0
This commit is contained in:
16
vendor/github.com/kubernetes-csi/csi-lib-utils/metrics/metrics.go
generated
vendored
16
vendor/github.com/kubernetes-csi/csi-lib-utils/metrics/metrics.go
generated
vendored
@@ -179,12 +179,20 @@ func WithProcessStartTime(registerProcessStartTime bool) MetricsManagerOption {
|
||||
}
|
||||
}
|
||||
|
||||
// WithCustomRegistry allow user to use custom pre-created registry instead of a new created one.
|
||||
func WithCustomRegistry(registry metrics.KubeRegistry) MetricsManagerOption {
|
||||
return func(cmm *csiMetricsManager) {
|
||||
cmm.registry = registry
|
||||
}
|
||||
}
|
||||
|
||||
// NewCSIMetricsManagerForSidecar creates and registers metrics for CSI Sidecars and
|
||||
// returns an object that can be used to trigger the metrics. It uses "csi_sidecar"
|
||||
// as subsystem.
|
||||
//
|
||||
// driverName - Name of the CSI driver against which this operation was executed.
|
||||
// If unknown, leave empty, and use SetDriverName method to update later.
|
||||
//
|
||||
// If unknown, leave empty, and use SetDriverName method to update later.
|
||||
func NewCSIMetricsManagerForSidecar(driverName string) CSIMetricsManager {
|
||||
return NewCSIMetricsManagerWithOptions(driverName)
|
||||
}
|
||||
@@ -197,7 +205,8 @@ var NewCSIMetricsManager = NewCSIMetricsManagerForSidecar
|
||||
// as subsystem.
|
||||
//
|
||||
// driverName - Name of the CSI driver against which this operation was executed.
|
||||
// If unknown, leave empty, and use SetDriverName method to update later.
|
||||
//
|
||||
// If unknown, leave empty, and use SetDriverName method to update later.
|
||||
func NewCSIMetricsManagerForPlugin(driverName string) CSIMetricsManager {
|
||||
return NewCSIMetricsManagerWithOptions(driverName,
|
||||
WithSubsystem(SubsystemPlugin),
|
||||
@@ -208,7 +217,8 @@ func NewCSIMetricsManagerForPlugin(driverName string) CSIMetricsManager {
|
||||
// if there are special needs like changing the default subsystems.
|
||||
//
|
||||
// driverName - Name of the CSI driver against which this operation was executed.
|
||||
// If unknown, leave empty, and use SetDriverName method to update later.
|
||||
//
|
||||
// If unknown, leave empty, and use SetDriverName method to update later.
|
||||
func NewCSIMetricsManagerWithOptions(driverName string, options ...MetricsManagerOption) CSIMetricsManager {
|
||||
cmm := csiMetricsManager{
|
||||
registry: metrics.NewKubeRegistry(),
|
||||
|
6
vendor/modules.txt
vendored
6
vendor/modules.txt
vendored
@@ -87,8 +87,8 @@ github.com/josharian/intern
|
||||
# github.com/json-iterator/go v1.1.12
|
||||
## explicit; go 1.12
|
||||
github.com/json-iterator/go
|
||||
# github.com/kubernetes-csi/csi-lib-utils v0.11.0
|
||||
## explicit; go 1.16
|
||||
# github.com/kubernetes-csi/csi-lib-utils v0.12.0
|
||||
## explicit; go 1.18
|
||||
github.com/kubernetes-csi/csi-lib-utils/connection
|
||||
github.com/kubernetes-csi/csi-lib-utils/leaderelection
|
||||
github.com/kubernetes-csi/csi-lib-utils/metrics
|
||||
@@ -155,7 +155,7 @@ github.com/spf13/cobra
|
||||
# github.com/spf13/pflag v1.0.5
|
||||
## explicit; go 1.12
|
||||
github.com/spf13/pflag
|
||||
# golang.org/x/net v0.3.1-0.20221206200815-1e63c2f08a10 => golang.org/x/net v0.4.0
|
||||
# golang.org/x/net v0.4.0 => golang.org/x/net v0.4.0
|
||||
## explicit; go 1.17
|
||||
golang.org/x/net/context
|
||||
golang.org/x/net/context/ctxhttp
|
||||
|
Reference in New Issue
Block a user