k3s/vendor/k8s.io/kubernetes/pkg/kubelet/events/event.go

105 lines
3.5 KiB
Go
Raw Normal View History

2019-01-12 04:58:27 +00:00
/*
Copyright 2014 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package events
2020-03-26 21:07:15 +00:00
// Container event reason list
2019-01-12 04:58:27 +00:00
const (
CreatedContainer = "Created"
StartedContainer = "Started"
FailedToCreateContainer = "Failed"
FailedToStartContainer = "Failed"
KillingContainer = "Killing"
PreemptContainer = "Preempting"
BackOffStartContainer = "BackOff"
ExceededGracePeriod = "ExceededGracePeriod"
2020-03-26 21:07:15 +00:00
)
2019-01-12 04:58:27 +00:00
2020-03-26 21:07:15 +00:00
// Pod event reason list
const (
2019-01-12 04:58:27 +00:00
FailedToKillPod = "FailedKillPod"
FailedToCreatePodContainer = "FailedCreatePodContainer"
FailedToMakePodDataDirectories = "Failed"
NetworkNotReady = "NetworkNotReady"
2020-03-26 21:07:15 +00:00
)
2019-01-12 04:58:27 +00:00
2020-03-26 21:07:15 +00:00
// Image event reason list
const (
2019-01-12 04:58:27 +00:00
PullingImage = "Pulling"
PulledImage = "Pulled"
FailedToPullImage = "Failed"
FailedToInspectImage = "InspectFailed"
ErrImageNeverPullPolicy = "ErrImageNeverPull"
BackOffPullImage = "BackOff"
2020-03-26 21:07:15 +00:00
)
2019-01-12 04:58:27 +00:00
2020-03-26 21:07:15 +00:00
// kubelet event reason list
const (
2019-01-12 04:58:27 +00:00
NodeReady = "NodeReady"
NodeNotReady = "NodeNotReady"
NodeSchedulable = "NodeSchedulable"
NodeNotSchedulable = "NodeNotSchedulable"
StartingKubelet = "Starting"
KubeletSetupFailed = "KubeletSetupFailed"
FailedAttachVolume = "FailedAttachVolume"
FailedMountVolume = "FailedMount"
VolumeResizeFailed = "VolumeResizeFailed"
VolumeResizeSuccess = "VolumeResizeSuccessful"
FileSystemResizeFailed = "FileSystemResizeFailed"
FileSystemResizeSuccess = "FileSystemResizeSuccessful"
FailedMapVolume = "FailedMapVolume"
WarnAlreadyMountedVolume = "AlreadyMountedVolume"
SuccessfulAttachVolume = "SuccessfulAttachVolume"
SuccessfulMountVolume = "SuccessfulMountVolume"
NodeRebooted = "Rebooted"
ContainerGCFailed = "ContainerGCFailed"
ImageGCFailed = "ImageGCFailed"
FailedNodeAllocatableEnforcement = "FailedNodeAllocatableEnforcement"
SuccessfulNodeAllocatableEnforcement = "NodeAllocatableEnforced"
SandboxChanged = "SandboxChanged"
FailedCreatePodSandBox = "FailedCreatePodSandBox"
FailedStatusPodSandBox = "FailedPodSandBoxStatus"
2020-03-26 21:07:15 +00:00
FailedMountOnFilesystemMismatch = "FailedMountOnFilesystemMismatch"
)
2019-01-12 04:58:27 +00:00
2020-03-26 21:07:15 +00:00
// Image manager event reason list
const (
2019-01-12 04:58:27 +00:00
InvalidDiskCapacity = "InvalidDiskCapacity"
FreeDiskSpaceFailed = "FreeDiskSpaceFailed"
2020-03-26 21:07:15 +00:00
)
2019-01-12 04:58:27 +00:00
2020-03-26 21:07:15 +00:00
// Probe event reason list
const (
2019-04-07 17:07:55 +00:00
ContainerUnhealthy = "Unhealthy"
ContainerProbeWarning = "ProbeWarning"
2020-03-26 21:07:15 +00:00
)
2019-01-12 04:58:27 +00:00
2020-03-26 21:07:15 +00:00
// Pod worker event reason list
const (
2019-01-12 04:58:27 +00:00
FailedSync = "FailedSync"
2020-03-26 21:07:15 +00:00
)
2019-01-12 04:58:27 +00:00
2020-03-26 21:07:15 +00:00
// Config event reason list
const (
2019-01-12 04:58:27 +00:00
FailedValidation = "FailedValidation"
2020-03-26 21:07:15 +00:00
)
2019-01-12 04:58:27 +00:00
2020-03-26 21:07:15 +00:00
// Lifecycle hooks
const (
2019-08-30 18:33:25 +00:00
FailedPostStartHook = "FailedPostStartHook"
FailedPreStopHook = "FailedPreStopHook"
2019-01-12 04:58:27 +00:00
)