Documentation
¶
Overview ¶
Package podStatus implements a pod health checker for Kuberhealthy. Pods are checked to ensure they are not restarting too much and are in a healthy lifecycle phase.
Index ¶
- type Checker
- func (psc *Checker) CheckNamespace() string
- func (psc *Checker) CurrentStatus() (bool, []string)
- func (psc *Checker) Interval() time.Duration
- func (psc *Checker) Name() string
- func (psc *Checker) Run(client *kubernetes.Clientset) error
- func (psc *Checker) Shutdown() error
- func (psc *Checker) Timeout() time.Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct { FailureTimeStamp map[string]time.Time Errors []string Namespace string MaxTimeInFailure float64 // TODO - make configurable // contains filtered or unexported fields }
Checker validates that pods within a namespace are in a healthy state
func (*Checker) CheckNamespace ¶
CheckNamespace returns the namespace of this checker
func (*Checker) CurrentStatus ¶
CurrentStatus returns the status of the check as of right now
func (*Checker) Run ¶
func (psc *Checker) Run(client *kubernetes.Clientset) error
Run implements the entrypoint for check execution
Click to show internal directories.
Click to hide internal directories.