kube-monkey: github.com/asobti/kube-monkey/victims/factory/deployments Index | Files

package deployments

import "github.com/asobti/kube-monkey/victims/factory/deployments"

Index

Package Files

deployments.go eligible_deployments.go

func EligibleDeployments Uses

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

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

type Deployment Uses

type Deployment struct {
    *victims.VictimBase
}

func New Uses

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

New creates a new instance of Deployment

func (*Deployment) IsEnrolled Uses

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

IsEnrolled checks if the deployment is currently enrolled in kube-monkey

func (*Deployment) KillType Uses

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

KillType returns current killtype config label for update

func (*Deployment) KillValue Uses

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

KillValue returns current killvalue config label for update

Package deployments imports 8 packages (graph) and is imported by 1 packages. Updated 2019-10-29. Refresh now. Tools for package owners.