deployments

package
v0.0.0-...-7c8b764 Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EligibleDeployments

func EligibleDeployments(clientset kube.Interface, namespace string, filter *metav1.ListOptions) (eligVictims []victims.Victim, err error)

Get all eligible deployments that opted in (filtered by config.EnabledLabel)

Types

type Deployment

type Deployment struct {
	*victims.VictimBase
}

func New

func New(dep *v1.Deployment) (*Deployment, error)

Create a new instance of Deployment

func (*Deployment) IsEnrolled

func (d *Deployment) IsEnrolled(clientset kube.Interface) (bool, error)

Checks if the deployment is currently enrolled in kube-monkey

func (*Deployment) KillType

func (d *Deployment) KillType(clientset kube.Interface) (string, error)

Returns current killtype config label for update

func (*Deployment) KillValue

func (d *Deployment) KillValue(clientset kube.Interface) (int, error)

Returns current killvalue config label for update

Jump to

Keyboard shortcuts

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