Documentation ¶
Index ¶
- type Checker
- func (prc *Checker) CheckNamespace() string
- func (prc *Checker) CurrentStatus() (bool, []string)
- func (prc *Checker) IdentifyRestartProblems() []string
- func (prc *Checker) Interval() time.Duration
- func (prc *Checker) Name() string
- func (prc *Checker) Run(client *kubernetes.Clientset) error
- func (prc *Checker) Shutdown() error
- func (prc *Checker) Timeout() time.Duration
- type RestartCountObservation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct { RestartObservations map[string][]RestartCountObservation Errors []string Namespace string MaxFailuresAllowed int // contains filtered or unexported fields }
Checker represents a long running pod restart checker.
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) IdentifyRestartProblems ¶
IdentifyRestartProblems identifies pods that are restarting too much and returns a slice of string errors describing the issue
func (*Checker) Run ¶
func (prc *Checker) Run(client *kubernetes.Clientset) error
Run implements the entrypoint for check execution
type RestartCountObservation ¶
RestartCountObservation keeps track of the number of restarts for a given pod
func (*RestartCountObservation) UpdatePodRestartCheckCount ¶
func (p *RestartCountObservation) UpdatePodRestartCheckCount(r int32)
UpdatePodRestartCheckCount adds new data to PodRestartCheck
Click to show internal directories.
Click to hide internal directories.