fix golint failures

some packages under staging/src/k8s.io/sample-apiserver/

Kubernetes-commit: a39f502fc058fbba8258a84617a6ed3700ee4343
This commit is contained in:
Jeremy Shih 2020-08-31 17:17:28 +08:00 committed by Kubernetes Publisher
parent a3e8481b3a
commit 96b39cb21c
1 changed files with 4 additions and 3 deletions

View File

@ -19,10 +19,10 @@ package v1beta1
const (
// Healthy means that the device is healthy
Healthy = "Healthy"
// UnHealthy means that the device is unhealthy
// Unhealthy means that the device is unhealthy
Unhealthy = "Unhealthy"
// Current version of the API supported by kubelet
// Version means current version of the API supported by kubelet
Version = "v1beta1"
// DevicePluginPath is the folder the Device Plugin is expecting sockets to be on
// Only privileged pods have access to this path
@ -30,8 +30,9 @@ const (
DevicePluginPath = "/var/lib/kubelet/device-plugins/"
// KubeletSocket is the path of the Kubelet registry socket
KubeletSocket = DevicePluginPath + "kubelet.sock"
// Timeout duration in secs for PreStartContainer RPC
// KubeletPreStartContainerRPCTimeoutInSecs is the timeout duration in secs for PreStartContainer RPC
KubeletPreStartContainerRPCTimeoutInSecs = 30
)
// SupportedVersions provides a list of supported version
var SupportedVersions = [...]string{"v1beta1"}