Documentation
¶
Index ¶
- Constants
- func InitKlogV2WithV1Flags(cmdFlags *pflag.FlagSet)
- func LabelIndexFunc(obj interface{}) ([]string, error)
- func NewInformerFactory(cs clientset.Interface, resyncPeriod time.Duration) informers.SharedInformerFactory
- func NewLabelIndexedPodInformer(client clientset.Interface, resyncPeriod time.Duration) coreinformers.PodInformer
- type EventBroadcasterAdapter
- type EventRecorder
Constants ¶
View Source
const DefaultPrefixLength = 42
DefaultPrefixLength is the length of the log prefix that we have to strip out
View Source
const OutputCallDepth = 6
OutputCallDepth is the stack depth where we can find the origin of this call
View Source
const (
PodGroupNameLabelIndex = "podGroupNameLabel"
)
Variables ¶
This section is empty.
Functions ¶
func InitKlogV2WithV1Flags ¶
func LabelIndexFunc ¶
func NewInformerFactory ¶
func NewInformerFactory(cs clientset.Interface, resyncPeriod time.Duration) informers.SharedInformerFactory
NewInformerFactory creates a SharedInformerFactory and initializes a scheduler specific in-place podInformer.
func NewLabelIndexedPodInformer ¶
func NewLabelIndexedPodInformer(client clientset.Interface, resyncPeriod time.Duration) coreinformers.PodInformer
Types ¶
type EventBroadcasterAdapter ¶
type EventBroadcasterAdapter interface { // StartRecordingToSink starts sending events received from the specified eventBroadcaster. StartRecordingToSink(stopCh <-chan struct{}) // NewRecorder creates a new Event Recorder with specified name. NewRecorder(name string) EventRecorder // DeprecatedNewLegacyRecorder creates a legacy Event Recorder with specific name. DeprecatedNewLegacyRecorder(name string) record.EventRecorder // Shutdown shuts down the broadcaster. Shutdown() }
func NewEventBroadcasterAdapter ¶
func NewEventBroadcasterAdapter(client clientset.Interface) EventBroadcasterAdapter
NewEventBroadcasterAdapter creates a wrapper around new and legacy broadcasters to simplify migration of individual components to the new Event API.
type EventRecorder ¶
type EventRecorder interface { // Eventf constructs an event from the given information and puts it in the queue for sending. // 'regarding' is the object this event is about. Event will make a reference-- or you may also // pass a reference to the object directly. // 'related' is the secondary object for more complex actions. E.g. when regarding object triggers // a creation or deletion of related object. // 'type' of this event, and can be one of Normal, Warning. New types could be added in future // 'reason' is the reason this event is generated. 'reason' should be short and unique; it // should be in UpperCamelCase format (starting with a capital letter). "reason" will be used // to automate handling of events, so imagine people writing switch statements to handle them. // You want to make that easy. // 'action' explains what happened with regarding/what action did the ReportingController // (ReportingController is a type of a Controller reporting an Event, e.g. k8s.io/node-controller, k8s.io/kubelet.) // take in regarding's name; it should be in UpperCamelCase format (starting with a capital letter). // 'note' is intended to be human readable. Eventf(regarding runtime.Object, related runtime.Object, eventtype, reason, action, note string, args ...interface{}) }
EventRecorder knows how to record events on behalf of an EventSource.
Click to show internal directories.
Click to hide internal directories.