fix golint failures
some packages under staging/src/k8s.io/sample-apiserver/ Kubernetes-commit: a39f502fc058fbba8258a84617a6ed3700ee4343
This commit is contained in:
parent
a3e8481b3a
commit
96b39cb21c
|
|
@ -19,10 +19,10 @@ package v1beta1
|
||||||
const (
|
const (
|
||||||
// Healthy means that the device is healthy
|
// Healthy means that the device is healthy
|
||||||
Healthy = "Healthy"
|
Healthy = "Healthy"
|
||||||
// UnHealthy means that the device is unhealthy
|
// Unhealthy means that the device is unhealthy
|
||||||
Unhealthy = "Unhealthy"
|
Unhealthy = "Unhealthy"
|
||||||
|
|
||||||
// Current version of the API supported by kubelet
|
// Version means current version of the API supported by kubelet
|
||||||
Version = "v1beta1"
|
Version = "v1beta1"
|
||||||
// DevicePluginPath is the folder the Device Plugin is expecting sockets to be on
|
// DevicePluginPath is the folder the Device Plugin is expecting sockets to be on
|
||||||
// Only privileged pods have access to this path
|
// Only privileged pods have access to this path
|
||||||
|
|
@ -30,8 +30,9 @@ const (
|
||||||
DevicePluginPath = "/var/lib/kubelet/device-plugins/"
|
DevicePluginPath = "/var/lib/kubelet/device-plugins/"
|
||||||
// KubeletSocket is the path of the Kubelet registry socket
|
// KubeletSocket is the path of the Kubelet registry socket
|
||||||
KubeletSocket = DevicePluginPath + "kubelet.sock"
|
KubeletSocket = DevicePluginPath + "kubelet.sock"
|
||||||
// Timeout duration in secs for PreStartContainer RPC
|
// KubeletPreStartContainerRPCTimeoutInSecs is the timeout duration in secs for PreStartContainer RPC
|
||||||
KubeletPreStartContainerRPCTimeoutInSecs = 30
|
KubeletPreStartContainerRPCTimeoutInSecs = 30
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// SupportedVersions provides a list of supported version
|
||||||
var SupportedVersions = [...]string{"v1beta1"}
|
var SupportedVersions = [...]string{"v1beta1"}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue