analyze

package
v1.1.1-0...-9418116 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const EventRelevanceTime = 1800 * time.Second

EventRelevanceTime is the time in which events are relevant for us

View Source
const HeaderChar = "="

HeaderChar is the header char used

View Source
const HeaderWidth = 80

HeaderWidth is the width of the header

View Source
const IgnoreRestartsSince = time.Hour * 2

IgnoreRestartsSince if they happened 2 hours or later ago

View Source
const MinimumPodAge = 10 * time.Second

MinimumPodAge is the minimum amount of time that a pod should be old

View Source
const PaddingLeft = 2

PaddingLeft is the left padding of the report

View Source
const WaitTimeout = 120 * time.Second

WaitTimeout is the amount of time to wait for a pod to start

Variables

This section is empty.

Functions

func ReportToString

func ReportToString(report []*ReportItem) string

ReportToString transforms a report to a string

Types

type Analyzer

type Analyzer interface {
	Analyze(namespace string, noWait bool) error
	CreateReport(namespace string, noWait bool) ([]*ReportItem, error)
}

Analyzer is the interface for analyzing

func NewAnalyzer

func NewAnalyzer(client kubectl.Client, log log.Logger) Analyzer

NewAnalyzer creates a new analyzer from the kube client

type ReportItem

type ReportItem struct {
	Name     string
	Problems []string
}

ReportItem is the struct that holds the problems

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL