...

Source file src/k8s.io/kubernetes/pkg/kubelet/events/event.go

Documentation: k8s.io/kubernetes/pkg/kubelet/events

     1  /*
     2  Copyright 2014 The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  package events
    18  
    19  // Container event reason list
    20  const (
    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
    32  const (
    33  	FailedToKillPod                = "FailedKillPod"
    34  	FailedToCreatePodContainer     = "FailedCreatePodContainer"
    35  	FailedToMakePodDataDirectories = "Failed"
    36  	NetworkNotReady                = "NetworkNotReady"
    37  )
    38  
    39  // Image event reason list
    40  const (
    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
    50  const (
    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  	NodeShutdown                         = "Shutdown"
    69  	ContainerGCFailed                    = "ContainerGCFailed"
    70  	ImageGCFailed                        = "ImageGCFailed"
    71  	FailedNodeAllocatableEnforcement     = "FailedNodeAllocatableEnforcement"
    72  	SuccessfulNodeAllocatableEnforcement = "NodeAllocatableEnforced"
    73  	SandboxChanged                       = "SandboxChanged"
    74  	FailedCreatePodSandBox               = "FailedCreatePodSandBox"
    75  	FailedStatusPodSandBox               = "FailedPodSandBoxStatus"
    76  	FailedMountOnFilesystemMismatch      = "FailedMountOnFilesystemMismatch"
    77  	FailedPrepareDynamicResources        = "FailedPrepareDynamicResources"
    78  )
    79  
    80  // Image manager event reason list
    81  const (
    82  	InvalidDiskCapacity = "InvalidDiskCapacity"
    83  	FreeDiskSpaceFailed = "FreeDiskSpaceFailed"
    84  )
    85  
    86  // Probe event reason list
    87  const (
    88  	ContainerUnhealthy    = "Unhealthy"
    89  	ContainerProbeWarning = "ProbeWarning"
    90  )
    91  
    92  // Pod worker event reason list
    93  const (
    94  	FailedSync = "FailedSync"
    95  )
    96  
    97  // Config event reason list
    98  const (
    99  	FailedValidation = "FailedValidation"
   100  )
   101  
   102  // Lifecycle hooks
   103  const (
   104  	FailedPostStartHook = "FailedPostStartHook"
   105  	FailedPreStopHook   = "FailedPreStopHook"
   106  )
   107  

View as plain text