event.go 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. Copyright 2014 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 events
  14. const (
  15. // Container event reason list
  16. CreatedContainer = "Created"
  17. StartedContainer = "Started"
  18. FailedToCreateContainer = "Failed"
  19. FailedToStartContainer = "Failed"
  20. KillingContainer = "Killing"
  21. BackOffStartContainer = "BackOff"
  22. // Image event reason list
  23. PullingImage = "Pulling"
  24. PulledImage = "Pulled"
  25. FailedToPullImage = "Failed"
  26. FailedToInspectImage = "InspectFailed"
  27. ErrImageNeverPullPolicy = "ErrImageNeverPull"
  28. BackOffPullImage = "BackOff"
  29. // kubelet event reason list
  30. NodeReady = "NodeReady"
  31. NodeNotReady = "NodeNotReady"
  32. NodeSchedulable = "NodeSchedulable"
  33. NodeNotSchedulable = "NodeNotSchedulable"
  34. StartingKubelet = "Starting"
  35. KubeletSetupFailed = "KubeletSetupFailed"
  36. FailedDetachVolume = "FailedDetachVolume"
  37. FailedMountVolume = "FailedMount"
  38. FailedUnMountVolume = "FailedUnMount"
  39. SuccessfulDetachVolume = "SuccessfulDetachVolume"
  40. SuccessfulMountVolume = "SuccessfulMountVolume"
  41. SuccessfulUnMountVolume = "SuccessfulUnMountVolume"
  42. HostPortConflict = "HostPortConflict"
  43. NodeSelectorMismatching = "NodeSelectorMismatching"
  44. InsufficientFreeCPU = "InsufficientFreeCPU"
  45. InsufficientFreeMemory = "InsufficientFreeMemory"
  46. OutOfDisk = "OutOfDisk"
  47. HostNetworkNotSupported = "HostNetworkNotSupported"
  48. UndefinedShaper = "NilShaper"
  49. NodeRebooted = "Rebooted"
  50. // Image manager event reason list
  51. InvalidDiskCapacity = "InvalidDiskCapacity"
  52. FreeDiskSpaceFailed = "FreeDiskSpaceFailed"
  53. // Probe event reason list
  54. ContainerUnhealthy = "Unhealthy"
  55. // Pod worker event reason list
  56. FailedSync = "FailedSync"
  57. // Config event reason list
  58. FailedValidation = "FailedValidation"
  59. // Lifecycle hooks
  60. FailedPostStartHook = "FailedPostStartHook"
  61. FailedPreStopHook = "FailedPreStopHook"
  62. )