1/* 2Copyright 2014 The Kubernetes Authors. 3 4Licensed under the Apache License, Version 2.0 (the "License"); 5you may not use this file except in compliance with the License. 6You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10Unless required by applicable law or agreed to in writing, software 11distributed under the License is distributed on an "AS IS" BASIS, 12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13See the License for the specific language governing permissions and 14limitations under the License. 15*/ 16 17package events 18 19// Container event reason list 20const ( 21 CreatedContainer = "Created" 22 StartedContainer = "Started" 23 FailedToCreateContainer = "Failed" 24 FailedToStartContainer = "Failed" 25 KillingContainer = "Killing" 26 PreemptContainer = "Preempting" 27 BackOffStartContainer = "BackOff" 28 ExceededGracePeriod = "ExceededGracePeriod" 29) 30 31// Pod event reason list 32const ( 33 FailedToKillPod = "FailedKillPod" 34 FailedToCreatePodContainer = "FailedCreatePodContainer" 35 FailedToMakePodDataDirectories = "Failed" 36 NetworkNotReady = "NetworkNotReady" 37) 38 39// Image event reason list 40const ( 41 PullingImage = "Pulling" 42 PulledImage = "Pulled" 43 FailedToPullImage = "Failed" 44 FailedToInspectImage = "InspectFailed" 45 ErrImageNeverPullPolicy = "ErrImageNeverPull" 46 BackOffPullImage = "BackOff" 47) 48 49// kubelet event reason list 50const ( 51 NodeReady = "NodeReady" 52 NodeNotReady = "NodeNotReady" 53 NodeSchedulable = "NodeSchedulable" 54 NodeNotSchedulable = "NodeNotSchedulable" 55 StartingKubelet = "Starting" 56 KubeletSetupFailed = "KubeletSetupFailed" 57 FailedAttachVolume = "FailedAttachVolume" 58 FailedMountVolume = "FailedMount" 59 VolumeResizeFailed = "VolumeResizeFailed" 60 VolumeResizeSuccess = "VolumeResizeSuccessful" 61 FileSystemResizeFailed = "FileSystemResizeFailed" 62 FileSystemResizeSuccess = "FileSystemResizeSuccessful" 63 FailedMapVolume = "FailedMapVolume" 64 WarnAlreadyMountedVolume = "AlreadyMountedVolume" 65 SuccessfulAttachVolume = "SuccessfulAttachVolume" 66 SuccessfulMountVolume = "SuccessfulMountVolume" 67 NodeRebooted = "Rebooted" 68 ContainerGCFailed = "ContainerGCFailed" 69 ImageGCFailed = "ImageGCFailed" 70 FailedNodeAllocatableEnforcement = "FailedNodeAllocatableEnforcement" 71 SuccessfulNodeAllocatableEnforcement = "NodeAllocatableEnforced" 72 SandboxChanged = "SandboxChanged" 73 FailedCreatePodSandBox = "FailedCreatePodSandBox" 74 FailedStatusPodSandBox = "FailedPodSandBoxStatus" 75 FailedMountOnFilesystemMismatch = "FailedMountOnFilesystemMismatch" 76) 77 78// Image manager event reason list 79const ( 80 InvalidDiskCapacity = "InvalidDiskCapacity" 81 FreeDiskSpaceFailed = "FreeDiskSpaceFailed" 82) 83 84// Probe event reason list 85const ( 86 ContainerUnhealthy = "Unhealthy" 87 ContainerProbeWarning = "ProbeWarning" 88) 89 90// Pod worker event reason list 91const ( 92 FailedSync = "FailedSync" 93) 94 95// Config event reason list 96const ( 97 FailedValidation = "FailedValidation" 98) 99 100// Lifecycle hooks 101const ( 102 FailedPostStartHook = "FailedPostStartHook" 103 FailedPreStopHook = "FailedPreStopHook" 104) 105