mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 10:53:34 +00:00
vendor update for CSI 0.3.0
This commit is contained in:
12
vendor/k8s.io/kubernetes/pkg/kubelet/prober/results/results_manager.go
generated
vendored
12
vendor/k8s.io/kubernetes/pkg/kubelet/prober/results/results_manager.go
generated
vendored
@ -58,6 +58,18 @@ func (r Result) String() string {
|
||||
}
|
||||
}
|
||||
|
||||
// ToPrometheusType translates a Result to a form which is better understood by prometheus.
|
||||
func (r Result) ToPrometheusType() float64 {
|
||||
switch r {
|
||||
case Success:
|
||||
return 0
|
||||
case Failure:
|
||||
return 1
|
||||
default:
|
||||
return -1
|
||||
}
|
||||
}
|
||||
|
||||
// Update is an enum of the types of updates sent over the Updates channel.
|
||||
type Update struct {
|
||||
ContainerID kubecontainer.ContainerID
|
||||
|
Reference in New Issue
Block a user