runner

package
v0.0.0-...-c23e532 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CriticalStatus = map[string]bool{
	"Error":                      true,
	"Unknown":                    true,
	"ImagePullBackOff":           true,
	"CrashLoopBackOff":           true,
	"RunContainerError":          true,
	"ErrImagePull":               true,
	"CreateContainerConfigError": true,
	"InvalidImageName":           true,
	"Evicted":                    true,
}

CriticalStatus container status

View Source
var OkayStatus = map[string]bool{
	"Completed": true,
	"Running":   true,
}

OkayStatus container status

Functions

func GetPodStatus

func GetPodStatus(pod *v1.Pod) string

GetPodStatus returns the pod status as a string Taken from https://github.com/kubernetes/kubernetes/pkg/printers/internalversion/printers.go

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner is continously checking for problems in a cluster

func NewRunner

func NewRunner(client kube.Client, slackClient *slack.Client, watchNodes bool, watchNamespaces []string) (*Runner, error)

NewRunner creates a new runner

func (*Runner) Start

func (r *Runner) Start() error

Start starts the runner (blocking)

Jump to

Keyboard shortcuts

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