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

package daemonsets

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


Package Files

daemonsets.go eligible_daemonsets.go

func EligibleDaemonSets Uses

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)

type DaemonSet Uses

type DaemonSet struct {

func New Uses

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

New creates a new instance of DaemonSet

func (*DaemonSet) IsEnrolled Uses

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

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

func (*DaemonSet) KillType Uses

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

KillType returns current killtype config label for update

func (*DaemonSet) KillValue Uses

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

KillValue returns current killvalue config label for update

Package daemonsets imports 8 packages (graph) and is imported by 2 packages. Updated 2020-06-01. Refresh now. Tools for package owners.