Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoOpRecorder ¶
type NoOpRecorder struct { }
TODO: Remove this type and actually record events onto pods as part of https://github.com/aws/karpenter/issues/1584 this will require some new permissions in order to create events
func (*NoOpRecorder) PodFailedToSchedule ¶
func (n *NoOpRecorder) PodFailedToSchedule(pod *v1.Pod, err error)
func (*NoOpRecorder) PodShouldSchedule ¶
func (n *NoOpRecorder) PodShouldSchedule(pod *v1.Pod, node *v1.Node)
type Recorder ¶
type Recorder interface { // PodShouldSchedule is called when we have determined that a pod should schedule against an existing node and don't // currently need to provision new capacity for the pod. PodShouldSchedule(pod *v1.Pod, node *v1.Node) // PodFailedToSchedule is called when a pod has failed to schedule entirely. PodFailedToSchedule(pod *v1.Pod, err error) }
Recorder is used to record events that occur about pods so they can be viewed by looking at the pod's events so our actions are more observable without requiring log inspection
Click to show internal directories.
Click to hide internal directories.