daemonSet

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package daemonSet contains a Kuberhealthy check for the ability to roll out a daemonset to a cluster. Includes validation of cleanup as well. This check provides a high level of confidence that the cluster is operating normally.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	Namespace     string
	DaemonSet     *betaapiv1.DaemonSet
	ErrorMessages []string

	DaemonSetDeployed   bool
	DaemonSetName       string
	PauseContainerImage string
	// contains filtered or unexported fields
}

Checker implements a KuberhealthyCheck for daemonset deployment and teardown checking.

func New

func New() (*Checker, error)

New creates a new Checker object

func (*Checker) CheckNamespace

func (dsc *Checker) CheckNamespace() string

CheckNamespace returns the namespace of this checker

func (*Checker) CurrentStatus

func (dsc *Checker) CurrentStatus() (bool, []string)

CurrentStatus returns the status of the check as of right now

func (*Checker) Interval

func (dsc *Checker) Interval() time.Duration

Interval returns the interval at which this check runs

func (*Checker) Name

func (dsc *Checker) Name() string

Name returns the name of this checker

func (*Checker) Run

func (dsc *Checker) Run(client *kubernetes.Clientset) error

Run implements the entrypoint for check execution

func (*Checker) Shutdown

func (dsc *Checker) Shutdown() error

Shutdown signals the DS to begin a cleanup

func (*Checker) Timeout

func (dsc *Checker) Timeout() time.Duration

Timeout returns the maximum run time for this check before it times out

Jump to

Keyboard shortcuts

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