event.go 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. // Container event reason list
  15. const (
  16. CreatedContainer = "Created"
  17. StartedContainer = "Started"
  18. FailedToCreateContainer = "Failed"
  19. FailedToStartContainer = "Failed"
  20. KillingContainer = "Killing"
  21. PreemptContainer = "Preempting"
  22. BackOffStartContainer = "BackOff"
  23. ExceededGracePeriod = "ExceededGracePeriod"
  24. )
  25. // Pod event reason list
  26. const (
  27. FailedToKillPod = "FailedKillPod"
  28. FailedToCreatePodContainer = "FailedCreatePodContainer"
  29. FailedToMakePodDataDirectories = "Failed"
  30. NetworkNotReady = "NetworkNotReady"
  31. )
  32. // Image event reason list
  33. const (
  34. PullingImage = "Pulling"
  35. PulledImage = "Pulled"
  36. FailedToPullImage = "Failed"
  37. FailedToInspectImage = "InspectFailed"
  38. ErrImageNeverPullPolicy = "ErrImageNeverPull"
  39. BackOffPullImage = "BackOff"
  40. )
  41. // kubelet event reason list
  42. const (
  43. NodeReady = "NodeReady"
  44. NodeNotReady = "NodeNotReady"
  45. NodeSchedulable = "NodeSchedulable"
  46. NodeNotSchedulable = "NodeNotSchedulable"
  47. StartingKubelet = "Starting"
  48. KubeletSetupFailed = "KubeletSetupFailed"
  49. FailedAttachVolume = "FailedAttachVolume"
  50. FailedMountVolume = "FailedMount"
  51. VolumeResizeFailed = "VolumeResizeFailed"
  52. VolumeResizeSuccess = "VolumeResizeSuccessful"
  53. FileSystemResizeFailed = "FileSystemResizeFailed"
  54. FileSystemResizeSuccess = "FileSystemResizeSuccessful"
  55. FailedMapVolume = "FailedMapVolume"
  56. WarnAlreadyMountedVolume = "AlreadyMountedVolume"
  57. SuccessfulAttachVolume = "SuccessfulAttachVolume"
  58. SuccessfulMountVolume = "SuccessfulMountVolume"
  59. NodeRebooted = "Rebooted"
  60. ContainerGCFailed = "ContainerGCFailed"
  61. ImageGCFailed = "ImageGCFailed"
  62. FailedNodeAllocatableEnforcement = "FailedNodeAllocatableEnforcement"
  63. SuccessfulNodeAllocatableEnforcement = "NodeAllocatableEnforced"
  64. SandboxChanged = "SandboxChanged"
  65. FailedCreatePodSandBox = "FailedCreatePodSandBox"
  66. FailedStatusPodSandBox = "FailedPodSandBoxStatus"
  67. FailedMountOnFilesystemMismatch = "FailedMountOnFilesystemMismatch"
  68. )
  69. // Image manager event reason list
  70. const (
  71. InvalidDiskCapacity = "InvalidDiskCapacity"
  72. FreeDiskSpaceFailed = "FreeDiskSpaceFailed"
  73. )
  74. // Probe event reason list
  75. const (
  76. ContainerUnhealthy = "Unhealthy"
  77. ContainerProbeWarning = "ProbeWarning"
  78. )
  79. // Pod worker event reason list
  80. const (
  81. FailedSync = "FailedSync"
  82. )
  83. // Config event reason list
  84. const (
  85. FailedValidation = "FailedValidation"
  86. )
  87. // Lifecycle hooks
  88. const (
  89. FailedPostStartHook = "FailedPostStartHook"
  90. FailedPreStopHook = "FailedPreStopHook"
  91. )