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

package statefulsets

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


Package Files

eligible_statefulsets.go statefulsets.go

func EligibleStatefulSets Uses

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

EligibleStatefulSets gets all eligible statefulsets that opted in (filtered by config.EnabledLabel)

type StatefulSet Uses

type StatefulSet struct {

func New Uses

func New(ss *v1.StatefulSet) (*StatefulSet, error)

New creates a new instance of StatefulSet

func (*StatefulSet) IsEnrolled Uses

func (ss *StatefulSet) IsEnrolled(clientset kube.Interface) (bool, error)

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

func (*StatefulSet) KillType Uses

func (ss *StatefulSet) KillType(clientset kube.Interface) (string, error)

KillType returns current killtype config label for update

func (*StatefulSet) KillValue Uses

func (ss *StatefulSet) KillValue(clientset kube.Interface) (int, error)

KillValue returns current killvalue config label for update

Package statefulsets imports 8 packages (graph) and is imported by 2 packages. Updated 2019-11-15. Refresh now. Tools for package owners.