mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Fix golint issues in pkg/kubelet/prober/results
This commit is contained in:
parent
897e8c0de6
commit
b767b1b250
@ -170,7 +170,6 @@ pkg/kubelet/metrics
|
|||||||
pkg/kubelet/pluginmanager/pluginwatcher
|
pkg/kubelet/pluginmanager/pluginwatcher
|
||||||
pkg/kubelet/pod/testing
|
pkg/kubelet/pod/testing
|
||||||
pkg/kubelet/preemption
|
pkg/kubelet/preemption
|
||||||
pkg/kubelet/prober/results
|
|
||||||
pkg/kubelet/prober/testing
|
pkg/kubelet/prober/testing
|
||||||
pkg/kubelet/qos
|
pkg/kubelet/qos
|
||||||
pkg/kubelet/remote
|
pkg/kubelet/remote
|
||||||
|
@ -19,7 +19,7 @@ package results
|
|||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
"k8s.io/apimachinery/pkg/types"
|
"k8s.io/apimachinery/pkg/types"
|
||||||
kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
|
kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
|
||||||
)
|
)
|
||||||
@ -43,7 +43,10 @@ type Manager interface {
|
|||||||
type Result bool
|
type Result bool
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
// Success is encoded as "true" (type Result)
|
||||||
Success Result = true
|
Success Result = true
|
||||||
|
|
||||||
|
// Failure is encoded as "false" (type Result)
|
||||||
Failure Result = false
|
Failure Result = false
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user