Documentation ¶
Index ¶
- func CreateEventRecorder(kubeClient clientset.Interface) kube_record.EventRecorder
- func GetReadinessState(node *apiv1.Node) (isNodeReady bool, lastTransitionTime time.Time, err error)
- func IsNodeReadyAndSchedulable(node *apiv1.Node) bool
- type AllNodeLister
- type ListerRegistry
- type ReadyNodeLister
- type ScheduledPodLister
- type UnschedulablePodLister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEventRecorder ¶
func CreateEventRecorder(kubeClient clientset.Interface) kube_record.EventRecorder
CreateEventRecorder creates an event recorder to send custom events to Kubernetes to be recorded for targeted Kubernetes objects
func GetReadinessState ¶
func GetReadinessState(node *apiv1.Node) (isNodeReady bool, lastTransitionTime time.Time, err error)
GetReadinessState gets readiness state for the node
func IsNodeReadyAndSchedulable ¶
IsNodeReadyAndSchedulable returns true if the node is ready and schedulable.
Types ¶
type AllNodeLister ¶
type AllNodeLister struct {
// contains filtered or unexported fields
}
AllNodeLister lists all nodes
func NewAllNodeLister ¶
func NewAllNodeLister(kubeClient client.Interface, stopchannel <-chan struct{}) *AllNodeLister
NewAllNodeLister builds a node lister that returns all nodes (ready and unready)
type ListerRegistry ¶
type ListerRegistry interface { AllNodeLister() *AllNodeLister ReadyNodeLister() *ReadyNodeLister ScheduledPodLister() *ScheduledPodLister UnschedulablePodLister() *UnschedulablePodLister }
ListerRegistry is a registry providing various listers to list pods or nodes matching conditions
func NewListerRegistry ¶
func NewListerRegistry(allNode *AllNodeLister, readyNode *ReadyNodeLister, scheduledPod *ScheduledPodLister, unschedulablePod *UnschedulablePodLister) ListerRegistry
NewListerRegistry returns a registry providing various listers to list pods or nodes matching conditions
func NewListerRegistryWithDefaultListers ¶
func NewListerRegistryWithDefaultListers(kubeClient client.Interface, stopChannel <-chan struct{}) ListerRegistry
NewListerRegistryWithDefaultListers returns a registry filled with listers of the default implementations
type ReadyNodeLister ¶
type ReadyNodeLister struct {
// contains filtered or unexported fields
}
ReadyNodeLister lists ready nodes.
func NewReadyNodeLister ¶
func NewReadyNodeLister(kubeClient client.Interface, stopChannel <-chan struct{}) *ReadyNodeLister
NewReadyNodeLister builds a node lister.
type ScheduledPodLister ¶
type ScheduledPodLister struct {
// contains filtered or unexported fields
}
ScheduledPodLister lists scheduled pods.
func NewScheduledPodLister ¶
func NewScheduledPodLister(kubeClient client.Interface, stopchannel <-chan struct{}) *ScheduledPodLister
NewScheduledPodLister builds ScheduledPodLister
type UnschedulablePodLister ¶
type UnschedulablePodLister struct {
// contains filtered or unexported fields
}
UnschedulablePodLister lists unscheduled pods
func NewUnschedulablePodInNamespaceLister ¶
func NewUnschedulablePodInNamespaceLister(kubeClient client.Interface, namespace string, stopchannel <-chan struct{}) *UnschedulablePodLister
NewUnschedulablePodInNamespaceLister returns a lister providing pods that failed to be scheduled in the given namespace.
func NewUnschedulablePodLister ¶
func NewUnschedulablePodLister(kubeClient client.Interface, stopchannel <-chan struct{}) *UnschedulablePodLister
NewUnschedulablePodLister returns a lister providing pods that failed to be scheduled.