daemonsets

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EligibleDaemonSets

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

EligibleDaemonSets gets all eligible daemonsets that opted in (filtered by config.EnabledLabel)

Types

type DaemonSet

type DaemonSet struct {
	*victims.VictimBase
}

func New

func New(dep *appsv1.DaemonSet) (*DaemonSet, error)

New creates a new instance of DaemonSet

func (*DaemonSet) IsEnrolled

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

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

func (*DaemonSet) KillType

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

KillType returns current killtype config label for update

func (*DaemonSet) KillValue

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

KillValue 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