constants.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. Copyright 2018 The Kubernetes Authors.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. package v1beta1
  14. const (
  15. // Healthy means that the device is healthy
  16. Healthy = "Healthy"
  17. // UnHealthy means that the device is unhealthy
  18. Unhealthy = "Unhealthy"
  19. // Current version of the API supported by kubelet
  20. Version = "v1beta1"
  21. // DevicePluginPath is the folder the Device Plugin is expecting sockets to be on
  22. // Only privileged pods have access to this path
  23. // Note: Placeholder until we find a "standard path"
  24. DevicePluginPath = "/var/lib/kubelet/device-plugins/"
  25. // KubeletSocket is the path of the Kubelet registry socket
  26. KubeletSocket = DevicePluginPath + "kubelet.sock"
  27. // Timeout duration in secs for PreStartContainer RPC
  28. KubeletPreStartContainerRPCTimeoutInSecs = 30
  29. )
  30. var SupportedVersions = [...]string{"v1beta1"}