actionStatefulset

remove_statefulset

Remove a statefulset

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaosk8s.statefulset.actions
Nameremove_statefulset
ReturnNone

Usage

JSON

{
  "name": "remove-statefulset",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosk8s.statefulset.actions",
    "func": "remove_statefulset"
  }
}

YAML

name: remove-statefulset
provider:
  func: remove_statefulset
  module: chaosk8s.statefulset.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
nsstring“default”NoNamespace
namestringnullNoNameStatefulset name to remove
label_selectorstringnullNoLabel SelectorUse a label selector instead of a name

Remove a statefulset by name in the namespace ns.

The statefulset is removed by deleting it without a graceful period to trigger an abrupt termination.

The selected resources are matched by the given label_selector.

Signature

def remove_statefulset(name: str = None,
                       ns: str = 'default',
                       label_selector: str = None,
                       secrets: Dict[str, Dict[str, str]] = None):
    pass